chrome-ai-bridge 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/graceful.js +6 -1
- package/package.json +1 -1
package/build/src/graceful.js
CHANGED
|
@@ -95,7 +95,12 @@ export function setupGraceful(options) {
|
|
|
95
95
|
// Register signal handlers
|
|
96
96
|
process.on('SIGTERM', () => gracefulExit('SIGTERM'));
|
|
97
97
|
process.on('SIGINT', () => gracefulExit('SIGINT'));
|
|
98
|
-
|
|
98
|
+
// Note: 'disconnect' is intentionally NOT triggering gracefulExit
|
|
99
|
+
// Claude Code sends disconnect when user presses Esc to cancel a task,
|
|
100
|
+
// but the MCP server should continue running for subsequent tool calls
|
|
101
|
+
process.on('disconnect', () => {
|
|
102
|
+
console.error('[graceful] Parent process disconnected (ignored - MCP server continues)');
|
|
103
|
+
});
|
|
99
104
|
process.on('uncaughtException', async (err) => {
|
|
100
105
|
console.error('[graceful] Uncaught exception:', err);
|
|
101
106
|
await gracefulExit('uncaughtException');
|
package/package.json
CHANGED