Skip to content
Source
Sign inSign up
pingdotgg/t3code

[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

OpenOhadC(GitHub profile, opens in a new tab) opened this issue 1 comment

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

  1. From an agent thread, call t3_thread_launch with workspaceStrategy: { type: "worktree", baseRef: "origin/main", startFromOrigin: true } and a trivial message ("reply ok").
  2. While the new thread is still preparing (about 3 s in), call t3_thread_interrupt with stop: true. The thread shows "Workspace preparation interrupted" and "Run interrupted before provider start", and worktreePath stays null.
  3. Call t3_thread_send with mode: "auto" and a new message.
  4. Call t3_thread_read on 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_send returns status: "queued", delivery: "queued". Nothing says the message is held.
  • More than two minutes later, run 2 is still queued with startedAt: null. The thread has status: "queued", branch set and worktreePath: null.
  • The held message does not appear in t3_thread_read items; itemCount is 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

image

After clicking on "Send" button:

image

Workaround

None found. Launch a new thread.

  1. OhadC(GitHub profile, opens in a new tab) changed the title

  2. tanstack-source added labelsbug

  3. 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.

    • I pressed Stop during "Worktree setup", after "Fetch base branch" and before "Check out files" (shown as skipped). Run 1 ended interrupted with "Run interrupted before provider start". The thread has worktreePath: null and branch: null.
    • I edited and re-sent the message. It was held as run 2 and the banner showed "Retry worktree setup or choose a workspace before resuming the queue."
    • My next two resume attempts each created a new queued run with an empty message:
    t3_queue list:
      ordinal:2  "<original message + an added line>"
      ordinal:3  ""
      ordinal:4  ""
    thread: status=queued, activeRunId=null, worktreePath=null, branch=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

Sign in to join this conversation.