fix(agy): remove max_thinking_tokens when switching to non-claude model

Cleans up the thinking token limit setting when user switches from
a Claude model to a Gemini model via ccs agy --config.
This commit is contained in:
kaitranntt
2025-12-05 17:41:41 -05:00
parent b2941abdb3
commit 6decd157e5
+5
View File
@@ -172,6 +172,11 @@ export async function configureProviderModel(
...ccsControlledEnv,
};
// Remove MAX_THINKING_TOKENS when switching away from Claude model
if (!isClaude && mergedEnv.MAX_THINKING_TOKENS) {
delete mergedEnv.MAX_THINKING_TOKENS;
}
// Build final settings: preserve user top-level settings + update env
const settings: Record<string, unknown> = {
...existingSettings,