Repository navigation
fix(daemon): a lane on a node keeps its copy in step with its mirror - #375
Merged
Merged
Conversation
A lane's daemon on a node is its own main tree there (its lane name is empty) and runs its dev servers from a copy of the mirror all the same (runs_from_copy). The file watcher asked the lane name alone whether to keep a copy in step, so the copy stayed as the lane started: the node got every edit, its dev server served the code of before. 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.
A lane on a node did not hot-reload. The node received every synced edit into its mirror (
/src), but the lane's dev server runs from a copy (/src/.devstack/lanes/main/src), and that copy stayed as the lane started. Found in use: a dashboard lane on int-baumeister served the code from its start, although the files in/srcwere current.Cause:
watch.rsdecided whether to keep a copy in step by!sup.lane.is_empty().runs_from_copy:!lane.is_empty() || remote_lane()).copy_changed. For a stack with only a dev server (norestart_on), it watched the stack file alone.Fix: the watcher asks
runs_from_copy(), which is nowpub(crate).No review card: a bug fix, no category point.
Checked
cargo fmt,cargo clippy -p devstack-daemon --all-targets: clean.cargo test -p devstack-daemon(Windows): green.remote_lane()reads its environment once per process, so a test would need a lane run on a node. Theremote-laneCI job starts one.🤖 Generated with Claude Code