( modelSetting: ModelSetting, )
| 165 | } |
| 166 | |
| 167 | export 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 |
no test coverage detected