Skip to content

模型排序 - #18

Merged
BigStrongSun merged 1 commit into
BigStrongSun:mainfrom
GaoHu1997:sort
Aug 17, 2026
Merged

模型排序#18
BigStrongSun merged 1 commit into
BigStrongSun:mainfrom
GaoHu1997:sort

Conversation

@GaoHu1997

Copy link
Copy Markdown
Contributor

Summary / 概述

本次 PR 主要是针对 Codex 多模型路由进行模型排序,使 Codex 中的自定义模型按照指定顺序展示

Related Issue / 关联 Issue

Fixes #

Screenshots / 截图

旧版 ccsm
image

pr 新增顶部模型排序 tab,拖动即可进行模型排序
image

Checklist / 检查清单

  • pnpm typecheck passes / 通过 TypeScript 类型检查
  • pnpm format:check passes / 通过代码格式检查
  • cargo clippy passes (if Rust code changed) / 通过 Clippy 检查(如修改了 Rust 代码)
  • Updated i18n files if user-facing text changed / 如修改了用户可见文本,已更新国际化文件

BigStrongSun added a commit that referenced this pull request Aug 17, 2026
PR #18 合入后本地门禁发现两处问题,均已根修:

1. 编译错误(E0063):CodexCatalogModelSpec 新增 sort_index 字段后,PR 漏改了 3 处
   测试夹具初始化(codex_config.rs 8196/8261/10841 行附近,
   codex_subagent_v2_real_sync_rewrites_managed_output_for_changed_settings、
   codex_subagent_v2_same_retained_settings_survive_v1_cleanup_and_v2_restore、
   以及 deepseek-v4-flash spec 用例),按 PR 自身对其它夹具的统一模式补 sort_index: None。
2. Prettier 格式:CodexRouterWorkspacePage.tsx 的 hasChanges 链式调用缩进不符合
   仓库 Prettier 配置,prettier --write 修正(纯缩进,无逻辑变化)。

门禁结果(worktree .worktrees/pr18-model-sort,main + PR #18):
- pnpm typecheck 通过
- pnpm format:check 通过
- pnpm vitest run CodexRouterWorkspacePage.test.ts 54/54 通过
- cargo test --lib codex_config:: 178/178 通过(含新增
  codex_model_catalog_uses_user_model_sort_index_for_picker_order)
- cargo test --lib 全量 3108 passed / 0 failed / 5 ignored
- cargo fmt --check 通过

本次提交由BigStrongsSun完成
@BigStrongSun
BigStrongSun merged commit b40d914 into BigStrongSun:main Aug 17, 2026
1 check passed
BigStrongSun added a commit that referenced this pull request Aug 17, 2026
- 记录用户 PR #18(模型排序)审查、合入与门禁:merge b40d914 + 修复 962d42d 已 push fork main,GitHub MERGED。
- 记录审查发现的两处 PR 缺陷根修(3 处测试夹具缺 sort_index 的 E0063 编译错误、Prettier 缩进)与完整门禁数据(typecheck/format:check/vitest 54+43/codex_config 178/全量 lib 3108/fmt)。
- 记录行为边界:用户 sortIndex 优先于 spawn_agent_model_priority,仅影响 picker 展示顺序,需重启 Codex Desktop 生效。

本次提交由BigStrongsSun完成
BigStrongSun added a commit that referenced this pull request Aug 17, 2026
- 合入 bigstrongsun/fix-responses-chat-turn-coalescing:Stage A 扩围(第三方中转父模型也剥离 message.encrypted,修复第三方父→第三方子 V2 加密任务失败)+ Responses→Chat commentary 与工具调用合并(修复 Qwen 纯进度 stop 短轮)。
- 合入 bigstrongsun/release-v3.19.2-6:补 Qwen 英文 raw reasoning 边界 memory 记录。
- 主干已含 PR #18 模型排序与 CI Clippy 三连根修(0224cc4e/338f69de/acb32709)。
- 版本号 3.19.2-5 → 3.19.2-6(package.json / Cargo.toml / Cargo.lock / tauri.conf.json)。
- 回归:Rust lib 3109 passed / 0 failed / 5 ignored,cargo fmt --check 与 git diff --check 通过。

本次提交由BigStrongsSun完成
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants