Repository navigation
Pin opencode version and skip bot-authored comments - #39
Merged
Merged
Conversation
Upstream anomalyco/opencode v1.15.1 and v1.15.2 crash with "InstanceRef not provided" (anomalyco/opencode#27829). The anomalyco/opencode/github action always installs the latest binary, so the workflow started failing as soon as v1.15.x shipped. Inline the action's composite steps and pin the install to v1.15.0 until a fixed release is available.
opencode-agent's review responses include https://opencode.ai/... links that contain the substring "/opencode", which re-triggers the workflow on the bot's own comment. The re-run then fails with "User opencode-agent[bot] does not have write permissions" (see PR #34 comment 4464653977). Filter out comments authored by bots so only human-initiated /oc and /opencode invocations run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the opencode GitHub workflow to pin a specific version of the opencode binary and adds a guard to prevent the workflow from being re-triggered by bot-authored comments.
Key Changes
OPENCODE_VERSION: "1.15.0"environment variable to work around a regression in v1.15.1+ (bug: opencode 1.15.1 run exits with InstanceRef not provided anomalyco/opencode#27829). The workflow now manually installs and caches this specific version instead of relying on the latest action.github.event.comment.user.type != 'Bot'), preventing infinite loops where opencode-agent's own review comments would re-trigger the workflow.anomalyco/opencode/github@latestaction with explicit steps to:model,share) to environment variables (MODEL,SHARE) to match the direct invocation approach.Implementation Details
The workflow now has more control over the opencode binary version, allowing us to stay on a known-good release while upstream issues are resolved. The bot comment filter prevents the workflow from being triggered by opencode-agent's own review bodies, which contain links matching the
/opencodesubstring.https://claude.ai/code/session_01Keu5EHUn477ibg36DjNt6z