Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

chore(recovery): restore the exit hook that only the recovery pane changed

Jack Rudenko2a7da9a4fa6b
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts
index 603a588e..37c6317f 100644
--- a/packages/cli/src/index.ts
+++ b/packages/cli/src/index.ts
@@ -59,8 +59,8 @@ function classifyStartupKind(): string {
}
process.on("exit", () => {
const argv = process.argv.slice(2);
- const first = argv.find((a) => !a.startsWith("-"));
- const longRunningServer = argv.includes("--mcp") || first === "serve";
+ const longRunningServer =
+ argv.includes("--mcp") || argv.find((a) => !a.startsWith("-")) === "serve";
if (longRunningServer) return;
finalizeStartupTrace(classifyStartupKind(), { quiet: true });
});