Skip to content

feat(agent-profiles): 配置模型上下文与输入输出上限 (B07) - #29

Closed
ChenM0M wants to merge 5 commits into
codex/agent-config-b06-modalitiesfrom
codex/agent-config-b07-token-limits
Closed

ChenM0M wants to merge 5 commits into
codex/agent-config-b06-modalitiesfrom
codex/agent-config-b07-token-limits

Conversation

@ChenM0M

@ChenM0M ChenM0M commented Sep 22, 2026

Copy link
Copy Markdown
Owner

新增 OpenCode 上下文、最大输入、最大输出 Token 表单,支持全部继承和单独撤销可选输入上限。根据官方 schema,显式 limit 需要 context 与 output;前后端均拒绝缺失必填值、零值和超出 JavaScript 安全整数范围的值。逐键更新保留其他模型字段及未管理的限制字段。

基于 #28。字段依据:https://opencode.ai/config.json 。

验证:TypeScript、前端继承/边界值检查、826 个契约断言、26 个实际命令模块 harness 测试通过。回归覆盖保存/重新读取/清除、可选 input 和其他字段保留。未执行桌面 GUI、Windows 原生及上游请求验证。

@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