Skip to content

fix: route Live Mode changes to the watched file - #296

Open
PathGao wants to merge 5 commits into
alecdotdev:masterfrom
PathGao:fix/live-mode-route-watched-path
Open

fix: route Live Mode changes to the watched file#296
PathGao wants to merge 5 commits into
alecdotdev:masterfrom
PathGao:fix/live-mode-route-watched-path

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #295

Live Mode now tracks the active file at the window layer and carries the watched path in file-change events. An event for a background tab can no longer reload the active tab or discard its unsaved buffer. Enabling Live Mode no longer reloads the current document.

Depends on #293. Please merge in this order: #286#287#288#293 → this PR.

Validation:

  • npm ci
  • npm run check
  • npm test
  • cargo test

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@alecdotdev This is the next dependent safety fix after #293. It prevents Live Mode from reloading a different, dirty tab when a background watched file changes. All required checks pass; merge order is #286#293#296.

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

The branch is now directly based on #293; please use the updated single-chain merge order in the PR description.

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.

Live Mode can reload the wrong tab after an external file change

1 participant