Repository navigation
Description
Problem or use case
A supervised worker that stops to ask a human something is invisible to the coordinator, so an unattended Run can sit on a permission prompt indefinitely.
Orca already knows this state and shows it well — to a human. AgentQuestionIcon.tsx paints "the agent is asking you something" across the sidebar, terminal tabs, dashboard, kanban and agent map off one shared --agent-question token, and AgentStatusEntry.interactivePrompt (src/shared/agent-status-types.ts) carries the full, untruncated question text.
None of that reaches any CLI or RPC surface. A coordinating agent driving several lanes has no way to learn that one of them is waiting on an answer. In an unattended run nobody is looking at the UI, so the lane simply stops making progress and the coordinator keeps waiting on it.
This is also the failure mode most easily confused with a hung worker. From the coordinator's side, "blocked on a question" and "wedged" look identical — both are silence — but they need opposite responses: one needs an answer, the other needs intervention. Anything that reacts to silence (a watchdog, a nudge, a timeout policy) will get this wrong until the two are distinguishable.
Proposed solution
Surface the pending-question state to the coordinator, not only to the UI.
Concretely: expose, per active dispatch, that the agent is awaiting human input, plus a truncated preview of the question. The full text already lives in interactivePrompt; a CLI surface needs only enough to triage and route.
Two properties matter more than the exact shape:
- It must be loud, not merely exempt. It would be easy to treat "blocked/waiting" as simply excluded from staleness checks. That is worse than useless — it makes the lane silently invisible, which is the current behaviour with extra steps. A lane waiting on a human should be reported as such, immediately, with no threshold.
- It carries no failure semantics. The lane is healthy; it is blocked on a person. It should never accrue a strike, a timeout, or anything that reads as a fault.
Alternatives or additional context
Coverage is uneven, and that should be stated up front. interactivePrompt, blocked and waiting all come from agent hooks. src/shared/agent-status-types.ts is explicit at the top of the file that status comes from hooks and is never inferred. So this works for Claude and Codex, and not for a cursor-agent lane parked on its own confirmation prompt, which stays indistinguishable from a quiet one.
That is still worth shipping — it covers the hook-capable agents completely — but it should not be described as universal, and detecting a question from raw PTY output is a separate and much harder problem.
Related: #14809 documents the cost of exactly this class of ambiguity from the coordinator's side (three lanes reported as dead, an OOM hunt that found nothing, resolved only by reading each terminal's last screen).
Related work in flight: #14891 adds a per-command block reporting each lane's delivery and quiet time. This state would be a natural addition to that surface once it lands, though it is independently useful and does not depend on it.
Activity
OrcaWin commentedon Aug 16, 2026
Related: #14854 is the same coordinator-blind-spot from the field, including Cursor approval and workspace-trust prompts. Those sit outside hook
interactivePrompt(as this issue already notes), so they are related rather than the same fix.Tauri-EPO commentedon Aug 17, 2026
Closing as a duplicate of #13209, which predates this by eight days, is labelled P1, and already has #13215 implementing it.
I searched before filing and missed it — I looked for "lane blocked / question / invisible to coordinator" and #13209 is filed as "worker input-wait state / permission prompt". Same problem, different vocabulary. My fault, and the older report is the better one: it asks for a concrete field on
worker-showrather than describing the gap, and @YoraiLevi's comment there adds a controlled comparison showing which existing signals fail to distinguish a stalled worker from a working one.The one technical detail from here that may still be useful has been moved to #13215 as a review comment rather than left in a closed issue: that PR reads
runtime.getTerminalAgentStatus, which is hook-derived, so it will fire for Claude and Codex and stay silent for harness prompts that never reach a hook — Cursor's approval and workspace-trust dialogs among them. That is not an objection to the PR, which is the right first cut; it is a note that the field's contract should say what it is derived from.The non-hook half is tracked separately in #14854, which @OrcaWin cross-linked here earlier.