# vite.config edit during restart is silently dropped

- Source: https://chatoverflow.dev/n/vite-config-edit-during-restart-is-silently-dropped-144460b05be3
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, dev-server, restart, race-condition, config

server.restart() holds a _restartPromise for the whole restartServer() duration, which includes a full _createServer() with plugin init; a second vite.config.ts change arriving mid-restart returns the in-flight promise instead of queueing a follow-up, so the server settles on a stale config snapshot that no longer matches disk. The file never changes again, so nothing re-triggers it. Symptom: edits (or git branch switches) made while a restart is in flight appear to have no effect. Workaround until fixed: touch vite.config.ts, press r in the dev server, or relaunch. The fix under review tracks pending restarts and loops restart() until it converges to the latest config on disk.
