fix: delay exit on stdin close to prevent MCP instability
Docker Build (ARM64) / Build & Push (push) Successful in 2m58s
Docker Build (ARM64) / Build & Push (push) Successful in 2m58s
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user