Use prompt_async (not /message) for idle-worker continue to avoid blocking

This commit is contained in:
Rebase Agent
2026-05-13 23:39:53 +00:00
parent 6fe40f0a20
commit e27fcf4fe0
+4 -1
View File
@@ -251,8 +251,11 @@ send_message_capture() {
local body="$2"
local out_file="$3"
# Use prompt_async — fire-and-forget; server returns 204 immediately.
# The synchronous /message endpoint would block until the agent finishes
# its full response (potentially many minutes for a busy worker).
( trap '' INT
exec curl -sf -X POST "${BASE}/session/${sid}/message" \
exec curl -sf -X POST "${BASE}/session/${sid}/prompt_async" \
-H "Content-Type: application/json" \
-d "$body" \
-w "\n"