MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getUseAutoModeDuringPlan

Function getUseAutoModeDuringPlan

src/utils/settings/settings.ts:918–928  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

916 * projectSettings is excluded so a malicious project can't control this.
917 */
918export function getUseAutoModeDuringPlan(): boolean {
919 if (feature('TRANSCRIPT_CLASSIFIER')) {
920 return (
921 getSettingsForSource('policySettings')?.useAutoModeDuringPlan !== false &&
922 getSettingsForSource('flagSettings')?.useAutoModeDuringPlan !== false &&
923 getSettingsForSource('userSettings')?.useAutoModeDuringPlan !== false &&
924 getSettingsForSource('localSettings')?.useAutoModeDuringPlan !== false
925 )
926 }
927 return true
928}
929
930/**
931 * Returns the merged autoMode config from trusted settings sources.

Callers 1

shouldPlanUseAutoModeFunction · 0.85

Calls 2

featureFunction · 0.85
getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected