-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Subagent completion delivery can fail when requester run is inactive and session transcript is locked #92076
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:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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.
Type
Fields
Priority
None yet
Summary
A subagent completion can fail to reach the user when the requester session has already been evicted/inactive and the completion fallback path tries to write through the requester-agent/session transcript path. In a Feishu direct-message session, this surfaced as the generic user-facing error:
Observed behavior
On
[email protected], the relevant log sequence was:The child/subagent had completed, but the parent/requester completion delivery failed after the requester run was no longer active and the requester session file was locked.
Expected behavior
For top-level subagent completions with a usable direct-message delivery target:
no_active_run, completion delivery should still send a concise direct/background message to the user when possible;Environment
2026.6.1(2e08f0f)Local hotfix tested
A local dist-only hotfix was tested against
dist/subagent-announce-delivery-DhVEJzi6.js:Syntax checks passed:
Suggested upstream fix
In the source equivalent of
src/agents/subagent-announce-delivery.ts:subagent_announcecompletions with direct-message targets to direct/background text delivery when the requester is inactive orresolveActiveWakeWithRetriesreturnsno_active_run;SessionWriteLockTimeoutErrorfrom the direct announce-agent path as eligible for direct text fallback, not only generated-media fallback.This appears related to the documented completion-delivery path where OpenClaw tries active requester wake first, then requester-agent handoff. The failure mode is when both the active requester path and transcript write path are unavailable, even though an external direct-message route exists.