Repository navigation
feat: restart, rebuild or cold; a lane restarts where it runs; groups take their containers along (ADR-0072) - #351
Merged
Merged
Conversation
… take their containers along (ADR-0072)
- Three restart levels, named as ADR-0038 names them: Restart (warm, from
the build there is for the inputs, data kept), Rebuild (built again,
data kept), Cold (lanes only: built again and seeded again; asks).
- POST /v1/lanes/{lane}/restart {"mode"}: warm and rebuild restart the
running services in place (on a node through the lane's own API, so the
lease, node and ports stay); cold stops the lane, resets its data and
starts it again at the same place with its profile and workers.
- POST /v1/groups/{name}/rebuild; a group's start and stop take its
container members along as its restart did (a lane leaves the main
tree's shared ones alone; on a node the agent acts on them, 0.28.0).
- Dashboard: one SplitButton for every restart (service row, group head,
lane header); the lane's actions in one menu in the header and behind a
"…" or right click in the branch picker; the command palette has them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
feat/restart-levels
branch
from
October 28, 2026 13:07
a0f6d45 to
eb1a0c6
Compare
This was referenced Oct 28, 2026
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.
Points 2b, 3 and 4 of the owner's dashboard review: warm/cold restarts in the UI, a lane's actions in one place, and group actions for a group of containers.
Review card
Approved by the owner in the conversation on 2026-10-28: points 1–5.
POST /v1/lanes/{lane}/restart {"mode": "warm"|"rebuild"|"cold"}on the requester's daemon: the lane restarts where it runs (same node, same ports);coldresets in between. Plusrebuildas a group action.POST /v1/groups/{name}/start|stoptake the group's containers along, asrestartalready does; a lane'ssharedcontainers are skipped. Every group with services or containers gets head actions.Decided without the owner: no Cold for the main tree (its data goes through a profile with
data = "fresh"); the CLI keepsrestart --rebuild, no--coldalias, no new CLI or MCP command for a lane restart; Remove worktree also stays in the branch picker; a lane's warm restart and rebuild restart its running services only (stopped ones stay stopped, containers stay up); a cold restart answers once the lane is started again, its services start after (on a nodemovingshows it); the main header button of a stopped lane starts it on this machine (the start card below still offers the pool); a node must run 0.28.0 for a group's start/stop/rebuild that name containers (the requester says so otherwise).What changed
supervisor/lifecycle.rs):group_actiontakesrebuildand acts on container members on every action throughgroup_containers(start before services, stop after, restart after;sharedskipped in a lane;NODE_DID_NOT_ACTon a node as before).restart_runningrestarts a tree's running services at the same time.lanes.rsLanes::restart,api.rslanes_restart,remote.rsRemoteLane::restart_services/up): warm/rebuild in place, locally through the lane's supervisor, on a node through the lane's API; cold = stop → reset → start at the same place (activate/activate_remotewith its profile and workers), thenup.devstack-nodelaneinfra::named,node.rs): a group'sstart,stopandrebuildname its containers (rebuild restarts them);containers_needasks 0.28.0 for these.SplitButton.vue;lib/laneActions.ts(one model for the header, the branch picker and the command palette);ServiceRow,OverviewView(group head shown for groups with containers too),StackHeader,BranchPicker,CommandPalette; storerestartLane/laneAction; journal labels; mock routes.docs/adr/README.md,docs/dashboard-api.md,docs/stack-file.md(groups),skills/devstack/SKILL.md, CHANGELOG.Checked
cargo fmt,cargo clippy --all-targets -p devstack-daemon -p devstack-node -p devstack -- -D warnings: clean.cargo test -p devstack-daemon -p devstack-node -p devstack: all pass (new/changed:the_node_looks_at_service_routes_that_may_name_containers,a_route_names_the_containers_the_daemon_would_act_on,a_request_that_names_containers_needs_a_node_that_acts_on_them). The ignored integration tests got a warm-restart step (a_worktree_runs_as_a_lane,a_lane_runs_on_a_node_of_the_pool); not run here (they need the .NET SDK / Linux + Docker).ui:npm run typecheck,npm test(84 passed; newlaneActions.test.ts, journal labels).Note: #348 gives rows a fixed actions column of 60 px; a row's restart now has an arrow beside it (restart 28 + arrow 16 + stop 28), so
--col-actionsneeds about 76 px once both are in. CHANGELOG[Unreleased]will conflict with #347/#348.🤖 Generated with Claude Code