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

Function handleFastModeRejectedByAPI

source code/utils/fastMode.ts:246–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 * the same flow as when the prefetch discovers the org has it disabled.
245 */
246export function handleFastModeRejectedByAPI(): void {
247 if (orgStatus.status === 'disabled') {
248 return
249 }
250 orgStatus = { status: 'disabled', reason: 'preference' }
251 updateSettingsForSource('userSettings', { fastMode: undefined })
252 saveGlobalConfig(current => ({
253 ...current,
254 penguinModeOrgEnabled: false,
255 }))
256 orgFastModeChange.emit(false)
257}
258
259// --- Overage rejection listeners ---
260// Fired when a 429 indicates fast mode was rejected because extra usage

Callers 1

withRetryFunction · 0.85

Calls 3

updateSettingsForSourceFunction · 0.85
saveGlobalConfigFunction · 0.85
emitMethod · 0.80

Tested by

no test coverage detected