File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -456,6 +456,40 @@ their corresponding top-level category object in your `settings.json` file.
456456 - ** Description:** Enable model routing to route requests to the best model
457457 based on complexity.
458458 - ** Default:** ` false `
459+ <<<<<<< HEAD
460+ =======
461+ - ** Requires restart:** Yes
462+
463+ - ** ` experimental.codebaseInvestigatorSettings.maxNumTurns ` ** (number):
464+ - ** Description:** Maximum number of turns for the Codebase Investigator
465+ agent.
466+ - ** Default:** ` 15 `
467+ - ** Requires restart:** Yes
468+
469+ - ** ` experimental.codebaseInvestigatorSettings.maxTimeMinutes ` ** (number):
470+ - ** Description:** Maximum time for the Codebase Investigator agent (in
471+ minutes).
472+ - ** Default:** ` 5 `
473+ - ** Requires restart:** Yes
474+
475+ - ** ` experimental.codebaseInvestigatorSettings.thinkingBudget ` ** (number):
476+ - ** Description:** The thinking budget for the Codebase Investigator agent.
477+ - ** Default:** ` 8192 `
478+ - ** Requires restart:** Yes
479+
480+ - ** ` experimental.codebaseInvestigatorSettings.model ` ** (string):
481+ - ** Description:** The model to use for the Codebase Investigator agent.
482+ - ** Default:** ` "gemini-2.5-pro" `
483+ - ** Requires restart:** Yes
484+
485+ #### ` hooks `
486+
487+ - ** ` hooks ` ** (object):
488+ - ** Description:** Hook configurations for intercepting and customizing agent
489+ behavior.
490+ - ** Default:** ` {} `
491+ <!-- SETTINGS-AUTOGEN:END -->
492+ >>>>>>> 59e0b10e (Cap Thinking Budget to prevent runaway thought loops (#12416 ))
459493
460494#### ` mcpServers `
461495
Original file line number Diff line number Diff line change @@ -1137,7 +1137,7 @@ const SETTINGS_SCHEMA = {
11371137 label : 'Thinking Budget' ,
11381138 category : 'Experimental' ,
11391139 requiresRestart : true ,
1140- default : - 1 ,
1140+ default : 8192 ,
11411141 description :
11421142 'The thinking budget for the Codebase Investigator agent.' ,
11431143 showInDialog : false ,
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ export const DEFAULT_GEMINI_MODEL_AUTO = 'auto';
1212
1313export const DEFAULT_GEMINI_EMBEDDING_MODEL = 'gemini-embedding-001' ;
1414
15- // Some thinking models do not default to dynamic thinking which is done by a value of -1
16- export const DEFAULT_THINKING_MODE = - 1 ;
15+ // Cap the thinking at 8192 to prevent run-away thinking loops.
16+ export const DEFAULT_THINKING_MODE = 8192 ;
1717
1818/**
1919 * Determines the effective model to use, applying fallback logic if necessary.
You can’t perform that action at this time.
0 commit comments