Skip to content

Commit 5aa4537

Browse files
committed
fix(cli): exit after printing response when using -p
1 parent 2041336 commit 5aa4537

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/cli/src/commands/chat.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,9 @@ async function runHeadlessMode(
521521
compactionIndex = result.compactionIndex;
522522
}
523523
}
524+
525+
// exit after headless mode completes
526+
await gracefulExit(0);
524527
}
525528

526529
export async function chat(prompt?: string, options: ChatOptions = {}) {

0 commit comments

Comments
 (0)