Skip to content

fix: A workspace whose agent is still running sub-agents no longer shows as idle - #739

Merged
stefanhoelzl merged 1 commit into
mainfrom
idle
Oct 2, 2026
Merged

stefanhoelzl merged 1 commit into
mainfrom
idle

Conversation

@stefanhoelzl

Copy link
Copy Markdown
Owner
  • Claude can drop an AskUserQuestion without ever emitting its PostToolUse: a message arriving mid-tool started a second turn branch that asked the question, and the first branch then ended the turn. The transcript holds the tool_use with no tool_result.
  • The AskUserQuestion park (awaitingUserInputResolution) then outlived the turn and suppressed every busy signal from the still-running background sub-agents, so the workspace read idle until the next prompt.
  • The main agent's Stop now clears the park, since its turn is over and no question of its own can still be open. When it lifts a park while background_tasks keep the workspace busy, the workspace goes busy instead of staying parked idle. Stops without a park are unchanged.
  • Two regression tests in server-manager.integration.test.ts (dropped park with a sub-agent running → busy; with nothing running → idle, no park left behind); docs/AGENTS.md updated.

Claude can drop an AskUserQuestion without a PostToolUse: a message arriving
mid-tool started a second turn branch that asked it, and the first branch then
ended the turn. The park outlived the turn and suppressed every busy signal
from the still-running background sub-agents, so the workspace read idle.

The main agent's Stop now clears the park; when it lifts one while background
tasks keep the workspace busy, the workspace goes busy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stefanhoelzl stefanhoelzl added the bug Something isn't working label Oct 2, 2026
@stefanhoelzl
stefanhoelzl enabled auto-merge (rebase) October 2, 2026 19:19
@stefanhoelzl
stefanhoelzl merged commit 9460be0 into main Oct 2, 2026
17 checks passed
@stefanhoelzl
stefanhoelzl deleted the idle branch October 2, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant