Smart Edit Tool (#6823)

This commit is contained in:
Silvio Junior
2025-08-29 15:45:39 -04:00
committed by GitHub
parent da22deac17
commit d0c781a549
6 changed files with 1503 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ export interface CliArgs {
proxy: string | undefined;
includeDirectories: string[] | undefined;
screenReader: boolean | undefined;
useSmartEdit: boolean | undefined;
sessionSummary: string | undefined;
}
@@ -621,6 +622,7 @@ export async function loadCliConfig(
skipNextSpeakerCheck: settings.model?.skipNextSpeakerCheck,
enablePromptCompletion: settings.general?.enablePromptCompletion ?? false,
eventEmitter: appEvents,
useSmartEdit: argv.useSmartEdit ?? settings.useSmartEdit,
});
}

View File

@@ -613,7 +613,15 @@ export const SETTINGS_SCHEMA = {
},
},
},
useSmartEdit: {
type: 'boolean',
label: 'Use Smart Edit',
category: 'Advanced',
requiresRestart: false,
default: false,
description: 'Enable the smart-edit tool instead of the replace tool.',
showInDialog: false,
},
security: {
type: 'object',
label: 'Security',