Skip to content

fix(cli, mcp): up --on moves a lane started elsewhere; MCP up follows the default place - #376

Merged
7schmiede merged 3 commits into
mainfrom
fix/up-on-moves
Oct 29, 2026
Merged

7schmiede merged 3 commits into
mainfrom
fix/up-on-moves

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

devstack up --on local in a worktree whose lane had run on a node started it there again.

Cause: after devstack down a lane on a node stays started: its lease and its place stay, only its services stop. up then saw a started lane and only called /v1/up on it, where it ran. An explicit --on was passed over.

Fix: if the worktree's lane is started and --on names another place than the one it runs on, up moves it there first, as devstack lane move does: a cold start there that takes over once ready. "Another place" means this machine (local, here, or its own member name), or a node given by name, or as <pool>:<node>. Without --on, or with --on pool, a started lane stays where it runs, as before.

No review card: it makes --on do what it says (ADR-0025), with no new point.

The MCP tool up now does the same, through the same functions (names_here, move_wanted), with a move that prints nothing because the tool's stdout is its protocol. It also follows the machine's default place for lanes (Where lanes start, devstack pool default-on) when on is not given, as the CLI does. Before, it always started the lane here.

Checked

  • cargo clippy -p devstack --all-targets, cargo fmt: clean; cargo test -p devstack --bin devstack: green.
  • By hand (Windows, the devstack-worktrees lane, the pool's node int-baumeister, with the daemon at 0.30.0):
    • up --on int-baumeister moved the local lane to the node (4 s).
    • down, then up --on local, brought it back here: lane list says local, and the dev server serves the worktree's current files.
  • Not tried: moving between two nodes (only one node in the pool).

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 29, 2026 21:34
A lane started on a node stays started after `devstack down` (its lease
and place stay, its services stop), and `up` only started its services
again where it ran: `--on local` was passed over. An `--on` that names
another place than the lane's (this machine, or another node) now moves
it there, as `devstack lane move` does; without `--on` it stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tarted elsewhere

The MCP tool `up` started a lane here when `on` was not given, past the
machine's default (`devstack pool default-on`), and an `on` naming another
place than where a started lane ran started it there again, as `devstack
up` did before. Both now share the CLI's resolution: names_here,
move_wanted, and a move without output (the tool's stdout is its protocol).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede 7schmiede changed the title fix(cli): devstack up --on moves a lane started elsewhere fix(cli, mcp): up --on moves a lane started elsewhere; MCP up follows the default place Oct 29, 2026
@7schmiede
7schmiede merged commit a00203a into main Oct 29, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/up-on-moves branch October 29, 2026 21:18
@7schmiede 7schmiede mentioned this pull request Oct 30, 2026
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