[PR #7358] feat: Add --variant flag to root opencode command #12367

Open
opened 2026-02-16 18:17:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7358

State: open
Merged: No


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7358 **State:** open **Merged:** No --- 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.
yindo added the pull-request label 2026-02-16 18:17:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12367