fix(github): support variant in github action and opencode github run. by elithrar · Pull Request #14431 · anomalyco/opencode

added 3 commits

February 19, 2026 18:20

@elithrar elithrar changed the title support variant in github action and opencode github run fix(github): support variant in github action and opencode github run

Feb 20, 2026

@elithrar

@elithrar

github-actions bot pushed a commit to ask-bonk/ask-bonk that referenced this pull request

Feb 20, 2026
Add variant parameter for provider-specific reasoning effort (e.g. high,
max, minimal). Plumbs through two paths:

1. GitHub Action: new 'variant' input → VARIANT env var → opencode github run
   (requires upstream anomalyco/opencode#14431)
2. /ask API: variant field on AskRequest → session.prompt() body

The v1 SDK types don't include variant yet, so we use a conditional spread
to pass it through without type errors.

Ref: #97

@elithrar elithrar changed the title fix(github): support variant in github action and opencode github run fix(github): support variant in github action and opencode github run.

Feb 20, 2026

@elithrar

@elithrar

elithrar pushed a commit to ask-bonk/ask-bonk that referenced this pull request

Feb 20, 2026
Add variant parameter for provider-specific reasoning effort (e.g. high,
max, minimal). Plumbs through two paths:

1. GitHub Action: new 'variant' input → VARIANT env var → opencode github run
   (requires upstream anomalyco/opencode#14431)
2. /ask API: variant field on AskRequest → session.prompt() body

The v1 SDK types don't include variant yet, so we use a conditional spread
to pass it through without type errors.

Ref: #97

Co-authored-by: ask-bonk[bot] <ask-bonk[bot]@users.noreply.github.com>