Fix: print JSON on live-poll --reply success (#800)

Successful --reply was exit 0 with empty stdout, so agents could not tell delivery from a hang. Prepared with AI assistance.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Abdul Wahab
2026-09-10 08:47:39 +05:00
committed by Abdul Wahab
co-authored by Cursor
parent 3bdb9ff06c
commit 67d018fe05
3 changed files with 58 additions and 4 deletions
@@ -26,7 +26,7 @@
"signal": null
},
{
"stdout": "",
"stdout": "{\"ok\":true,\"id\":\"ab12cd34\",\"status\":\"done\",\"file\":\"index.html\",\"_instructions\":\"Poll again now.\"}\n",
"stderr": "",
"exit": 0,
"signal": null
@@ -44,7 +44,7 @@
"signal": null
},
{
"stdout": "",
"stdout": "{\"ok\":true,\"id\":\"ab12cd34\",\"status\":\"steer_done\",\"_instructions\":\"Poll again now.\"}\n",
"stderr": "",
"exit": 0,
"signal": null