Skip to content

Commit 73df4d1

Browse files
committed
Print explicit exit marker on Ctrl+C
1 parent 69ff8fa commit 73df4d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/src/hooks/use-exit-handler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export const useExitHandler = ({
5959

6060
try {
6161
process.stdout.write('\nGoodbye! Exiting...\n')
62+
// Ensure a clear exit marker is rendered for terminal snapshots
63+
process.stdout.write('exit\n')
6264
} catch {
6365
// Ignore stdout write errors during shutdown
6466
}

0 commit comments

Comments
 (0)