Skip to content

Show warm worktrees in the branch picker and link to worktree settings - #8049

Merged
ymichael merged 1 commit into
mainfrom
bb/warm-pool-picker-hint
Nov 23, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/warm-pool-picker-hint

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Warm worktrees (#7869) are configured on the Worktree plugin's settings page, but nothing in the new-thread flow points there. A user picking a base branch can't tell whether warm worktrees exist for the project, or where to turn them on.

What changed

Only plugins/environment-git-worktree changes; no SDK, wire, or core changes.

  • app.tsx:
    • While the branch picker is open, it calls the existing warmPoolStatus RPC and refreshes on warm-pools-changed.
    • The Default branch row shows a pill with the number of ready warm worktrees on the chosen machine, for example "2 warm". The pill is hidden while the project's pool is off, when none are ready, or when the status call fails.
    • A "Worktree settings" row (settings icon) at the bottom of the picker opens the plugin's settings page through navigate.experimental_toSettings(), the path core uses for settings. It is a regular picker row, so arrow keys reach it.
  • README.md: one sentence on the hint.

How you verified

  • New tests in app.test.tsx:
    • The count includes only the chosen machine.
    • The pill is hidden while the pool is off, even with ready members.
    • The count updates on the realtime signal while the picker is open.
    • The picker is unchanged when the status call fails.
    • The settings row calls experimental_toSettings() and closes the picker without changing the inputs.
  • pnpm exec turbo run typecheck test --filter=bb-plugin-environment-git-worktree: 196 tests passed.
  • Manual check on pnpm start:worktree with a 2-member pool:
    • The picker showed "2 warm" on Default branch.
    • Worktree settings opened /settings/plugins/environment-git-worktree with the Warm worktrees section.
    • A project with the pool off showed no pill.

AGENT GENERATED

🤖 Generated with Claude Code

The Default branch row shows a pill with how many warm worktrees are
ready on the chosen machine, refreshed while the picker is open. A
Worktree settings row at the bottom of the picker opens the plugin's
settings page through navigate.experimental_toSettings().

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit e4cf101 into main Nov 23, 2026
62 of 63 checks passed
@ymichael
ymichael deleted the bb/warm-pool-picker-hint branch November 23, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant