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.
导入模型会套用通用推理能力和固定思考档位,甚至自动选择 none;配置中的思考参数也被误当成模型能力证明。
本 PR 将缺失的推理/effort 能力保留为 null,所有 Agent 显示三态声明。解析上游明确的 reasoning 布尔值及 Anthropic capabilities.thinking/effort;仅保留明确支持的档位和 thinking types,不根据模型名推断,也不自动选择档位。OpenCode 的 effort 档位不会再生成空 variants。本地 Codex/Claude 配置参数仍保留,但不据此宣称模型支持某项能力。
依赖 #14。验证:23 个实际 command 模块测试(独立 harness)、前端导入回归检查、TypeScript、822 契约断言通过。上游能力声明是导入时的信息,不等同于实际 API 调用验证;原生配置不支持存储的能力元数据在重读后保持未知。桌面交互未实测,保持 draft。
依据:Anthropic 官方模型元数据类型。
2026-09-23 repair verification
364fe8846fe64cddd58b5161fd859f9ead53940b.