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

Function shouldPlanUseAutoMode

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

Source from the content-addressed store, hash-verified

1444 * Evaluated at permission-check time so it's reactive to config changes.
1445 */
1446export function shouldPlanUseAutoMode(): boolean {
1447 if (feature('TRANSCRIPT_CLASSIFIER')) {
1448 return (
1449 hasAutoModeOptIn() &&
1450 isAutoModeGateEnabled() &&
1451 getUseAutoModeDuringPlan()
1452 )
1453 }
1454 return false
1455}
1456
1457/**
1458 * Centralized plan-mode entry. Stashes the current mode as prePlanMode so

Callers 2

transitionPlanAutoModeFunction · 0.85

Calls 4

featureFunction · 0.85
hasAutoModeOptInFunction · 0.85
isAutoModeGateEnabledFunction · 0.85
getUseAutoModeDuringPlanFunction · 0.85

Tested by

no test coverage detected