Repository navigation
fix(cli, mcp): up --on moves a lane started elsewhere; MCP up follows the default place - #376
Merged
Merged
Conversation
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>
Merged
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.
devstack up --on localin a worktree whose lane had run on a node started it there again.Cause: after
devstack downa lane on a node stays started: its lease and its place stay, only its services stop.upthen saw a started lane and only called/v1/upon it, where it ran. An explicit--onwas passed over.Fix: if the worktree's lane is started and
--onnames another place than the one it runs on,upmoves it there first, asdevstack lane movedoes: 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
--ondo what it says (ADR-0025), with no new point.The MCP tool
upnow 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) whenonis 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.devstack-worktreeslane, the pool's node int-baumeister, with the daemon at 0.30.0):up --on int-baumeistermoved the local lane to the node (4 s).down, thenup --on local, brought it back here:lane listsayslocal, and the dev server serves the worktree's current files.🤖 Generated with Claude Code