Severity: HIGH
Location
src/run/run-dashboard.ts:107-115
Description
When stdin is a TTY, setRawMode(true) is called. If the process receives an unhandled signal or errors before the key handler is set up, stdin remains in raw mode after exit, breaking the user's terminal on Unix/macOS.
Suggested fix
Add process.on('exit', cleanup) as a last-resort safety net.
Severity: HIGH
Location
src/run/run-dashboard.ts:107-115Description
When stdin is a TTY,
setRawMode(true)is called. If the process receives an unhandled signal or errors before the key handler is set up, stdin remains in raw mode after exit, breaking the user's terminal on Unix/macOS.Suggested fix
Add
process.on('exit', cleanup)as a last-resort safety net.