fix: 删除 debug 限制

This commit is contained in:
claude-code-best
2026-04-07 16:06:23 +08:00
parent a7d9a220bf
commit 4e1e681a46
2 changed files with 2 additions and 9 deletions

3
.vscode/launch.json vendored
View File

@@ -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"
}
]
}
}

View File

@@ -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