Skip to content

Allow worktrees to reuse the selected branch#15

Open
tim-smart wants to merge 2 commits into
t3code/fix-primary-environment-requestfrom
t3code/reuse-selected-worktree-branch
Open

Allow worktrees to reuse the selected branch#15
tim-smart wants to merge 2 commits into
t3code/fix-primary-environment-requestfrom
t3code/reuse-selected-worktree-branch

Conversation

@tim-smart

Copy link
Copy Markdown
Owner

Summary

  • Add a branch selector option to check out the selected branch directly in a new worktree instead of creating a temporary branch.
  • Persist and propagate the reuse preference across draft threads, sidebar actions, and thread creation.
  • Materialize selected remote refs as derived local branches and add server coverage for local and remote branch reuse.

Testing

  • Not run (PR content generated from the provided commit and diff).

@tim-smart
tim-smart changed the base branch from tim to main July 24, 2026 00:45
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch 5 times, most recently from 612d76f to d9edea3 Compare July 24, 2026 03:34
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Jul 24, 2026
@tim-smart
tim-smart changed the base branch from main to t3code/fix-primary-environment-request July 24, 2026 03:34
@github-actions github-actions Bot added size:L and removed size:XXL labels Jul 24, 2026
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from d6104be to f9630af Compare July 24, 2026 04:10
@tim-smart
tim-smart force-pushed the t3code/fix-primary-environment-request branch from d9f8076 to f17ed8e Compare July 24, 2026 04:10
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from f9630af to db5e35a Compare July 24, 2026 08:52
@tim-smart
tim-smart force-pushed the t3code/fix-primary-environment-request branch 2 times, most recently from b0ce8cc to bc64f69 Compare July 24, 2026 09:00
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from db5e35a to 0b9f9b2 Compare July 24, 2026 09:00
@github-actions
github-actions Bot force-pushed the t3code/reuse-selected-worktree-branch branch from 0b9f9b2 to d4f7f20 Compare July 24, 2026 09:40
@github-actions
github-actions Bot force-pushed the t3code/fix-primary-environment-request branch 2 times, most recently from bade9ff to cec63b5 Compare July 24, 2026 14:12
@github-actions
github-actions Bot force-pushed the t3code/reuse-selected-worktree-branch branch from d4f7f20 to 19a6edb Compare July 24, 2026 14:12
- Add a branch-selector option to check out the selected branch directly
- Preserve the setting across drafts and thread actions
- Materialize remote refs as local branches during worktree bootstrap
@tim-smart
tim-smart force-pushed the t3code/fix-primary-environment-request branch from cec63b5 to de6966a Compare July 25, 2026 10:26
@tim-smart
tim-smart force-pushed the t3code/reuse-selected-worktree-branch branch from 19a6edb to 2d3900b Compare July 25, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant