claude-code-best/src/migrations/migrateOpusToOpus1m.ts
claude-code-best 1cfcfcb62e fix: 禁用 opus[1m] 自动迁移,尊重用户手动删除 [1m] 后缀的选择
迁移逻辑过于激进,用户手动删除 [1m]] 后会被自动加回。
现在将 migrateOpusToOpus1m 改为 no-op,保留用户的手动模型选择。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-07 09:33:56 +08:00

16 lines
513 B
TypeScript

import { logEvent } from '../services/analytics/index.js'
import { isOpus1mMergeEnabled } from '../utils/model/model.js'
/**
* Migration disabled: users who manually remove [1m] suffix should not
* have it automatically re-added. The migration was too aggressive and
* didn't respect user choice.
*/
export function migrateOpusToOpus1m(): void {
// No-op - respect user's manual model choice
if (!isOpus1mMergeEnabled()) {
return
}
logEvent('tengu_opus_to_opus1m_migration', { skipped: true })
}