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.
@@ -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
- process.on('disconnect', () => gracefulExit('disconnect')); // Parent died
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-ai-bridge",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "MCP server bridging Chrome browser and AI assistants (ChatGPT, Gemini). Browser automation + AI consultation.",
5
5
  "type": "module",
6
6
  "bin": "./scripts/cli.mjs",