Conversation
…ed-provider-models
MattLYT
marked this pull request as ready for review
September 18, 2026 08:50
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.
概述
新版 Codex 已不再支持
model_providers.<provider>.models。旧版 CCSwitchMulti 在活动 provider 下继续写入该字段时,会触发未知配置告警,且该字段不再是受支持的模型目录入口。本次修改:
models,继续通过顶层model_catalog_json与models_cache.json提供模型目录;models;main,修复前后端格式门禁、稳定版 Clippy 阻塞及新增协议证据调用的单测 mock。验证
pnpm typecheck:通过;pnpm format:check:通过;tests/components/AddProviderDialog.test.tsx:8 项通过;tests/components/PiProviderForm.test.tsx:46 项通过;cargo fmt --check --manifest-path src-tauri/Cargo.toml:通过;cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings:通过;git diff --check:通过。验证边界:完整
cargo test在本机因 Windows 页面文件不足(OS error 1455)中断,并非断言失败;GitHub Actions 将在三平台继续执行完整后端测试。本 PR 不涉及安装包构建或本机安装。关联 Issue
无。
截图
不适用:本次为配置同步、兼容迁移与 CI 门禁修复,无 UI 变化。
检查清单