feat(core): Add --skip-next-speaker-check flag (#6589)

This commit is contained in:
Sandy Tao
2025-08-19 16:45:13 -07:00
committed by GitHub
parent faff1c2ec7
commit 389102ec0e
5 changed files with 23 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ export async function parseArguments(): Promise<CliArgs> {
// 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,
});
}

View File

@@ -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<T extends SettingsSchema> = {