fix(ui): surface the max thinking level in settings and help

This commit is contained in:
Tam Nhu Tran
2026-04-22 21:43:32 -04:00
parent 71deda553a
commit b3bc17639c
5 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -572,7 +572,7 @@ export async function execClaudeWithCLIProxy(
console.error(' Alias: --thinking xhigh (same behavior)');
} else {
console.error(' Examples: --thinking low, --thinking 8192, --thinking off');
console.error(' Levels: minimal, low, medium, high, xhigh, auto');
console.error(' Levels: minimal, low, medium, high, xhigh, max, auto');
}
process.exit(1);
+1 -1
View File
@@ -60,7 +60,7 @@ function showHelp(): void {
console.log(subheader('Levels:'));
console.log(
` ${dim('minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), auto, off')}`
` ${dim('minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), max (adaptive ceiling), auto, off')}`
);
console.log('');
+3 -1
View File
@@ -904,7 +904,9 @@ function generateYamlWithComments(config: UnifiedConfig): string {
lines.push(
'# Modes: auto (use tier_defaults), off (disable), manual (--thinking/--effort flags)'
);
lines.push('# Levels: minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), auto');
lines.push(
'# Levels: minimal (512), low (1K), medium (8K), high (24K), xhigh (32K), max (adaptive ceiling), auto'
);
lines.push('# Override: Set global override value (number or level name)');
lines.push('# Provider overrides: Per-provider tier defaults');
lines.push('# ----------------------------------------------------------------------------');
@@ -35,6 +35,7 @@ describe('config thinking override normalization', () => {
it('accepts valid levels', () => {
expect(parseThinkingOverrideInput('High')).toEqual({ value: 'high' });
expect(parseThinkingOverrideInput('Max')).toEqual({ value: 'max' });
});
it('validates numeric bounds', () => {
@@ -32,6 +32,7 @@ const THINKING_LEVELS = [
{ value: 'medium', label: 'Medium (8K tokens)' },
{ value: 'high', label: 'High (24K tokens)' },
{ value: 'xhigh', label: 'Extra High (32K tokens)' },
{ value: 'max', label: 'Max (adaptive ceiling)' },
{ value: 'auto', label: 'Auto (dynamic)' },
];