Repository navigation
Gate bb connect behind multi-machine experiment - #533
Merged
Merged
Conversation
SawyerHood
added a commit
that referenced
this pull request
Jul 8, 2026
## Summary PR #510 shipped two separable things: multi-host thread execution and bb connect. Multi-host isn't ready for prime time yet — this removes it from main while keeping every bb connect feature, and renames the gating experiment from "Multi-machine" to **"bb connect"** so it gates only the connect surfaces. ### Multi-host execution removed (host targeting back to pre-#510, primary-only) - Restored `assertPrimaryHostId` (non-primary → 400 `unsupported_host`); deleted `assertUsableHostId`, the `multi_machine_disabled` error, and its experiment dependency. Reverted all call sites: `routes/files.ts`, `routes/hosts.ts`, `routes/projects.ts`, `services/system/host-lookup.ts`, `services/threads/thread-request-eligibility.ts` (restores the `StableThreadRequestProjectData` machinery), `services/terminals/terminal-session-lifecycle.ts` (gate + `config` dep, incl. the integration-harness change). - Deleted `bb host list` and `bb thread spawn --host` (commands, registration, tests, guide/skill/docs mentions). - Removed the multi-host section from docs and guide templates; deleted `docs/m4-multimachine-evolution-overview.html`. ### Experiment renamed: `multiMachine` → `bbConnect` ("bb connect") - Domain schema, db data access, column rename via generated migration `0057_useful_manta.sql` (`RENAME COLUMN multi_machine → bb_connect` — existing opt-ins carry over). - All consumers: `server.ts` `isConnectEnabled`, plugin-service gate + user-facing strings, `routes/system.ts` reconcile, CLI plugin-proxy fallback (string contract kept in sync), Settings UI, builtin skills, guide templates (regenerated), `docs/configuration.md`. ### Untouched `plugins/connect`, `apps/connect`, `apps/web`, `packages/tunnel-contract`, `packages/connect-db`, deploy workflows — verified byte-for-byte identical. The live plugin load/unload on experiment toggle from #533 keeps working under the new name. ## Validation - Typecheck: server, cli, db, app, domain, templates, desktop — all pass - Tests: server (983), app (1282), cli (231), db (320), domain, templates, bb-plugin-connect, integration (54) — all pass - Independently reviewed (adversarial pass): diffed result against pre-#510 file states (only legitimate upstream drift remains), verified generated templates reproduce, migration/journal chain drizzle-generated, grep sweep clean outside `plans/` and historical migration artifacts - Desktop unit tests couldn't run in the worktree (broken local Electron install, unrelated); desktop typecheck passes — CI covers it here 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Tests