mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
fix(settings): Add missing v1 settings to migration map (#7678)
This commit is contained in:
@@ -40,6 +40,8 @@ const MIGRATION_MAP: Record<string, string> = {
|
|||||||
disableAutoUpdate: 'general.disableAutoUpdate',
|
disableAutoUpdate: 'general.disableAutoUpdate',
|
||||||
disableUpdateNag: 'general.disableUpdateNag',
|
disableUpdateNag: 'general.disableUpdateNag',
|
||||||
checkpointing: 'general.checkpointing',
|
checkpointing: 'general.checkpointing',
|
||||||
|
enablePromptCompletion: 'general.enablePromptCompletion',
|
||||||
|
debugKeystrokeLogging: 'general.debugKeystrokeLogging',
|
||||||
theme: 'ui.theme',
|
theme: 'ui.theme',
|
||||||
customThemes: 'ui.customThemes',
|
customThemes: 'ui.customThemes',
|
||||||
hideWindowTitle: 'ui.hideWindowTitle',
|
hideWindowTitle: 'ui.hideWindowTitle',
|
||||||
@@ -69,8 +71,10 @@ const MIGRATION_MAP: Record<string, string> = {
|
|||||||
includeDirectories: 'context.includeDirectories',
|
includeDirectories: 'context.includeDirectories',
|
||||||
loadMemoryFromIncludeDirectories: 'context.loadFromIncludeDirectories',
|
loadMemoryFromIncludeDirectories: 'context.loadFromIncludeDirectories',
|
||||||
fileFiltering: 'context.fileFiltering',
|
fileFiltering: 'context.fileFiltering',
|
||||||
|
useRipgrep: 'tools.useRipgrep',
|
||||||
sandbox: 'tools.sandbox',
|
sandbox: 'tools.sandbox',
|
||||||
shouldUseNodePtyShell: 'tools.usePty',
|
shouldUseNodePtyShell: 'tools.usePty',
|
||||||
|
autoAccept: 'tools.autoAccept',
|
||||||
allowedTools: 'tools.allowed',
|
allowedTools: 'tools.allowed',
|
||||||
coreTools: 'tools.core',
|
coreTools: 'tools.core',
|
||||||
excludeTools: 'tools.exclude',
|
excludeTools: 'tools.exclude',
|
||||||
@@ -86,6 +90,8 @@ const MIGRATION_MAP: Record<string, string> = {
|
|||||||
dnsResolutionOrder: 'advanced.dnsResolutionOrder',
|
dnsResolutionOrder: 'advanced.dnsResolutionOrder',
|
||||||
excludedProjectEnvVars: 'advanced.excludedEnvVars',
|
excludedProjectEnvVars: 'advanced.excludedEnvVars',
|
||||||
bugCommand: 'advanced.bugCommand',
|
bugCommand: 'advanced.bugCommand',
|
||||||
|
extensionManagement: 'experimental.extensionManagement',
|
||||||
|
extensions: 'extensions',
|
||||||
};
|
};
|
||||||
|
|
||||||
export function getSystemSettingsPath(): string {
|
export function getSystemSettingsPath(): string {
|
||||||
|
|||||||
@@ -574,6 +574,16 @@ export const SETTINGS_SCHEMA = {
|
|||||||
'Use node-pty for shell command execution. Fallback to child_process still applies.',
|
'Use node-pty for shell command execution. Fallback to child_process still applies.',
|
||||||
showInDialog: true,
|
showInDialog: true,
|
||||||
},
|
},
|
||||||
|
autoAccept: {
|
||||||
|
type: 'boolean',
|
||||||
|
label: 'Auto Accept',
|
||||||
|
category: 'Tools',
|
||||||
|
requiresRestart: false,
|
||||||
|
default: false,
|
||||||
|
description:
|
||||||
|
'Automatically accept and execute tool calls that are considered safe (e.g., read-only operations).',
|
||||||
|
showInDialog: true,
|
||||||
|
},
|
||||||
core: {
|
core: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
label: 'Core Tools',
|
label: 'Core Tools',
|
||||||
|
|||||||
Reference in New Issue
Block a user