Revert "feat: compact 模型降级为 -1 模式(Opus→Sonnet, Sonnet→Haiku)"

This reverts commit e458d6391d.
This commit is contained in:
claude-code-best
2026-04-14 14:32:34 +08:00
parent befcd2bafa
commit 67a77ba327
2 changed files with 2 additions and 25 deletions

View File

@@ -103,7 +103,6 @@ import {
getMaxOutputTokensForModel,
queryModelWithStreaming,
} from '../api/claude.js'
import { getCompactModel } from '../../utils/model/model.js'
import {
getPromptTooLongTokenGap,
PROMPT_TOO_LONG_ERROR_MESSAGE,
@@ -1315,13 +1314,13 @@ async function streamCompactSummary({
const appState = context.getAppState()
return appState.toolPermissionContext
},
model: getCompactModel(context.options.mainLoopModel),
model: context.options.mainLoopModel,
toolChoice: undefined,
isNonInteractiveSession: context.options.isNonInteractiveSession,
hasAppendSystemPrompt: !!context.options.appendSystemPrompt,
maxOutputTokensOverride: Math.min(
COMPACT_MAX_OUTPUT_TOKENS,
getMaxOutputTokensForModel(getCompactModel(context.options.mainLoopModel)),
getMaxOutputTokensForModel(context.options.mainLoopModel),
),
querySource: 'compact',
agents: context.options.agentDefinitions.activeAgents,