[Bug]: Thread already exists error when selecting "new worktree" option and starting the chat #5721
ashukumar2001(GitHub profile, opens in a new tab) added labelsbug
ashukumar2001(GitHub profile, opens in a new tab) added labelsneeds-triage
ashukumar2001(GitHub profile, opens in a new tab) changed the title
shivamhwp(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
The "already exists" message is a rollback artifact, not the real failure — worth checking your
~/.t3/userdata/logs/server.trace.ndjsonfor the error that precedes it. In my case the sequence was:The underlying cause for me was Start from origin with a base branch that exists locally but was never pushed:
prepareWorktreeonly checks that theoriginremote exists (the #5556 guard), then runsgit rev-parse --verify refs/remotes/origin/<base>^{commit}, which exits 128. Filed as #8191.Since you were on the new worktree option, this may be the same root cause — the base branch shown as
From origin/…in the branch toolbar has norefs/remotes/origin/...counterpart. Quick check: turn off Start from origin for that project, or rungit rev-parse --verify "refs/remotes/origin/<your base branch>^{commit}"in the repo. If that fails, it's #8191; if the preceding log line is a differentGitCommandError, it's another trigger for the shared stale-draft-ID behavior in #4647.Either way the actionable git stderr is never surfaced in the UI, which is what makes this class of failure so hard to self-diagnose.