core: make installdeps non blocking

This commit is contained in:
Aiden Cline
2026-01-01 13:00:39 -06:00
parent 8ebc601ea2
commit e503654252
3 changed files with 5 additions and 16 deletions

View File

@@ -28,6 +28,8 @@ import { WebCommand } from "./cli/cmd/web"
import { PrCommand } from "./cli/cmd/pr"
import { SessionCommand } from "./cli/cmd/session"
const cancel = new AbortController()
process.on("unhandledRejection", (e) => {
Log.Default.error("rejection", {
e: e instanceof Error ? e.message : e,
@@ -150,10 +152,6 @@ try {
console.error(e)
}
process.exitCode = 1
} finally {
// Some subprocesses don't react properly to SIGTERM and similar signals.
// Most notably, some docker-container-based MCP servers don't handle such signals unless
// run using `docker run --init`.
// Explicitly exit to avoid any hanging subprocesses.
process.exit()
}
cancel.abort()