GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add customizable worktree branch naming by benmarg · Pull Request #1110 · pingdotgg/t3code

Conversation

@benmarg

@benmarg benmarg commented Mar 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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:
Screenshot 2026-03-14 at 11 50 31 PM

New:
image
image

Screen.Recording.2026-03-14.at.11.40.55.PM.mov

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Add customizable worktree branch naming with auto, prefix, and full modes

  • Introduces a GitWorktreeBranchNaming contract schema (auto/prefix/full modes) in git.ts and shared utilities in shared/src/git.ts for building and detecting temporary branch names.
  • Adds a branch naming selector UI to BranchToolbar.tsx so users can choose auto, a custom prefix, or a fully explicit branch name when creating a new worktree.
  • Persists the chosen naming config through the full stack: draft store → thread.create command → thread.created event → projection_threads.worktree_branch_naming_json column (added in migration 014).
  • Replaces inline branch detection logic in ProviderCommandReactor.ts with the new shared buildFinalWorktreeBranchName and isTemporaryWorktreeBranchName utilities.
  • Behavioral Change: existing rows are backfilled to {"mode":"auto"} by the migration; the repository now emits decode errors if the stored JSON is invalid.

Macroscope summarized d0e6cec.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

GabeDuarteM, bsmassena, vlad-truefi, and PiquelChips reacted with thumbs up emoji
All reactions
  • 👍 4 reactions
@benmarg
Add customizable worktree branch naming
823bf09
@coderabbitai

coderabbitai Bot commented Mar 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: d6b5bf01-0a2b-441d-bc03-5995eb6ae94e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can customize the tone of the review comments and chat replies.

Configure the tone_instructions setting to customize the tone of the review comments and chat replies. For example, you can set the tone to Act like a strict teacher, Act like a pirate and more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:XL 500-999 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list. labels Mar 15, 2026
@benmarg benmarg mentioned this pull request Mar 15, 2026
Use repository-derived worktree branch names instead of the hardcoded t3code prefix #272
Closed
@benmarg
Rename full branch mode to custom branch name
d0e6cec
@maria-rcks maria-rcks added needs-julius enhancement Requested improvement or new capability. labels Mar 15, 2026
@benmarg

benmarg commented Mar 23, 2026

Copy link
Copy Markdown
Author

@maria-rcks I can resolve merge conflicts, but I'd like to know if this will get merged in if those are fixed, i.e. do you/Julius agree this is a feature that should be added

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge mentioned this pull request Jun 10, 2026
feat: make worktree branch prefix configurable #889
Closed
@juliusmarminge

juliusmarminge commented Jun 10, 2026

Copy link
Copy Markdown
Member

Closing as part of an open-PR triage — this overlaps #889 and both have drifted too far behind main to review as-is. If configurable branch naming is still wanted, a fresh PR against current main would be welcome. Thanks!

ElliotSknr reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Jun 10, 2026
@MrSimmmons MrSimmmons mentioned this pull request Aug 13, 2026
[Feature]: Fully custom branch name when starting a new worktree thread #6421
Closed
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

enhancement Requested improvement or new capability. needs-julius size:XL 500-999 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@benmarg @juliusmarminge @maria-rcks
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.