Skip to content

Tell a desktop-hosted server's move checklist what happens to its computer - #4176

Merged
SawyerHood merged 1 commit into
bb/moved-desktop-runtimefrom
bb/moved-desktop-move-check
Sep 23, 2026
Merged

SawyerHood merged 1 commit into
bb/moved-desktop-runtimefrom
bb/moved-desktop-move-check

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Nothing in the move checklist told someone moving a desktop-hosted server what happens to their computer afterwards, or that keeping it connected needs Node.js 22.19+.

Stacked on #4175, which installs the service from the desktop app.

What changed

  • ServerMoveAppOptions carries the server's BB_APP_SURFACE, taken from serverConfig in start-server.ts and defaulting to web in createApp. It flows through createDefaultServerMoveEnvironment into ServerMoveEnvironment.serverAppSurface and the check environment.
  • When the server runs in the desktop app, runServerMoveCheck adds an info item, desktop-app-machine. It says the app will keep the computer connected as a background machine that updates with the server, and that this needs Node.js 22.19+ there. It never blocks the move.

No server/daemon wire change.

How you verified

  • apps/server/test/server-move/checks.test.ts: a desktop-hosted server gets the item; a web one doesn't; canMove is unchanged.
  • Test environment builders updated.
  • pnpm exec turbo run test --filter=@bb/server -- test/server-move/: 97 passed.
  • Full @bb/server suite: 3085 passed.
  • pnpm exec turbo run typecheck --filter=@bb/server passes.

🤖 Generated with Claude Code

AGENT GENERATED

@SawyerHood
SawyerHood added this pull request to stack #4177 September 23, 2026 16:29
…puter

The server knows it runs in the desktop app (BB_APP_SURFACE). When it does,
`bb server move --check` and the move checklist now include an info item
saying the app will keep that computer connected as a background machine after
the move, and that the service needs Node.js 22.19+ there; without it the
computer stays connected only while the app is open.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@SawyerHood
SawyerHood force-pushed the bb/moved-desktop-move-check branch from 282b477 to 9177a8f Compare September 23, 2026 17:10
@SawyerHood
SawyerHood marked this pull request as ready for review September 23, 2026 17:37
@SawyerHood
SawyerHood merged commit d5cfc97 into main Sep 23, 2026
23 of 34 checks passed
@SawyerHood
SawyerHood deleted the bb/moved-desktop-move-check branch September 23, 2026 17:38
SawyerHood added a commit that referenced this pull request Sep 23, 2026
)

## Human comments

## What was wrong

`bb server move` is behind the default-off `serverMove` experiment, but
the agent-facing directions didn't say so, and nothing told an agent to
wait for the user before moving a server. A move stops all running work
and is hard to undo, and `--yes` lets an agent skip the interactive
confirmation.

Stacked on #4176.

## What changed

- `plugins/bb-guide/skills/bb-cli/SKILL.md`,
`references/thread-creation.md`, `references/command-index.md`, and the
machines guide template (`bb guide machines`) now say:
  - server moves are experimental
- agents must never move a server, abandon a move, or unlock an old copy
without the user's explicit confirmation in the conversation
- agents should run `--check`, show the checklist, wait for
confirmation, and not pass `--yes` on the user's behalf
- `bb server move --help` describes the command as experimental.

Docs and help text only; no behavior change.

## How you verified

- `pnpm exec turbo run test --filter=@bb/cli --filter=@bb/templates`:
841 + 47 passed.
- `oxfmt --check` on the changed TypeScript file.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> AGENT GENERATED

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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