Repository navigation
fix: reload development sources atomically before HTTP dispatch - #14
Merged
WilliamRagstad merged 1 commit intoOct 25, 2026
Merged
Conversation
WilliamRagstad
marked this pull request as ready for review
October 25, 2026 22:15
WilliamRagstad
merged commit Oct 25, 2026
8825df4
into
codex/route-specificity-20261025
1 check passed
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.
After a valid development save, the next request now sees the edited HTML without waiting for a watcher notification. Reconcile source contents before dispatch and publish the new route/module snapshot only after parsing, route validation, and global initialization succeed. Failed edits retain the complete last good snapshot. HTML-only changes preserve globals; changed global code resets its module.
PR 3 of 4; depends on the routing PR. Refs #7. Covers atomic-save renames, additions, deletions, and UTF-8 HTML. Watcher events request reconciliation instead of parsing partial event paths. Unterminated blocks now produce diagnostics.
Validation:
cargo test --locked— 8 passed. Reload assertions make the next request immediately, without sleeps or polling. Production module behavior and per-call static file reads are also covered.