GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Add `--variant` flag to root opencode command by ekweible · Pull Request #7358 · anomalyco/opencode

Conversation

@ekweible

@ekweible ekweible commented Jan 8, 2026

Copy link
Copy Markdown

Closes #7354

Summary

Adds --variant flag to root opencode command, matching existing support in opencode run.

Changes

  • thread.ts: Add --variant option to yargs builder, pass to tui args
  • args.tsx: Add variant to Args interface
  • local.tsx: Initialize variant from CLI arg using model.variant.set()

This is my first contribution here, so please let me know if I've missed something! I didn't see any existing test coverage for the CLI args or the TUI local context, but I'm happy to add tests if desired.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mLupine and zclllyybb reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ekweible ekweible mentioned this pull request Jan 8, 2026
[FEATURE]: Add --variant flag to root opencode command #7354
Closed
1 task done
@gjermundgaraba

gjermundgaraba commented Jan 16, 2026

Copy link
Copy Markdown

As mentioned in #7354 (comment): my fork's version of this feature. Feel free to use anything there if useful!

4d67c5e

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ekweible
feat: add --variant flag to root opencode command
f435b7a
Brings parity with `opencode run` which already supports --variant.
Allows users to specify reasoning effort when launching TUI with --prompt.
@ekweible
ekweible force-pushed the feat/cli-root-variant-flag branch from 869617e to f435b7a Compare January 23, 2026 18:04
@thdxr
thdxr force-pushed the dev branch from cbab81f to 2d3c7a0 Compare January 30, 2026 04:50
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 00637c0 to 71e0ba2 Compare January 30, 2026 14:32
@thdxr
thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
@ramarivera

ramarivera commented Feb 10, 2026

Copy link
Copy Markdown

super interested in this ! LMK if some testing is needed or whatever :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zclllyybb

zclllyybb commented Apr 10, 2026

Copy link
Copy Markdown

any progress?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent
opencode-agent Bot force-pushed the dev branch from 2f2ed11 to 9f201d6 Compare April 16, 2026 21:55
@colinmollenhour colinmollenhour mentioned this pull request Jul 20, 2026
[FEATURE]: Add missing --variant option for standard "opencode" command to start new session. #37925
Closed
1 task done
@matleh

matleh commented Sep 18, 2026

Copy link
Copy Markdown

Anything needed to move this forward?
Would be helpful in automation.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Starefossen Starefossen mentioned this pull request Oct 1, 2026
fix(nav-pilot): omit variant flag for OpenCode TUI navikt/copilot#1411
Merged
@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thdxr thdxr closed this Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add --variant flag to root opencode command

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@ekweible @gjermundgaraba @ramarivera @zclllyybb @matleh @thdxr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.