-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
sessions_spawn accepted results are recorded as tool failures #96833
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Summary
sessions_spawncan successfully accept a child run while the primary transcript records the tool result asisError: true. Later compaction reads that flag and emits noisy## Tool Failuresentries such assessions_spawn: failed, even though the payload containsstatus: "accepted".Observed behavior
Recent transcripts include
toolName: "sessions_spawn",isError: true, and a payload like:{ "status": "accepted", "childSessionKey": "agent:watcher:subagent:...", "runId": "...", "mode": "run" }The compaction/safeguard layer then mechanically reports those entries as tool failures because it filters on
toolResult.isError === true. This makes normal accepted subagent launches look like repeated failures in user-visible summaries.Expected behavior
sessions_spawnresults withstatus: "accepted"should be persisted/forwarded withisError: false.sessions_spawnresults withstatus: "forbidden"orstatus: "error"should remain errors.isError: true.Related noise
Shell-like tools also produce noisy
failed (no output)summaries whenexitCode=1is expected for probes/no-match cases. That is adjacent, but the immediate regression is the acceptedsessions_spawnfalse positive.Proposed patch direction
sessions_spawn+ accepted status is not treated as a tool error.sessions_spawnaccepted payloads already markedisError: true.I am preparing a local patch against
mainand can follow up with a PR if wanted.