feat(codex): 支持隐藏模型及思考等级透传;拆分 Agent/Model 选择器 - #72
Open
AAEE86 wants to merge 2 commits into
Open
Conversation
**服务端** - `codex/session.go:ListModels` — 设置 `IncludeHidden=true`,使 `gpt-5.6-sol` 等隐藏模型可在前端选择 - `codex/session.go:mapCodexModel` — 新增,将 app-server 返回的 `SupportedReasoningEfforts`/`DefaultReasoningEffort` 透传到 `ModelInfo`, 确保每个模型的思考等级列表和默认值独立展示(如 ultramax/xhigh/high/medium/low) - `types/types.go:ModelInfo` — 增加 `Efforts []string` 和 `DefaultEffort string` 字段 - `probe.go:inferAgentEfforts` — 优先使用模型级 `Efforts`,无声明时保 CFD 回退 **前端** - `AgentSelector.tsx` — 剥离模型/模式/思考等级/Fast 配置,仅保留 Agent 列表、 错误查看和重启功能;`onAgentChange` 签名简化,不再传递 model - `ModelSelector.tsx`(新增) — 独立选择器,接管模型选择、模式、思考等级和 Fast 配置;切换模型时自动重置思考等级为模型默认值 - `ActionBar.tsx` / `ScheduledAgentTaskDialog.tsx` / `TaskTemplateDialog.tsx` — 三个入口同步拆分,Agent 和 Model 选择器相邻并排 - `agents.ts` — 补齐 `ModelInfo` 类型中 `efforts` / `default_effort` 字段声明
将 ModelSelector 中的四个功能区域(模型、Agent 模式、思考等级、Fast 模式)各自提取为独立组件,降低耦合,便于按需组合使用。 - ModelSelector:精简为仅保留模型选择 - AgentModeSelector:新增,独立的 Agent 模式选择器 - EffortSelector:新增,独立的思考等级选择器 - FastServiceSelector:新增,改为开关按钮样式,灰色关闭 / 蓝色开启,点击直接切换 - 更新 ActionBar / TaskTemplateDialog / ScheduledAgentTaskDialog 中所有消费方,适配新的独立选择器接口
shuguangnet
added a commit
to shuguangnet/mindfs-fork-archive-20260726
that referenced
this pull request
Jul 11, 2026
Contributor
|
大部分已经修好了,模型选择拆分这个我再看看怎么搞更合适 |
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/session.go:ListModels— 设置IncludeHidden=true,使gpt-5.6-sol等隐藏模型可在前端选择codex/session.go:mapCodexModel— 新增,将 app-server 返回的SupportedReasoningEfforts/DefaultReasoningEffort透传到ModelInfo, 确保每个模型的思考等级列表和默认值独立展示(如 ultramax/xhigh/high/medium/low)types/types.go:ModelInfo— 增加Efforts []string和DefaultEffort string字段probe.go:inferAgentEfforts— 优先使用模型级Efforts,无声明时保 CFD 回退前端
AgentSelector.tsx— 剥离模型/模式/思考等级/Fast 配置,仅保留 Agent 列表、 错误查看和重启功能;onAgentChange签名简化,不再传递 modelModelSelector.tsx(新增) — 独立选择器,接管模型选择、模式、思考等级和 Fast 配置;切换模型时自动重置思考等级为模型默认值ActionBar.tsx/ScheduledAgentTaskDialog.tsx/TaskTemplateDialog.tsx— 三个入口同步拆分,Agent 和 Model 选择器相邻并排agents.ts— 补齐ModelInfo类型中efforts/default_effort字段声明