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

オープン 初心者向け
#969 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
69/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
cli

調査の方向性

internal/runtime/provider_agentcli.goから始め、issueでリンクされているopencode runコマンドのあたりで、引数がどのように組み立てられているかを確認してください。現在のOpencode CLIがサポートするフラグを確認し、関連するエージェントCLIのテストを実行するか、Opencodeとのチャットを再現してください。プロンプトの送信が、サポートされていない--variantフラグによって失敗しなくなれば完了です。

索引モデルが 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時間
マージ済み PR(30日)
116

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Tencent/LoopForge のほかの issue

Tencent/LoopForge の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。