MCPcopy Create free account
hub / github.com/freecodexyz/free-code / handleFastModeRejectedByAPI

Function handleFastModeRejectedByAPI

src/utils/fastMode.ts:244–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 * the same flow as when the prefetch discovers the org has it disabled.
243 */
244export function handleFastModeRejectedByAPI(): void {
245 if (orgStatus.status === 'disabled') {
246 return
247 }
248 orgStatus = { status: 'disabled', reason: 'preference' }
249 updateSettingsForSource('userSettings', { fastMode: undefined })
250 saveGlobalConfig(current => ({
251 ...current,
252 penguinModeOrgEnabled: false,
253 }))
254 orgFastModeChange.emit(false)
255}
256
257// --- Overage rejection listeners ---
258// 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