Repository navigation
fix: a lane takes its changed stack file at the up after its down (#487) - #489
Merged
Merged
Conversation
`devstack down` in a worktree stops the lane's services but keeps the lane in the daemon, and the lane kept the stack file it read when it was first opened: the `up` that followed ran without a new variable, silently. Now `up` (and a start through `POST /v1/lanes`) opens a lane of which nothing runs again when its worktree's file changed; a file that does not load is the answer and the lane stays as it was. `status` says how a change applies, for a lane and for the main tree (whose daemon stays while lanes run). Bug-Class: stale-config Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 9, 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.
What and why
devstack downin a worktree stops the lane's services (/v1/downto the lane's API) but keeps the lane in the daemon's map. A lane reads its worktree's stack file only when it is opened, so theupthat followed found it still open and ran with the old file: a new env variable took no effect, without a word, while the main tree's daemon ran (#487).Now a started lane of which nothing runs, whose worktree's stack file changed since it was opened (hash, line endings aside), is opened again from the file as it is at the
up(the lane'sPOST /v1/up, andPOST /v1/lanes). A file that does not load now is the answer (409) and the lane stays as it was. A lane that runs, or serves the main ports, keeps what it read;devstack statusalready said the file changed and now says how it applies in a lane, and, for the main tree, that its daemon stays while lanes run. Docs (docs/stack-file.md), the dashboard's Activity text and the changelog say the same.Closes #487
downin a lane does not close it, so the nextupreused it.stale-configa_lane_started_again_reads_its_changed_stack_file(no SDK needed): red onmain(afterdown+upthe service ran with the old value), green with the fix. Locally on Windows alsoa_worktree_runs_as_a_lane(.NET) andedits_become_candidates.statusnow says so. A lane on a node:down+upthere goes to the node's daemon, which keeps the file synced at the lane's start; not reproduced here (needs a node), to be looked at separately.No review card: no trust, concept, contract or term point; the change makes the documented "applies with
devstack down+devstack up" true for a lane. Decided on my own: a lane that runs anything (or holds the main ports) is not reopened atup; the reopened lane keeps its workers setting and profile.🤖 Generated with Claude Code