Skip to content

fix(opencode): retain disabled models and native filters (A14) - #19

Closed
ChenM0M wants to merge 2 commits into
mainfrom
codex/agent-config-a14-disable-model
Closed

ChenM0M wants to merge 2 commits into
mainfrom
codex/agent-config-a14-disable-model

Conversation

@ChenM0M

@ChenM0M ChenM0M commented Sep 22, 2026

Copy link
Copy Markdown
Owner

关闭模型开关时,保存层过滤掉 disabled 模型,再把它们加入删除列表,导致模型和变体参数丢失。

改为保留所有模型定义,并按 OpenCode 原生 blacklist/whitelist 读取与更新启用状态。保留其他名单条目,仅明确移除模型时删除定义;重新启用会移出 blacklist,并在已有 whitelist 中加入该模型。

验证:22 个实际 command 模块测试通过(独立 Rust harness,仅去除 tauri::command 宏标记),覆盖禁用→读取→重新启用→删除,以及变体、注释与其他名单条目保留。尚未完成完整桌面构建和原生 GUI 验证,保持 draft。

语义依据:OpenCode provider 源码。此 PR 基于 main,独立于其他修复。

@ChenM0M

ChenM0M commented Sep 23, 2026

Copy link
Copy Markdown
Owner Author

内容已随整合 PR #33 合入 main (e3cb573)。此 PR 为被取代的分支/栈式 PR,按用户指示关闭;分支保留,未删除。

@ChenM0M ChenM0M closed this Sep 23, 2026
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