-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Subagent sessions persist after completion, main session becomes unresponsive #47975
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-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm 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: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.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.staleMarked as stale due to inactivityMarked as stale due to inactivity
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-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm 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: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.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Bug Report: Subagent sessions persist after completion, main session becomes unresponsive
Version: OpenClaw 2026.3.13 (stable channel)
Environment: WSL2, Ubuntu 24.04.4, Node v24.14.0
Channel: webchat (openclaw-control-ui dashboard)
Summary
After spawning multiple subagent sessions (particularly when some fail), the main session becomes unresponsive to new user messages for a period after the subagent result is delivered. Session list shows stale subagent sessions that appear to persist beyond their completion.
Steps to Reproduce
Observed Behavior
openclaw statusshows multiple subagent sessions still listed after completionsessions_yieldreturnsExpected Behavior
Session List Example
Multiple subagent sessions remain in list despite having completed.
Workaround
Additional Context
sessions_yielddocumentation states "End your current turn" - but main session appears to remain in a "waiting" staterun(one-shot), notsession(persistent)Logs
Gateway logs show normal operation - cron timers, request handling, no error messages related to session state. No exceptions thrown.
Configuration
Possible Root Cause
Hypothesis: When main session yields to wait for subagent completion, the session state may not fully clear after receiving the subagent result. There may be a race condition or cleanup delay that prevents the main session from immediately processing new incoming messages.