Skip to content

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

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

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.

@sapphi-red sapphi-red added the bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR label Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

The PR has been manually labeled as likely to be created by a bot, LLM, or agent, and will be automatically closed. This may be because the PR contains LLM-generated descriptions, does not follow the PR template, is overly verbose, or does not contain any fruitful interaction, which harms the review process. Please read our AI policy for more information.

If you believe this is a mistake, please reply to this comment and we will review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR

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

3 participants