docs: effort 级别描述去掉模型名限制

This commit is contained in:
claude-code-best
2026-05-22 20:11:12 +08:00
parent 03598d3f84
commit 897c186f28
3 changed files with 19 additions and 3 deletions

View File

@@ -155,7 +155,7 @@ export async function call(onDone: LocalJSXCommandOnDone, _context: unknown, arg
if (COMMON_HELP_ARGS.includes(args)) { if (COMMON_HELP_ARGS.includes(args)) {
onDone( onDone(
'Usage: /effort [low|medium|high|xhigh|max|auto]\n\nEffort levels:\n- low: Quick, straightforward implementation\n- medium: Balanced approach with standard testing\n- high: Comprehensive implementation with extensive testing\n- xhigh: Extra high reasoning for supported models, including ChatGPT Codex models\n- max: Maximum capability with deepest reasoning where supported (Opus 4.6/4.7, DeepSeek V4 Pro); maps to xhigh for ChatGPT Codex models\n- auto: Use the default effort level for your model', 'Usage: /effort [low|medium|high|xhigh|max|auto]\n\nEffort levels:\n- low: Quick, straightforward implementation\n- medium: Balanced approach with standard testing\n- high: Comprehensive implementation with extensive testing\n- xhigh: Extended reasoning beyond high, short of max; including ChatGPT Codex models\n- max: Maximum capability with deepest reasoning; maps to xhigh for ChatGPT Codex models\n- auto: Use the default effort level for your model',
); );
return; return;
} }

View File

@@ -224,6 +224,22 @@ describe('getEffortLevelDescription', () => {
const desc = getEffortLevelDescription('max') const desc = getEffortLevelDescription('max')
expect(desc).toContain('Maximum') expect(desc).toContain('Maximum')
}) })
test('max description does not contain model names', () => {
const desc = getEffortLevelDescription('max')
expect(desc).not.toContain('Opus')
expect(desc).not.toContain('DeepSeek')
})
test("returns description for 'xhigh'", () => {
const desc = getEffortLevelDescription('xhigh')
expect(desc).toContain('Extended reasoning')
})
test('xhigh description does not contain model names', () => {
const desc = getEffortLevelDescription('xhigh')
expect(desc).not.toContain('Opus')
})
}) })
// ─── resolvePickerEffortPersistence ──────────────────────────────────── // ─── resolvePickerEffortPersistence ────────────────────────────────────

View File

@@ -262,9 +262,9 @@ export function getEffortLevelDescription(level: EffortLevel): string {
case 'high': case 'high':
return 'Comprehensive implementation with extensive testing and documentation' return 'Comprehensive implementation with extensive testing and documentation'
case 'xhigh': case 'xhigh':
return 'Extended reasoning beyond high, short of max (Opus 4.7 only)' return 'Extended reasoning beyond high, short of max'
case 'max': case 'max':
return 'Maximum capability with deepest reasoning (Opus 4.6/4.7/DeepSeek V4 Pro)' return 'Maximum capability with deepest reasoning'
} }
} }