Skip to content

Restore personal environment forks in CLI - #3024

Merged
ymichael merged 1 commit into
mainfrom
bb/fixer-restore-personal-environment-forks-in-cli-thr_gz9yc9fsct
Sep 3, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fixer-restore-personal-environment-forks-in-cli-thr_gz9yc9fsct

Conversation

@ymichael

@ymichael ymichael commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

PR #3018 replaced the fork-specific workspace switch with normal environment selection, but the shared CLI environment builder recognized only worktree. The server and SDK still accepted fresh personal workspaces, so personal-project users lost the CLI path that the former isolated fork option provided.

What changed

  • Accept --new-environment personal through the existing host-placement path, which makes forks use their derived source host.
  • Advertise and document both supported fresh environment choices in CLI help, the generated guide source, and the bundled bb-cli skill.
  • Add focused builder, fork-request, source-host, and help coverage while preserving default reuse, worktree/base-branch behavior, and the absence of a cross-host fork selector.
  • No server/daemon wire contract changed, so HOST_DAEMON_PROTOCOL_VERSION is unchanged.

How you verified

  • The new focused assertions failed before the implementation and pass afterward: 40/40 tests across spawn-helpers.test.ts and command-output/thread-fork.test.ts.
  • pnpm exec turbo run test --filter=@bb/templates -- --run test/templates.test.ts — 7/7 passed.
  • pnpm exec turbo run build typecheck --filter=@bb/cli --filter=@bb/templates — 6/6 tasks passed.
  • pnpm exec oxfmt --check ... and git diff --check passed.

Fixes #3018

AGENT GENERATED

@ymichael
ymichael merged commit 3edd122 into main Sep 3, 2026
16 checks passed
@ymichael
ymichael deleted the bb/fixer-restore-personal-environment-forks-in-cli-thr_gz9yc9fsct branch September 3, 2026 23:10
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