feat(codex): 支持 agent model_catalog_json 并让 model 覆盖全局配置 - #322
Open
TachiKuma wants to merge 1 commit into
Open
Conversation
- 解析层允许 agents.<name>.model_catalog_json,并入 provider_profile.env,渲染层同步序列化 - managed codex config.toml 写入 model_catalog_json 并把 models.json 侧车文件复制进 managed home - agent.model 显式写回 managed config.toml,覆盖从全局 ~/.codex/config.toml 继承的 model,修复 /model 显示被全局模型覆盖的问题 - prepare_codex_home_overrides / provider_hooks 从实时 spec 透传 model 与 model_catalog_json,避免 relaunch/respawn 使用过期缓存 profile 导致不生效 - 补充 provider_profiles / config_loader / runtime_launch 单元测试
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.
目标
支持
agents.<name>.model_catalog_json,把 codex 模型目录写入 managed 配置,并让agent.model覆盖全局继承的模型。改动
agents.<name>.model_catalog_json,并入provider_profile.env;渲染层同步序列化config.toml写入model_catalog_json并把models.json侧车文件复制进 managed homeagent.model显式写回 managedconfig.toml,覆盖从全局~/.codex/config.toml继承的 model(修复/model显示被全局模型覆盖的问题)prepare_codex_home_overrides/provider_hooks从实时 spec 透传model与model_catalog_json,避免 relaunch/respawn 使用过期缓存 profileprovider_profiles/config_loader/runtime_launch单元测试测试
新增/更新
test_provider_profiles.py、test_v2_config_loader.py、test_v2_runtime_launch.py。