You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: harden config loader against partial config reads
A concurrent rewrite of the unified config file (e.g. a config-mutating
test clearing the memoized cache while a background task re-reads) could
make yaml.load return null/partial. loadConfigForVersion then dereferenced
unifiedConfig.V1/V2 directly and threw "Cannot read properties of undefined
(reading 'MIRROR_DB')", which propagated through getConfigV2 -> getHomeOrg
into unrelated API handlers and surfaced as intermittent 400s.
Fall back to defaults when the parse is null/non-object and optional-chain
the version sections so a transient bad read degrades gracefully instead
of crashing callers.
0 commit comments