From 4e1e681a46c1a5e3a454c9b1096a9ea525b48184 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Tue, 7 Apr 2026 16:06:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=20debug=20=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 3 +-- src/main.tsx | 8 +------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ce88decec..1ca6dd46e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,9 +6,8 @@ "request": "attach", "name": "Attach to Claude Code", "url": "ws://localhost:8888/2dc3gzl5xot", - "preLaunchTask": "Start Claude Code TUI", "stopOnEntry": false, "internalConsoleOptions": "neverOpen" } ] -} \ No newline at end of file +} diff --git a/src/main.tsx b/src/main.tsx index a86ab89c7..24bead113 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -511,13 +511,7 @@ function isBeingDebugged() { } } -// Exit if we detect node debugging or inspection -if ("external" !== "ant" && isBeingDebugged()) { - // Use process.exit directly here since we're in the top-level code before imports - // and gracefulShutdown is not yet available - // eslint-disable-next-line custom-rules/no-top-level-side-effects - process.exit(1); -} + /** * Per-session skill/plugin telemetry. Called from both the interactive path