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