From 389102ec0e6370c29df6499157417861f8c1c253 Mon Sep 17 00:00:00 2001 From: Sandy Tao Date: Tue, 19 Aug 2025 16:45:13 -0700 Subject: feat(core): Add --skip-next-speaker-check flag (#6589) --- packages/cli/src/config/config.ts | 2 ++ packages/cli/src/config/settingsSchema.ts | 9 +++++++++ 2 files changed, 11 insertions(+) (limited to 'packages/cli') diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index d3b73e06..9731b503 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -229,6 +229,7 @@ export async function parseArguments(): Promise { // Handle comma-separated values dirs.flatMap((dir) => dir.split(',').map((d) => d.trim())), }) + .check((argv) => { if (argv.prompt && argv['promptInteractive']) { throw new Error( @@ -540,6 +541,7 @@ export async function loadCliConfig( interactive, trustedFolder, shouldUseNodePtyShell: settings.shouldUseNodePtyShell, + skipNextSpeakerCheck: settings.skipNextSpeakerCheck, }); } diff --git a/packages/cli/src/config/settingsSchema.ts b/packages/cli/src/config/settingsSchema.ts index 8c1b5191..6d9e1f1e 100644 --- a/packages/cli/src/config/settingsSchema.ts +++ b/packages/cli/src/config/settingsSchema.ts @@ -515,6 +515,15 @@ export const SETTINGS_SCHEMA = { description: 'Show line numbers in the chat.', showInDialog: true, }, + skipNextSpeakerCheck: { + type: 'boolean', + label: 'Skip Next Speaker Check', + category: 'General', + requiresRestart: false, + default: false, + description: 'Skip the next speaker check.', + showInDialog: true, + }, } as const; type InferSettings = { -- cgit v1.2.3