MCPcopy
hub / github.com/codeaashu/claude-code / isAutoModeGateEnabled

Function isAutoModeGateEnabled

src/utils/permissions/permissionSetup.ts:1283–1288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1281 * have not disabled it. Synchronous.
1282 */
1283export function isAutoModeGateEnabled(): boolean {
1284 if (autoModeStateModule?.isAutoModeCircuitBroken() ?? false) return false
1285 if (isAutoModeDisabledBySettings()) return false
1286 if (!modelSupportsAutoMode(getMainLoopModel())) return false
1287 return true
1288}
1289
1290/**
1291 * Returns the reason auto mode is currently unavailable, or null if available.

Callers 7

handleResponseFunction · 0.85
transitionPermissionModeFunction · 0.85
shouldPlanUseAutoModeFunction · 0.85
canCycleToAutoFunction · 0.85
handleSetPermissionModeFunction · 0.85
onSetPermissionModeFunction · 0.85

Calls 3

modelSupportsAutoModeFunction · 0.85
getMainLoopModelFunction · 0.85

Tested by

no test coverage detected