Skip to content

fix(server): queue restarts requested during restart (fix #23392) - #23402

Open
QuarkOS wants to merge 1 commit into
vitejs:mainfrom
QuarkOS:fix/queue-restart-during-inflight
Open

fix(server): queue restarts requested during restart (fix #23392)#23402
QuarkOS wants to merge 1 commit into
vitejs:mainfrom
QuarkOS:fix/queue-restart-during-inflight

Conversation

@QuarkOS

@QuarkOS QuarkOS commented Aug 30, 2026

Copy link
Copy Markdown

fixes #23392

If vite.config changes while a restart is already running, the extra restart gets ignored. We keep serving the old config until the file is touched again.

We remember that a restart was requested, run one more after the current one finishes, and keep that when Vite swaps in the new server.

the restart.spec test holds the first restart, asks for more, and checks that exactly one follow-up runs.

Windows CI failed on a different HMR playground test. This restart test passed.

I used an agent for the first patch. I read the restart queue and the test before opening this.

Coalesce restart() calls that arrive while a restart is already in
flight so the server converges to the latest config on disk.
Copilot AI lite review requested due to automatic review settings August 30, 2026 23:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

vite.config change during an in-flight config restart is silently dropped, leaving the server running a config that no longer matches disk

2 participants