opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: Add `--variant` flag to root opencode command

Open ekweible opened this issue 6 days ago • 1 comments

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.

ekweible avatar Jan 08 '26 18:01 ekweible