Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: A thread that only waits shows as Working and stays on the Working shelf #47837

Opencardene777(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. In a Claude thread, ask the agent to start a long background command, such as sleep 3600, and to wait for it with the t3_background_wait tool.
  2. Let the turn end while the command still runs.
  3. Look at the thread's status pill in the sidebar, and at the shelf that holds the thread.

The same happens when the agent waits on another thread with t3_thread_wait.

Expected behavior

The turn has ended, and the thread only waits. The row reads Waiting, and the thread stays in the inbox. The Working shelf and the pulsing Working pill belong to a turn that runs.

Actual behavior

  • The row shows the pulsing Working pill while the runtime status is waiting. resolveSidebarThreadStatus and resolveThreadStatusPill treat waiting like running (apps/web/src/components/Sidebar.logic.ts:1007 and apps/web/src/components/Sidebar.logic.ts:1308).
  • isThreadWorking puts the thread on the Working shelf (packages/client-runtime/src/state/threadInbox.ts:22). It returns true in three waiting cases:
    • runtime waiting, because threadRunStatusIsActive counts waiting as active
    • runtime idle while awaited background tasks hold the thread
    • runtime running with blockedOnThreadWait
  • The sidebar labels the last two cases Waiting. The row says Waiting, but the shelf says Working.
  • When the awaited work runs for hours or never ends, the thread stays on the Working shelf the whole time. I do not notice that the agent stopped and the thread needs me.

Impact

Major degradation or frequent failure

Version or commit

main @ c5651d74d6

I saw this in my own build, which follows main. The code above is the same on main @ c5651d74d6.

Environment

macOS, desktop app, Claude provider

Possible fix

In my build, isThreadWorking returns false in the three waiting cases, and the pill shows Waiting for runtime waiting. Running, starting, queued, and preparing turns stay on the Working shelf.

I prepared this report with an AI coding agent and reviewed it myself.

  1. tanstack-source added labelsbug

Sign in to join this conversation.