Skip to content

Conversation

@ekweible
Copy link

@ekweible ekweible commented Jan 8, 2026

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.

Brings parity with `opencode run` which already supports --variant.
Allows users to specify reasoning effort when launching TUI with --prompt.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

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

No duplicate PRs found

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant