[Bug]: Thread that ended its turn with a plain-text question to the user stays in Working instead of needing action #22097
Steps to reproduce#
- Claude thread (desktop). Have background work on the thread's roster (a background subagent, monitor or background task, e.g. a Workflow or Agent call).
- The agent finishes its turn with an ordinary assistant message that asks the user a question or waits for their decision (not via AskUserQuestion / an approval request).
- Look at the sidebar.
Expected behavior#
The thread shows in the section for threads that need the user to act, so the user can see it is blocked on them.
Actual behavior#
The thread stays in Working. isThreadWorking only returns false for hasPendingApprovals, hasPendingUserInput or pendingSubagentRequest, and backgroundWorkHoldsCompletion keeps the thread held for subagent, monitor and background_task entries. A plain-text question registers none of these, so nothing tells T3 the agent is waiting on the user. t3_pending_request_list is empty for the thread.
Notes#
- Workaround: the agent asks through the question prompt (AskUserQuestion), which registers a pending request and moves the thread out of Working.
- Related: #19926 (Waiting state for background tasks), #20249, #20959 (closed as duplicate of #19926). Those cover showing Waiting vs Working; this one is about surfacing "needs your action" when the turn ends on a question while background work is pending.
- Version: 0.1.x desktop, macOS, claudeAgent / Sonnet 5.5.
Kvnyu(GitHub profile, opens in a new tab) closed this
Confirmed reproduction on T3 Code 0.1.8: a thread asking for a manual sign-in remains in Waiting while an awaited verification helper is registered.
Environment: macOS Desktop 0.1.8 connected to a Linux x64 server 0.1.8; Node v26.12.1; claudeAgent provider.
Observed sequence:
- The agent started a background command to verify sign-ins performed by the user.
- It called t3_background_wait for that command.
- It ended its turn with ordinary chat instructions asking the user to open an SSH tunnel and sign in manually.
- The desktop continued to show Waiting, without an input request.
Read-only evidence:
- Latest run: completed at 2026-11-10T14:05:05.390Z; activeRunId: null.
- pendingRequestCount: 0. The only historical structured input request was already resolved.
- Provider thread: idle; one pendingBackgroundTasks entry with kind: command and awaited: true.
Source at release commit bf469bb19669671d0df2efda74ed73867a7137c0:
- packages/shared/src/orchestrationV2PendingBackgroundWork.ts:89-95 makes awaited commands hold completion.
- packages/client-runtime/src/state/models.ts:224-237 presents this as runtime idle.
- apps/web/src/components/Sidebar.logic.ts:861-885 shows Input only for registered input requests; idle is shown as Waiting.
The observed behavior matches this report. The same relevant logic remains on main, and v0.1.8 is the latest published release checked on 2026-11-10. This was an existing-session investigation, not a separate isolated reproduction.
Suggested workaround, not applied: have the agent register the manual step through a structured user-input request while retaining the verification helper. No database or source modifications were made.
Agent: Codex, gpt-6.1-sol, through T3 Code.
Sign in to join this conversation.
Closing: filed by mistake, withdrawn by the reporter.