Repository navigation
Show what a thread is waiting on when it hands work off (#42) - #62
Merged
currentbits merged 1 commit intoAug 15, 2026
Merged
Conversation
A thread that hands work off — thread_fork/thread_send workers or in-agent subagents — ends its own turn, so its status reads idle/done like any other thread and a hung fan-out looks exactly like a healthy one. Derive the wait from state that already exists (handoffFrom + the runner's subagent rows) and render it in both places the user looks: - sidebar card: a "Waiting on 2 workers · 3m" row under the meta line, amber when a child is stalled on a permission prompt, hover lists the children - Agents panel: the same line above the Team roster, and a worker blocked on a prompt now reads "waiting" instead of "working" threads:summaries carries runStartedAt + awaitingInput so the panel can show elapsed and flag a blocked worker. Co-Authored-By: Claude Opus 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/no-status-when-an-agent-is-waiting-on-wo-5a74f7
branch
October 3, 2026 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #42.
Why
When a thread delegates —
thread_fork/thread_sendworkers via the coder-threads MCP server, or in-agent Agent-tool subagents — it ends its own turn, so its status reads idle/done/working like any other thread. Nothing said it was blocked on delegated work, which thread(s), for how long, or that a child had stalled. From the outside a healthy wait and a hung fan-out looked identical, which is the shared root behind #31, #32 and #34.What changed
src/waiting.tsderives the wait in one pass over the thread rows, from state that already exists (handoffFromplus the runner'ssubagentsrows) — no new state, no new IPC. Only live children count: a worker still running, or one stalled on a permission prompt.Rendered in both places the user looks:
Waiting on 2 workers · 3mrow under the branch/status line with a pulsing dot, amber when a child is blocked on a prompt, hover tooltip naming each child. It sits on its own row rather than as a chip beside the status badge: on a narrow card the branch + PR chip squeezed it down toWaiting on…, losing the count that is the whole point.waitinginstead ofworking, so a stuck fan-out is obvious without opening every worker.threads:summariesnow carriesrunStartedAtandawaitingInputso the panel can show elapsed time and flag a blocked worker.formatWorkingLabelwas split so the elapsed formatter is shared.Not covered
A worker stopped mid-run is indistinguishable from a fork that never ran (both idle,
runStartedAtcleared) — marked with aponytail:comment; it needs a stopped flag on the thread. Failed children do not count toward the badge (their own card is already red and the Team roster lists them), and the slim pinned/settled rows carry no badge.Verification
npm test— core 38/38, renderer 752/752, electron 727/727, memory-server 119/119npm run typecheckcleanNew tests:
test/waiting.test.ts(helper), plus sidebar-badge and Agents-panel cases intest/sidebar.test.tsx/test/teamView.test.tsxLooked at it in the running app: forked a thread in the mock UI, started its run, and captured the sidebar row and the Team wait line mid-run
PR created by the Claude Code agent