Command flag--variant not supported by the Opencode CLI latest version (v2.3.0)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 internal/runtime/provider_agentcli.go 开始,在 issue 中链接的 opencode run 命令附近检查其参数是如何构建的。确认当前 Opencode CLI 支持哪些 flags,然后运行相关的 agent CLI 测试,或复现一次与 Opencode 的聊天。提交 prompt 不再因不支持的 --variant flag 而失败时,即为完成。
由索引模型根据 Issue 内容生成。
描述
When Opencode is used as agent executor and prompt is submitted in a chat it returned an error. There is a following error in the log:
platform-1 | 2026/11/16 15:15:02 assistant CLI session=afdmwqfb0lz73b: exit status 1; stderr=ERROR | Unrecognized flag: --variant in command opencode run
platform-1 | 2026/11/16 15:15:02 assistant title summary skipped session=chat-28b75d079d7efe9870d7274a25b5ba39: exit status 1; stderr=ERROR | Unrecognized flag: --variant in command opencode run
UI does not offer to set effort level for the chosen Opencode model used in a chat.
Current Opencode version does not support --variant for the command:
opencode run
LoopForge version 0.3.8
- 主要语言
- Go
- 星标
- 711
- 派生
- 114
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 116
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Tencent/LoopForge 的其他 Issue
-
[Bug] AI 对话切换 Claude Code 必定 400「不支持的执行器」:assistantEngineClaude 与 executorModelCatalogs 键名不一致可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
Tencent/LoopForge#986 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
Tencent/LoopForge#963 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Tencent/LoopForge#900 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: 官方镜像未安装 wecom-cli,企业微信通知报「通知服务未安装 wecom-cli」可能已有人在做 @newexploreor 于 5 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
Tencent/LoopForge#156 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 54/100
Tencent/LoopForge#994 · 1 条评论 ·
维护者通常 1 天内回复
查看 Tencent/LoopForge 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
projectdiscovery/cdncheck#554 ·
维护者通常 1 天内回复
-
triage needed
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
OpenSlides/openslides-go#342 ·
维护者通常 4 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 77/100