Repository navigation
Conversation
官方 Provider 编辑表单保存标准化模型目录,避免切换认证被目录必填校验拒绝;仍仅在需要本地配置投影时补齐默认模型,不改写官方原生 TOML。 验证:目录丢失回归先复现失败后通过;相关前端测试、类型检查与生产前端构建通过。该保存修复已单独部署并核对认证采用 OAuth。
MattLYT
force-pushed
the
codex/fix-official-auth-catalog-save
branch
from
October 8, 2026 15:04
7602e43 to
d3751f4
Compare
MattLYT
marked this pull request as ready for review
October 9, 2026 03:38
This branch has not been deployed
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.
概述
修复编辑 OpenAI Official 认证方式时,已有模型目录被表单丢弃、保存被后端目录必填校验拒绝的问题。
原因
表单此前将
modelCatalog的保存条件绑定到shouldPersistCodexLocalConfig。官方供应商未启用本地路由时不需要改写原生配置,但仍需要保存数据库中的模型目录。旧逻辑会从提交数据中删除目录,触发codex_provider_set_model_catalog_required,使认证切换无法保存。此路径不依赖本机路径、真实账号或网络状态。变更
行为验证
关联 Issue
无,来自实际使用反馈。
截图
不适用。变更为表单提交数据修复,没有新增用户可见文本;不上传包含认证账号信息的现场截图。
检查清单
pnpm typecheck)src格式检查及修改的测试文件格式检查