Skip to content

feat(codex): 支持 agent model_catalog_json 并让 model 覆盖全局配置 - #322

Open
TachiKuma wants to merge 1 commit into
SeemSeam:mainfrom
TachiKuma:feat/codex-model-catalog-json
Open

feat(codex): 支持 agent model_catalog_json 并让 model 覆盖全局配置#322
TachiKuma wants to merge 1 commit into
SeemSeam:mainfrom
TachiKuma:feat/codex-model-catalog-json

Conversation

@TachiKuma

Copy link
Copy Markdown
Contributor

目标

支持 agents.<name>.model_catalog_json,把 codex 模型目录写入 managed 配置,并让 agent.model 覆盖全局继承的模型。

改动

  • 解析层允许 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 透传 modelmodel_catalog_json,避免 relaunch/respawn 使用过期缓存 profile
  • 补充 provider_profiles / config_loader / runtime_launch 单元测试

测试

新增/更新 test_provider_profiles.pytest_v2_config_loader.pytest_v2_runtime_launch.py

- 解析层允许 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 单元测试
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant