Conversation
Owner
Author
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.
关闭模型开关时,保存层过滤掉 disabled 模型,再把它们加入删除列表,导致模型和变体参数丢失。
改为保留所有模型定义,并按 OpenCode 原生 blacklist/whitelist 读取与更新启用状态。保留其他名单条目,仅明确移除模型时删除定义;重新启用会移出 blacklist,并在已有 whitelist 中加入该模型。
验证:22 个实际 command 模块测试通过(独立 Rust harness,仅去除 tauri::command 宏标记),覆盖禁用→读取→重新启用→删除,以及变体、注释与其他名单条目保留。尚未完成完整桌面构建和原生 GUI 验证,保持 draft。
语义依据:OpenCode provider 源码。此 PR 基于 main,独立于其他修复。