fix(cli): clear screen before spawning child process

Prevents Vite startup logs and connection messages from mixing
with the TUI app's output.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yunfei He
2026-05-24 21:23:26 +08:00
parent 020fd0d85a
commit d31e8b7a65
+1
View File
@@ -16,6 +16,7 @@ export function createProcessManager(options: ProcessManagerOptions) {
let currentBundlePath = options.bundlePath;
function doSpawn() {
process.stdout.write("\x1b[2J\x1b[H");
options.logger.mode = "silent";
child = spawn("node", ["--import", loaderBootstrap, currentBundlePath], {
stdio: "inherit",