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

Function handleFastModeRejectedByAPI

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

Source from the content-addressed store, hash-verified

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

Callers 1

withRetryFunction · 0.85

Calls 3

emitMethod · 0.80
saveGlobalConfigFunction · 0.70
updateSettingsForSourceFunction · 0.50

Tested by

no test coverage detected