Repository navigation
fix(claude): align configuration editing with upstream - #536
Merged
Merged
Conversation
Closed
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.
Claude 配置预览中的全局设置此前可能不会写入
settings.json。本次按 cc-switch 的配置编辑逻辑 迁移:编辑器显示完整配置,保存时将供应商字段写回记录、全局改动写入实际配置;外部修改发生冲突时由用户选择保留哪一边。涵盖新增、编辑、交互复制、供应商切换和代理接管。Claude 旧通用片段保留供读取,停止运行时合并和新写入;旧供应商记录中未生效的字段可在编辑器中明确选择复制。TUI 复用现有表单、JSON 编辑器和确认框,文档同步指向可编辑完整配置的入口。Codex、Gemini 通用片段保持原有行为。
验证:
cargo fmt --check、git diff --check通过。单元测试:4548 通过,2 忽略。
相关集成测试:132 通过;
provider_commands的 3 个 Usage Query 测试失败已在干净基线6c2f7f0复现,与本次修改无关。cargo clippy --locked --lib --tests被未修改的src/cli/tui/ui/home_chart.rs:806空范围错误阻断。全新独立上下文盲审通过。
Related #530