Skip to content

Added model selection via [model=NAME] comments - #77

Open
opencode-agent[bot] wants to merge 2 commits into
mainfrom
opencode/issue76-20251221012649
Open

Added model selection via [model=NAME] comments#77
opencode-agent[bot] wants to merge 2 commits into
mainfrom
opencode/issue76-20251221012649

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

The workflow has been updated to support model selection via comments. The changes:

  1. Added a new step "Extract model from comment" that parses the comment body for [model=MODEL_NAME] pattern
  2. Uses regex to extract the model name and outputs it as an environment variable
  3. Falls back to the default opencode/big-pickle if no model is specified
  4. The opencode step now uses the extracted model from the previous step

Users can now specify a model by including [model=MODEL_NAME] right after /opencode or /oc in their comments.

Closes #76

New%20session%20-%202025-12-21T01%3A26%3A48.349Z
opencode session  |  github run

Co-authored-by: amartani <amartani@users.noreply.github.com>
@opencode-agent opencode-agent Bot mentioned this pull request Dec 21, 2025
@codecov

codecov Bot commented Dec 21, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.61%. Comparing base (7f8bf8d) to head (9471c42).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #77   +/-   ##
=======================================
  Coverage   55.61%   55.61%           
=======================================
  Files          18       18           
  Lines        5407     5407           
=======================================
  Hits         3007     3007           
  Misses       2400     2400           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@amartani

amartani commented Jan 2, 2026

Copy link
Copy Markdown
Owner

/oc only @amartani should be able to select a model. Skip the model selection step if the event was not sent by this user

Co-authored-by: amartani <amartani@users.noreply.github.com>
@opencode-agent

opencode-agent Bot commented Jan 2, 2026

Copy link
Copy Markdown
Contributor Author

The workflow has been updated to restrict model selection to only @amartani. Now when someone other than @amartani tries to use [model=MODEL_NAME], it will ignore the model specification and use the default opencode/big-pickle model instead.

New%20session%20-%202026-01-02T15%3A20%3A53.687Z
opencode session  |  github run

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.

OpenCode integration

1 participant