Skip to content

feat: lane start, stop and reset take the lane of the worktree they run in - #477

Merged
7schmiede merged 2 commits into
mainfrom
feat/lane-here
Nov 6, 2026
Merged

7schmiede merged 2 commits into
mainfrom
feat/lane-here

Conversation

@7schmiede

@7schmiede 7schmiede commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What and why

In a lane's worktree devstack up starts that lane without being told its name, but devstack lane stop refused without one (Usage: devstack lane stop <NAME>): an agent finishing in a worktree had to work out the lane's name before it could stop the lane it had started.

  • devstack lane start, lane stop and lane reset take an optional name. Without it, they take the lane whose worktree the command runs in, by the daemon's list of lanes (matched by path, as devstack ui does). start brings the daemon up first, as up does; stop and reset need it running anyway.
  • The MCP tool lane_stop takes lane as optional too: without it, the lane of the worktree the MCP server runs in (the agent's usual way to tear down). lane_start keeps its required lane: in a worktree the agent's up already starts its lane.
  • In the main working tree or outside a worktree: this is not a lane's worktree; name it: devstack lane stop <NAME> (devstack lane list).
  • docs/stack-file.md, the devstack skill and the CHANGELOG say so.

No review card: an optional argument where one was required is additive and cheap to reverse; nothing a script reads changes. Decided on my own: reset gets the same as start and stop; of the MCP tools only lane_stop changes.

Verified

Windows 11, in this PR's worktree, from its ui/ folder:

  • 0.41.0: error: the following required arguments were not provided: <NAME>
  • this build: devstack lane start started lane lane-here (dashboard healthy), devstack lane stop stopped it
  • in the main working tree: the error above, exit 1
  • MCP over stdio from ui/, lane started by 0.41.0: tools/call lane_stop {} answered lane `lane-here` stopped

cargo fmt --check, cargo clippy --workspace --all-targets -D warnings, cargo test -p devstack (bin) green; a parse test pins the optional names.

Closes #476

🤖 Generated with Claude Code

7schmiede and others added 2 commits November 6, 2026 15:29
…un in

In a lane's worktree `devstack up` found the lane by itself, while
`devstack lane stop` refused without a name. Without one, start, stop and
reset now take the lane whose worktree the command runs in, by the
daemon's list (start brings the daemon up first, as up does). In the main
working tree or outside a worktree they ask for the name as before.

Closes #476

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

devstack lane stop in a worktree needs the lane's name, while devstack up there finds the lane itself

1 participant