mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-23 23:11:18 +00:00
* fix(config): warn before stripping JSON5 comments on config write Add checkCommentLossWarning in json5-comments.ts to detect JSON5 comments before config writes. Warn via deps.logger.warn for main config writes and via options.warn for $include file writes. Both paths support skipOutputLogs to suppress warnings during automated operations. Fixes #105683 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(config): remove public warn callback, route through internal sink Fixes #105683 - Remove warn field from exported ConfigWriteOptions (P1 merge-risk) - Default checkCommentLossWarning to console.warn when no callback - Move include warning after hash-conflict/rejection checks - Update tests to spy on console.warn instead of custom callback * fix(config): warn before stripping JSON5 comments --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Peter Steinberger <peter@steipete.me>