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
3 changes: 3 additions & 0 deletions src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ function renderTUI(updateCheck: Promise<UpdateCheckResult | null>, isFirstRun: b
process.stdout.write(EXIT_ALT_SCREEN);
process.stdout.write(SHOW_CURSOR);

await TelemetryClientAccessor.shutdown();

// Check if the TUI requested a post-exit action (e.g., launch browser dev mode)
const action = getExitAction();
clearExitAction();
Expand Down Expand Up @@ -230,6 +232,7 @@ export const main = async (argv: string[]) => {
// Show TUI for no arguments, commander handles --help via configureHelp()
if (args.length === 0) {
requireTTY();
TelemetryClientAccessor.init('tui', 'tui');
renderTUI(updateCheck, isFirstRun);
return;
}
Expand Down
Loading