Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/cli/tui/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ export async function renderTUI(options: RenderTUIOptions = {}) {
}

await printPostCommandNotices(isFirstRun, updateCheck);

// Force a clean exit for terminal TUI flows. Ink's synchronous raw-mode teardown does not
// cancel the pending libuv stdin read on Windows, so the event loop stays alive until a
// keypress flushes it (the process hangs until the user presses Enter). The dev/exec/exec-shell
// re-entry branches above return before reaching here, so they are intentionally not exited.
process.exit(0);
}

/**
Expand Down
Loading