Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(github): support variant in github action and opencode github run. #14431

Merged
thdxr merged 7 commits intoanomalyco:devanomalyco/opencode:devfrom
elithrar:opencode/github-variantelithrar/opencode:opencode/github-variantCopy head branch name to clipboard
Feb 20, 2026
Merged

fix(github): support variant in github action and opencode github run. #14431
thdxr merged 7 commits intoanomalyco:devanomalyco/opencode:devfrom
elithrar:opencode/github-variantelithrar/opencode:opencode/github-variantCopy head branch name to clipboard

Conversation

@elithrar
Copy link
Contributor

@elithrar elithrar commented Feb 20, 2026

Closes #14434
Closes #14434
Closes #14434

opencode github run doesn't read or pass through a variant parameter to SessionPrompt.prompt(), even though opencode run already supports --variant and the SDK accepts it.

This adds a variant input to the GitHub Action and reads the VARIANT env var in the github run command, threading it to both SessionPrompt.prompt() calls in chat().

  • add variant input to github/action.yml, pass as VARIANT env var
  • read VARIANT in github.ts, pass to SessionPrompt.prompt() in chat()

Usage:

- uses: anomalyco/opencode/github@latest
  with:
    model: anthropic/claude-sonnet-4-5-20250929
    variant: max

Closes #14434
Ref: ask-bonk/ask-bonk#97

@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Feb 20, 2026
@github-actions
Copy link
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Contributor

Hey! Your PR title support variant in github action and opencode github run doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@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
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@thdxr thdxr enabled auto-merge (squash) February 20, 2026 12:39
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
@thdxr thdxr merged commit 2410593 into anomalyco:dev Feb 20, 2026
8 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support variant in github action

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.