-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
[Bug]: Subagent terminal reconciliation can expire suspended final delivery #86537
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:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.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.maintainerMaintainer-authored PRMaintainer-authored PR
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.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.maintainerMaintainer-authored PRMaintainer-authored PR
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Subagent terminal delivery can time out repeatedly during reconciliation, then expire and discard the pending final payload instead of preserving the completion for the requester.
Steps to reproduce
Expected behavior
Subagent completion output should remain available through delivery to the requester or durable session history even if final delivery is suspended long enough to expire.
Actual behavior
Gateway logs showed 215
subagent wait timed out; deferring terminal state until session reconciliationlines and 25subagent suspended delivery discardedlines in the 2026-05-23T14:42:08Z through 2026-05-25T14:42:08Z window.OpenClaw version
2026.5.25 dev checkout
Operating system
Linux WSL2
Install method
pnpm dev
Model
NOT_ENOUGH_INFO
Provider / routing chain
NOT_ENOUGH_INFO
Additional provider/model setup details
NOT_ENOUGH_INFO
Logs, screenshots, and evidence
Impact and severity
Affected: subagent completion delivery for requester sessions.
Severity: High, because final completion output can be lost after child work settles.
Frequency: 25 discarded suspended deliveries were observed in the analyzed two-day log window.
Consequence: requester sessions can miss subagent completion output.
Additional information
The implicated code paths were
src/agents/subagent-registry-run-manager.tsterminal wait retry handling andsrc/agents/subagent-registry.tssuspended delivery expiry.