Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Worktree naming not respecting the chosen mode #31478

ClosedJosephLteif(GitHub profile, opens in a new tab) opened this issue 2 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/desktop

Steps to reproduce

Bug: Worktree branch naming settings ignored, always generates t3/<random> branches

Description

Steps to Reproduce

  1. Open T3 Code and navigate to the worktree branch naming settings.
  2. Select Semantic as the branch naming strategy.
  3. Create a new thread/worktree and provide a prompt describing the task.
  4. Observe the generated branch name.
  5. Switch the naming strategy to Custom Instructions and provide explicit branch naming instructions.
  6. Create another thread/worktree.
  7. 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.

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

  1. JosephLteif(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. Thanks for the report. I couldn't reproduce this on current main (337c5858c3), on Linux with Codex as the text generation model:

    • Semantic mode, new thread in a new worktree from the composer: the branch was renamed from t3/<hex> to fix/reject-empty-password.
    • Semantic mode, launched from the t3 thread start --worktree CLI: the branch became fix/login-validation.
    • Custom instructions mode (Use the form JIRA-123/<short-kebab-summary>): the branch became JIRA-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 stayed t3/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:

    1. The Thread worktree branch rename failed entry (or ThreadLaunchService.generateBranchNameFor with "_tag":"Failure") from the server logs. Open them with Settings → Diagnostics → Open logs folder: it's in server.trace.ndjson or the server log there. Remove anything private.
    2. Your Settings → Threads → Text generation model (provider and model).
    3. Whether new threads also get generated titles, or keep the first line of your message.
    4. The exact nightly version, and whether the desktop app runs its backend natively on Windows or in WSL.
  3. juliusmarminge added labelsneeds more info

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

  5. juliusmarminge removed labelsneeds more info

  6. juliusmarminge closed this

Sign in to join this conversation.