fix: delay exit on stdin close to prevent MCP instability
Docker Build (ARM64) / Build & Push (push) Successful in 2m58s

This commit is contained in:
2026-06-25 01:50:40 +02:00
parent 53faaca5ab
commit ca559acb3f
+2 -1
View File
@@ -3003,7 +3003,8 @@ async function runServer(): Promise<void> {
}
server.onclose = shutdown;
process.stdin.on('close', shutdown);
// Delay exit on stdin close — prevents crash if CodeWhale briefly disconnects during init
process.stdin.on('close', () => setTimeout(shutdown, 1000));
process.on('SIGTERM', shutdown);
process.on('SIGINT', shutdown);