-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: sessions_yield parent is not woken after descendants settle #97089
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper: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
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper: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
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
A yielded parent session that was waiting on subagent completions did not receive a usable final wake-up after the remaining children completed, leaving the parent idle until a later manual/user re-entry reconciled the finished work.
Steps to reproduce
sessions_spawn.sessions_yieldwhile waiting for child completion events.Observed live session:
2026-06-26T02:19:02.052Zafter dispatching five review specialists.sessions_yieldagain at2026-06-26T02:23:24.443Z.2026-06-26T02:36:02.982Z/2026-06-26T02:36:08.232Z, when it reconciled all finished children.Expected behavior
sessions_yieldis documented as ending the current turn so subagent results arrive as the next message. A child completion that is still relevant to a yielded parent should either wake the parent or be coalesced into a prompt containing the outstanding completions, without requiring a later user/manual re-entry.Actual behavior
The children completed, but the yielded parent did not receive a usable final wake-up for the remaining child completions:
The parent stayed idle for about 12 minutes after the second yield even though all intended children had completed by
2026-06-26T02:24:06.365Z.Source context checked:
src/agents/tools/sessions-yield-tool.tssays the tool ends the current turn so completion events can resume the session later.src/agents/subagent-registry.tsimplementsresumeSubagentRun.resumeSubagentRunreturned early wheneverentry.pauseReason === "sessions_yield", even when the run was marked withwakeOnDescendantSettle.OpenClaw version
2026.6.9
Operating system
linux 6.6.114.1-microsoft-standard-WSL2 (x64)
Install method
Source checkout / local gateway
Model
github-copilot/claude-opus-4.7
Provider / routing chain
OpenClaw -> github-copilot -> claude-opus-4.7 using Anthropic Messages API
Additional provider/model setup details
Telegram channel parent session with OpenClaw subagents. Local logs show provider
github-copilot, model idclaude-opus-4.7, model APIanthropic-messages, Nodev26.3.0.Logs, screenshots, and evidence
Duplicate search:
Impact and severity
Affected: workflows that depend on yielded parent sessions receiving subagent completion events.
Severity: High for agent orchestration; the delegated work finished, but the parent did not deliver the final result until manual/user re-entry.
Frequency: Observed once in a live multi-subagent review session.
Consequence: missed/delayed parent completion, manual recovery, and extra history/list reconciliation work.
Additional information
NOT_ENOUGH_INFO