Repository navigation
refactor(config): split config I/O responsibilities - #107983
Merged
Merged
Conversation
steipete
force-pushed
the
codex/refactor-config-io
branch
from
July 15, 2026 04:12
0030997 to
97aea70
Compare
steipete
force-pushed
the
codex/refactor-config-io
branch
from
July 15, 2026 05:00
97aea70 to
3731964
Compare
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 15, 2026
* refactor(config): split config I/O * fix(config): align split modules with guardrails * fix(config): remove dead write metadata helper * style(config): format write safety imports * fix(config): preserve comment-loss warning on split writes
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
* refactor(config): split config I/O * fix(config): align split modules with guardrails * fix(config): remove dead write metadata helper * style(config): format write safety imports * fix(config): preserve comment-loss warning on split writes
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The config I/O implementation had grown into one 3,200-line module spanning dependency setup, reads, snapshots, recovery, observation, writes, and runtime activation. That made ownership and invariants difficult to review and required a max-lines suppression.
This is a maintainer-requested refactor.
Why This Change Was Made
Keep
src/config/io.tsas the stable public facade while moving cohesive responsibilities into focused sibling modules. Shared process state remains explicitly owned, and read, recovery, write, and runtime-activation paths retain their existing contracts.The branch also carries forward current main's JSON5 comment-loss warning at the same final pre-rename guard boundary, with receiver-safe logger forwarding.
No config shape, runtime behavior, or compatibility policy changes.
User Impact
No user-visible behavior change. Maintainers get smaller review surfaces, clearer ownership boundaries, and removal of the oversized-file suppression.
Evidence
AI-assisted: yes. Implementation reviewed and validated by the maintainer workflow above.