feat: add option to disable streaming in CLI

This commit is contained in:
Hadi Minooei
2026-04-20 12:24:04 -07:00
parent 1c963345a4
commit d6a1864961
4 changed files with 31 additions and 1 deletions
+6
View File
@@ -80,6 +80,7 @@ export interface CliArgs {
model: string | undefined;
sandbox: boolean | string | undefined;
debug: boolean | undefined;
disableStreaming?: boolean;
prompt: string | undefined;
promptInteractive: string | undefined;
worktree?: string;
@@ -421,6 +422,10 @@ export async function parseArguments(
type: 'boolean',
description: 'Enable screen reader mode for accessibility.',
})
.option('disable-streaming', {
type: 'boolean',
description: 'Disable streaming responses from the model',
})
.option('output-format', {
alias: 'o',
type: 'string',
@@ -918,6 +923,7 @@ export async function loadCliConfig(
return new Config({
acpMode: isAcpMode,
clientName,
disableStreaming: argv.disableStreaming,
sessionId,
clientVersion: await getVersion(),
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
+1 -1
View File
@@ -57,7 +57,7 @@ export class UserSimulator {
}
this.interactionsFile = `interactions_${Date.now()}.txt`;
this.isRunning = true;
this.timer = setInterval(() => this.tick(), 3000);
this.timer = setInterval(() => this.tick(), 1000);
}
stop() {