Compare commits

...
Author SHA1 Message Date
abhigyantrumioandClaude Opus 4.6 707b7d2ac5 fix(cli): force-exit after analyze to prevent KuzuDB hang
KuzuDB's native module holds open handles that prevent Node.js from
exiting cleanly. Previously only force-exited when embeddings were used
(for ONNX Runtime segfault workaround), but the same issue affects all
analyze runs. Now always calls process.exit(0) after completion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 13:17:23 +05:30
+4 -6
View File
@@ -357,10 +357,8 @@ export const analyzeCommand = async (
console.log('');
// ONNX Runtime registers native atexit hooks that segfault during process
// shutdown on macOS (#38) and some Linux configs (#40). Force-exit to
// bypass them when embeddings were loaded.
if (!embeddingSkipped) {
process.exit(0);
}
// KuzuDB's native module holds open handles that prevent Node from exiting.
// ONNX Runtime also registers native atexit hooks that segfault on some
// platforms (#38, #40). Force-exit to ensure clean termination.
process.exit(0);
};