chore(mapgen-studio): simplify dev host process - #1699
Open
mateicanavra wants to merge 1 commit into
Open
Conversation
mateicanavra
marked this pull request as ready for review
June 14, 2026 03:17
This was referenced Jun 14, 2026
Owner
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
refactor(mapgen-studio): collapse dev-live into single Bun watch process with in-process Vite
mateicanavra
force-pushed
the
codex/simplify-mapgen-studio-dev-host
branch
2 times, most recently
from
June 14, 2026 07:56
a5cd771 to
3dab7a3
Compare
mateicanavra
force-pushed
the
codex/simplify-mapgen-studio-dev-host
branch
from
June 14, 2026 08:07
3dab7a3 to
201719b
Compare
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.

The
devscript now runs the daemon and Vite frontend in a single Bun process rather than spawning them as separate child processes.bun --watchis added to thedevscript so that Bun's file watcher owns backend restarts via thedevLive.tsentrypoint, while Vite continues to handle frontend HMR. Vite is started in-process usingcreateServerfrom the Vite API instead of being spawned as a subprocess.The
DevLivePlantype is updated to reflect this: thedaemonandvitefields now describe configuration values (host, port, config file path) rather than subprocess commands and arguments. TheDevLiveCommandandRunningChildtypes are removed entirely, along with thestartChildandwaitForFirstExithelpers. Signal handling is updated to cleanly shut down the in-process Vite server and daemon onSIGINT/SIGTERMand exit with the appropriate code.The runbook is updated to document the direct watcher invocation (
bun --watch src/server/daemon/devLive.ts) as the preferred command for detached local sessions where dependencies are already prepared.