[Bug]: A message sent after a stopped worktree setup is held with no way to release it (MCP reports "queued", Send now does nothing) #37196
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- From an agent thread, call
t3_thread_launchwithworkspaceStrategy: { type: "worktree", baseRef: "origin/main", startFromOrigin: true }and a trivial message ("reply ok"). - While the new thread is still
preparing(about 3 s in), callt3_thread_interruptwithstop: true. The thread shows "Workspace preparation interrupted" and "Run interrupted before provider start", andworktreePathstaysnull. - Call
t3_thread_sendwithmode: "auto"and a new message. - Call
t3_thread_readon the thread two minutes later.
Expected behavior#
A message held after a stopped worktree setup can be released: the app offers a way to retry the worktree setup (or Send now works), and MCP callers get the same. The send result or t3_thread_read should say the message is held, so the calling agent knows not to wait for it.
Actual behavior#
t3_thread_sendreturnsstatus: "queued", delivery: "queued". Nothing says the message is held.- More than two minutes later, run 2 is still
queuedwithstartedAt: null. The thread hasstatus: "queued",branchset andworktreePath: null. - The held message does not appear in
t3_thread_readitems;itemCountis unchanged. - No MCP tool releases it, so the agent cannot.
- The app can't release it either (screenshots below):
- The held message shows as a queued message with Send now. Clicking Send now does nothing.
- Clicking the composer's send button shows "Retry worktree setup or choose a workspace before resuming the queue."
- After this interrupted (not failed) preparation, no retry control is shown next to the "Run interrupted" marker.
- So the thread never resumes, and a new thread has to be launched.
The hold itself is intended: #23618, the fix for #23600, holds a message sent after a stopped worktree setup until retry. This report is about the hold having no way out after an interrupted setup, and MCP callers not being told about it. It is not #22423, which is about a provider crash.
Impact#
Minor bug or occasional failure
Version or commit#
Nightly 0.1.10
Environment#
Windows 11, desktop app (Nightly) 0.1.10, Claude provider (claude-opus-5-5), driven by an agent through T3 MCP tools
Logs or stack traces#
t3_thread_send -> {"runId":"...:ordinal:2","status":"queued","delivery":"queued"}
t3_thread_read (2 min later):
thread: status=queued, activeRunId=null, branch="repro-held-send", worktreePath=null, itemCount=4
run 2: status=queued, requestedAt=12:15:30Z, startedAt=null
run 1: status=interrupted, startedAt=null ("Run interrupted before provider start")
items: user message, "Workspace preparation interrupted", interrupt request, interrupt result (no held message)
Screenshots, recordings, or supporting files#
After clicking on "Send" button:
Workaround#
None found. Launch a new thread.
OhadC(GitHub profile, opens in a new tab) changed the title
tanstack-source added labelsbug
Sign in to join this conversation.
Same thing here from the web UI (macOS client, Linux server, Claude provider
claude-opus-5-5). One extra symptom: every attempt to resume adds another queued run with empty text.interruptedwith "Run interrupted before provider start". The thread hasworktreePath: nullandbranch: null.If the hold is ever released, those blank runs would go to the agent as empty turns.
Workaround: start a new thread with the message.
🤖 Generated with Claude Code