-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Sub-agent startup silence: no first-progress signal, aborted runs appear as hangs #58776
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Problem
Sub-agent runs can sit in
runningstate indefinitely with zero output. From the parent's perspective this is indistinguishable from a healthy slow start. The actual cause isopenclaw:prompt-errorwitherror: "aborted"being mapped to{ status: "timeout" }— losing the distinction between startup abort and mid-run abort.We observed 70 failing transcripts matching this pattern across agents (62
run_aborted, 8startup_aborted, 6empty_output_startup).Root cause
The embedded run handler emits only three lifecycle phases:
start,end,error. There is nofirst-progresssignal, so the parent cannot distinguish a working child from a silently aborting one. A 45s abort looks identical to a 90-min hang until the wall-clock timeout fires.Proposed addition (additive, non-breaking)
Two new lifecycle event phases:
first-progress— emitted on first qualifying tool call or non-empty assistant textstartup-failed— typed failure with reason:startup_aborted,startup_timeout,empty_output_startup,auth_failedBoth are additive. Existing listeners use explicit string comparisons and already silently drop unknown phase strings — confirmed from source inspection.
Update safety
Evidence
70 failing transcripts captured from live corpus. Representative fixture:
chunker/sessions/8cb62941. Full design with 20 test cases and 4-phase rollout strategy available.