Files
openclaw/src/config
Peter Steinberger bc1f9609a3 fix(status): surface an invalid config instead of reporting a healthy system (#127402)
openclaw status exited 0 with a complete, healthy-looking report when the
config file failed validation, silently substituting defaults for the
operator's authored values. Every sibling command — config validate,
agents list, models list, doctor — reported the failure.

readBestEffortConfigSnapshotFromContext already read snapshot.valid and
dropped it, and BestEffortConfigSnapshot had nowhere to carry it, so no
consumer of the best-effort path could report it. Carry the fact from its
producer as configDiagnostics and render it in text, --json, and --all.

The sibling readSourceConfigBestEffortFromContext already states the rule
seventeen lines below: best-effort legitimizes the fallback value, not the
silence.
2026-08-21 12:48:24 -07:00
..