MCPcopy Create free account
hub / github.com/codeaashu/claude-code / resolveFastModeStatusFromCache

Function resolveFastModeStatusFromCache

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

Source from the content-addressed store, hash-verified

390 * while still making fast mode availability checks work.
391 */
392export function resolveFastModeStatusFromCache(): void {
393 if (!isFastModeEnabled()) {
394 return
395 }
396 if (orgStatus.status !== 'pending') {
397 return
398 }
399 const isAnt = process.env.USER_TYPE === 'ant'
400 const cachedEnabled = getGlobalConfig().penguinModeOrgEnabled === true
401 orgStatus =
402 isAnt || cachedEnabled
403 ? { status: 'enabled' }
404 : { status: 'disabled', reason: 'unknown' }
405}
406
407export async function prefetchFastModeStatus(): Promise<void> {
408 // Skip network requests if nonessential traffic is disabled

Callers 1

runFunction · 0.85

Calls 2

isFastModeEnabledFunction · 0.85
getGlobalConfigFunction · 0.85

Tested by

no test coverage detected