Add customizable worktree branch naming#1110
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can customize the tone of the review comments and chat replies.Configure the |
What Changed
There's now a dropdown in the bottom of the editor that allows you to select between three different Branch Naming modes: Auto, Prefix, and Custom
"Auto Branch Name" is the same as the current behavior
"Prefix" allows you to change the prefix from t3code to whatever you'd like, so for example "feat". T3code will still rename the part after the prefix when you go to create a PR.
"Custom Branch Name" allows you to totally override the branch name and do whatever you'd like with a static branch name
The menu goes away after you create the thread
Side note:
Adding tests bulked up the line count so it's a bit of a bigger PR but please don't ban me 😅, just close the PR if you think it's too big
Why
Using the default t3code prefix isn't always desired. A key workflow this is blocking for me is using the default branch name that Linear provides when creating a worktree, so the branch can automatically be tied to the ticket by Linear.
UI Changes
Previous:

New:


Screen.Recording.2026-03-14.at.11.40.55.PM.mov
Checklist
Note
Add customizable worktree branch naming with auto, prefix, and full modes
GitWorktreeBranchNamingcontract schema (auto/prefix/full modes) in git.ts and shared utilities in shared/src/git.ts for building and detecting temporary branch names.thread.createcommand →thread.createdevent →projection_threads.worktree_branch_naming_jsoncolumn (added in migration 014).buildFinalWorktreeBranchNameandisTemporaryWorktreeBranchNameutilities.{"mode":"auto"}by the migration; the repository now emits decode errors if the stored JSON is invalid.Macroscope summarized d0e6cec.