Skip to content

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

Open

Description

@vrlorad

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

argv = append(argv, "--variant", effort)

LoopForge version 0.3.8

Activity

  1. cocofhu00 commented on Nov 16, 2026

    @cocofhu00
    Contributor

    Thanks for the report! As I understand it, when OpenCode is used as the chat executor, LoopForge passes --variant to opencode run, and OpenCode CLI v2.3.0 rejects that flag (Unrecognized flag: --variant), so submitting a prompt fails. You also noted that the UI does not offer an effort level for the selected OpenCode model.

    We've seen this and will look into it through the regular issue queue. The log, the OpenCode version, and the code reference are helpful. Please add the LoopForge version (image tag or commit) on this issue — that part is not in the report yet.

  2. wcy12378 commented on Nov 17, 2026

    @wcy12378

    I will investigate the OpenCode v1/v2 run argument compatibility reported here, including preserving v1 behavior and checking the v2 CLI before proposing a focused fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions