MCPcopy
hub / github.com/codeaashu/claude-code / getInitialFastModeSetting

Function getInitialFastModeSetting

src/utils/fastMode.ts:149–165  ·  view source on GitHub ↗
(model: ModelSetting)

Source from the content-addressed store, hash-verified

147}
148
149export function getInitialFastModeSetting(model: ModelSetting): boolean {
150 if (!isFastModeEnabled()) {
151 return false
152 }
153 if (!isFastModeAvailable()) {
154 return false
155 }
156 if (!isFastModeSupportedByModel(model)) {
157 return false
158 }
159 const settings = getInitialSettings()
160 // If per-session opt-in is required, fast mode starts off each session
161 if (settings.fastModePerSessionOptIn) {
162 return false
163 }
164 return settings.fastMode === true
165}
166
167export function isFastModeSupportedByModel(
168 modelSetting: ModelSetting,

Callers 1

runFunction · 0.85

Calls 4

isFastModeEnabledFunction · 0.85
isFastModeAvailableFunction · 0.85
getInitialSettingsFunction · 0.85

Tested by

no test coverage detected