Command flag--variant not supported by the Opencode CLI latest version (v2.3.0)

未关闭 适合新手
#969 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
69/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go
领域
cli

调研方向

从 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

https://github.com/Tencent/LoopForge/blob/3e02e408b6ebdb4eca1435ca698dbaf75ac78f04/internal/runtime/provider_agentcli.go#L133

LoopForge version 0.3.8

主要语言
Go
星标
711
派生
114
平均合并
1 天 10 小时
30 天内合并 PR
116

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Tencent/LoopForge 的其他 Issue

查看 Tencent/LoopForge 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。