MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getInitialFastModeSetting

Function getInitialFastModeSetting

source code/utils/fastMode.ts:151–167  ·  view source on GitHub ↗
(model: ModelSetting)

Source from the content-addressed store, hash-verified

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

Callers 1

runFunction · 0.85

Calls 4

isFastModeEnabledFunction · 0.85
isFastModeAvailableFunction · 0.85
getInitialSettingsFunction · 0.85

Tested by

no test coverage detected