Merge pull request #8271 from uinstinct/cli-print-mode

fix(cli): exit after printing response when using -p
This commit is contained in:
Dallin Romney 2025-10-16 19:57:59 -07:00 • committed by GitHub
commit 7cadef6265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -521,6 +521,9 @@ async function runHeadlessMode(
compactionIndex = result.compactionIndex;
}
}
// exit after headless mode completes
await gracefulExit(0);
}
export async function chat(prompt?: string, options: ChatOptions = {}) {