Repository navigation
refactor: align live configuration writes with upstream key-field projections - #506
Merged
Merged
Conversation
SaladDay
marked this pull request as ready for review
October 11, 2026 09:01
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.
Provider changes can overwrite live user settings or replay stale values from saved provider snapshots. This ports the Claude and Gemini key-field projections from cc-switch
df40d53c36b604e044b4d5b9091aeb961aa56990, connects them to the shared durable write engine, and includes Codex's top-levelbase_urlcompatibility fix.Switching preserves user-owned settings and Gemini dotenv comments and replaces provider-owned fields. Direct switches commit current-provider pointers after publication. Proxy switching, active-provider edits, and restoration use the same projections; interrupted writes recover through the engine without restoring old file snapshots. CLI/TUI temporary Claude launches project onto current live settings. Explicit CLI common-config edits remain available without replacing an active proxy route. Source provenance and retained upstream behavior are documented in
docs/maintenance/key-field-upstream-alignment.md.Validation: 396 targeted library tests passed, including concurrent-edit and interrupted-proxy-write recovery tests; 81 provider/proxy integration tests passed. Formatting passed. Three unrelated Usage Query integration failures were reproduced unchanged on the base commit. The full CI suite covers unit tests, integration tests, and Linux/Windows library builds.