fix: reduce Windows console popups in web backend
Prefer graceful process termination before taskkill fallback Force ConPTY for Windows terminal sessions to avoid console flashes Keep git and server process operations running without visible command windows
This commit is contained in:
@@ -124,6 +124,15 @@ export const createOpenCodeLifecycleRuntime = (deps) => {
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
try {
|
||||
child.kill();
|
||||
} catch {
|
||||
}
|
||||
|
||||
if (await waitForChildProcessClose(child, 800)) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
spawnSync('taskkill', ['/pid', String(pid), '/t'], {
|
||||
stdio: 'ignore',
|
||||
|
||||
Reference in New Issue
Block a user