chore(shutdown): log CLI kill timeout

Log when Electron/Tauri force-kill the CLI during shutdown so orphaned instance reports are easier to diagnose.
This commit is contained in:
Shantur Rathore
2026-01-25 11:03:16 +00:00
parent c74e0b89f7
commit b83c69f002
2 changed files with 9 additions and 0 deletions

View File

@@ -177,6 +177,9 @@ export class CliProcessManager extends EventEmitter {
return new Promise((resolve) => {
const killTimeout = setTimeout(() => {
console.warn(
`[cli] stop timed out after 30000ms; sending SIGKILL (pid=${child.pid ?? "unknown"})`,
)
child.kill("SIGKILL")
}, 30000)