feat(config): add setting to make directory tree context configurable (#19053)

This commit is contained in:
Kevin Ramdass
2026-02-17 11:19:26 -08:00
committed by GitHub
parent c62601e90c
commit b56361559d
8 changed files with 54 additions and 1 deletions
+2
View File
@@ -454,6 +454,7 @@ export async function loadCliConfig(
}
const memoryImportFormat = settings.context?.importFormat || 'tree';
const includeDirectoryTree = settings.context?.includeDirectoryTree ?? true;
const ideMode = settings.ide?.enabled ?? false;
@@ -745,6 +746,7 @@ export async function loadCliConfig(
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
sandbox: sandboxConfig,
targetDir: cwd,
includeDirectoryTree,
includeDirectories,
loadMemoryFromIncludeDirectories:
settings.context?.loadMemoryFromIncludeDirectories || false,
+10
View File
@@ -949,6 +949,16 @@ const SETTINGS_SCHEMA = {
description: 'The format to use when importing memory.',
showInDialog: false,
},
includeDirectoryTree: {
type: 'boolean',
label: 'Include Directory Tree',
category: 'Context',
requiresRestart: false,
default: true,
description:
'Whether to include the directory tree of the current working directory in the initial request to the model.',
showInDialog: false,
},
discoveryMaxDirs: {
type: 'number',
label: 'Memory Discovery Max Dirs',