File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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