Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ and listed with their assets on the

## [Unreleased]

### Fixed

- **A lane on a node picks up edits**: its dev servers ran from a copy of
the worktree that its daemon there never brought up to date, so hot
reload showed the code of the lane's start; the file watcher took the
lane's daemon on the node for a main tree, which runs in place.

## [0.30.0] - 2026-10-29

The skills of a pool's set can be taken one by one: each switched on or
Expand Down
2 changes: 1 addition & 1 deletion crates/devstack-daemon/src/supervisor/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl Supervisor {
/// A lane runs from a copy of its worktree, never from the worktree itself
/// (ADR-0024): git and the tools that manage worktrees can remove one at
/// any time, and a process inside it would hold it open (Windows).
pub(super) fn runs_from_copy(&self) -> bool {
pub(crate) fn runs_from_copy(&self) -> bool {
// A lane on a node runs from a copy of its mirror too: `prepare`
// installs there what the mirror lacks (ignored files, node_modules).
!self.lane.is_empty() || crate::remote_lane()
Expand Down
5 changes: 4 additions & 1 deletion crates/devstack-daemon/src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ fn watch(sup: Arc<Supervisor>) -> Result<Watcher, String> {
.filter_map(move |(s, p)| set(p).map(|set| (g.clone(), s.clone(), set)))
})
.collect();
let lane = !sup.lane.is_empty();
// What runs from a copy of the tree, to keep in step with it: a lane
// here, and a lane's daemon on a node, which is its own main tree there
// (its `lane` is empty) and runs from a copy of the mirror all the same.
let lane = sup.runs_from_copy();
let only_stack_file =
built.is_empty() && devservers.is_empty() && containers.is_empty() && !lane;
let stack_rel = sup
Expand Down
Loading