Group of 2 Under the hood
The check for whether Auto mode has a configured environment is now a shared helper validated against a schema
What
The logic that decides whether an environment is configured for Auto mode has been pulled out of inline code that previously ran only at spawn time, and turned into reusable helper functions (je() and de()). The new helpers:
- Read the user settings file, falling back to policy settings if needed.
- Validate the result against a new
autoModeConfigSchema. - Are used to populate the
userAutoModeEnvironmentConfiguredvalue only when the auto-mode environment array is non-empty and that value hasn't already been supplied.
Why
Making this a reusable, schema-validated helper means the auto-mode-environment check can be reused wherever it's needed, not just at spawn time, and is validated consistently.