[Bug]: Worktree naming not respecting the chosen mode #31478
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/desktop
Steps to reproduce#
Bug: Worktree branch naming settings ignored, always generates t3/<random> branches#
Description#
Steps to Reproduce#
- Open T3 Code and navigate to the worktree branch naming settings.
- Select Semantic as the branch naming strategy.
- Create a new thread/worktree and provide a prompt describing the task.
- Observe the generated branch name.
- Switch the naming strategy to Custom Instructions and provide explicit branch naming instructions.
- Create another thread/worktree.
- Observe that the branch name still follows the same random naming pattern.
Actual Behavior#
Every newly created worktree receives a branch name following the pattern:
t3/<random-characters>
The branch name does not appear to be updated afterward, regardless of the selected naming strategy.
Reproducibility#
100% reproducible in my testing.
Tested across:
- Two separate machines.
- Several unrelated projects/repositories.
- Both GitHub Copilot and OpenAI Codex.
- Both Semantic and Custom Instructions naming strategies.
- Normal worktree creation workflow, without any special configuration or unusual steps.
Additional Context#
Since the issue occurs across different machines, repositories, AI providers, and naming strategies, it does not appear to be isolated to a specific project or provider.
It seems that either the branch naming configuration is not being applied or the branch name generation/renaming step is silently failing and leaving the initial temporary branch name unchanged.
It would be helpful if failures during semantic branch name generation were surfaced in the UI or logs rather than silently falling back to a random branch name.
Potentially Related Issue#
This might be related to [#5359: Branch-name generation fails silently](https://github.com/pingdotgg/t3code/issues/5359), which describes branch names retaining their randomly generated values when text generation fails.
I'm not certain whether this is the same underlying issue, since the behavior I'm experiencing is consistent across multiple machines, projects, and providers. However, the symptoms appear similar and may share the same root cause.
Expected behavior#
The generated branch name should respect the selected naming strategy:
- Semantic: Generate a meaningful branch name based on the task or prompt, such as
fix/login-validation. - Custom Instructions: Generate a branch name following the user-provided naming conventions.
Actual behavior#
This issue report was drafted by ChatGPT on behalf of the user, based on their firsthand experience and testing.
The worktree branch naming feature does not appear to respect the configured naming strategy.
Regardless of whether Semantic or Custom Instructions is selected, every newly created worktree receives a randomly generated branch name following the t3/<random-characters> pattern.
This happens consistently during normal usage across multiple projects, machines, and AI providers.
Impact#
Minor bug or occasional failure
Version or commit#
Latest nightly version
Environment#
Windows desktop app
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
No response
JosephLteif(GitHub profile, opens in a new tab) added labelsbug
JosephLteif(GitHub profile, opens in a new tab) added labelsneeds-triage
JosephLteif(GitHub profile, opens in a new tab) changed the title
juliusmarminge added labelsneeds more info
Okay apparently No text generation providers available is showing when I go to the Text generation model, for copilot sub, which is most probably the issue, but it does not show why no models are available
juliusmarminge removed labelsneeds more info
juliusmarminge closed this
Sign in to join this conversation.
Thanks for the report. I couldn't reproduce this on current
main(337c5858c3), on Linux with Codex as the text generation model:t3/<hex>tofix/reject-empty-password.t3 thread start --worktreeCLI: the branch becamefix/login-validation.Use the form JIRA-123/<short-kebab-summary>): the branch becameJIRA-123/add-subtract-function.A branch that stays
t3/<8 hex chars>is what you get when the branch-name request to the text generation model fails. When I pointed the text generation model at a model my account can't use, I got your exact symptom: the branch stayedt3/6c3142a7, and the only trace was a server log warning,Thread worktree branch rename failed, with the cause. So on your two machines the generation request is probably failing, and that log line says why.Could you share:
Thread worktree branch rename failedentry (orThreadLaunchService.generateBranchNameForwith"_tag":"Failure") from the server logs. Open them with Settings → Diagnostics → Open logs folder: it's inserver.trace.ndjsonor the server log there. Remove anything private.