Skip to content

stdin raw mode not restored on abnormal exit #82

@LarsCowe

Description

@LarsCowe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: highHigh priority issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions