MCPcopy
hub / github.com/claude-code-best/claude-code / isFastModeSupportedByModel

Function isFastModeSupportedByModel

src/utils/fastMode.ts:167–179  ·  view source on GitHub ↗
(
  modelSetting: ModelSetting,
)

Source from the content-addressed store, hash-verified

165}
166
167export function isFastModeSupportedByModel(
168 modelSetting: ModelSetting,
169): boolean {
170 if (!isFastModeEnabled()) {
171 return false
172 }
173 const model = modelSetting ?? getDefaultMainLoopModelSetting()
174 const parsedModel = parseUserSpecifiedModel(model)
175 return (
176 parsedModel.toLowerCase().includes('opus-4-7') ||
177 parsedModel.toLowerCase().includes('opus-4-6')
178 )
179}
180
181// --- Fast mode runtime state ---
182// Separate from user preference (settings.fastMode). This tracks the actual

Callers 13

ConfigFunction · 0.85
PromptInputFunction · 0.85
getFastModeStateFunction · 0.85
handleSelectFunction · 0.85
ModelPickerWrapperFunction · 0.85
setModelFunction · 0.85
applyFastModeFunction · 0.85
handleConfirmFunction · 0.85
handleFastModeShortcutFunction · 0.85
runHeadlessStreamingFunction · 0.85
queryModelFunction · 0.85

Calls 3

isFastModeEnabledFunction · 0.85
parseUserSpecifiedModelFunction · 0.85

Tested by

no test coverage detected