Skip to content

Use GitHub Releases for OpenCode v2 fixed installs - #81

Closed
crepuscular-drizzle wants to merge 2 commits into
mainfrom
feat/opencode-v2
Closed

crepuscular-drizzle wants to merge 2 commits into
mainfrom
feat/opencode-v2

Conversation

@crepuscular-drizzle

Copy link
Copy Markdown
Collaborator

What does this change?

  • Scope the OpenCode adapter and installer to v2. Install fixed candidates from GitHub Releases and add verified release pins for 2.2.6, 2.2.7, and 2.3.0.
  • When the caller specifies a version and omits --mode, choose a mode verified for that version. If both modes are verified, keep the harness's default preference. Explicit --mode takes precedence.
  • Update the OpenCode resource documentation and probe for v2.

The installation path and mode are part of the candidate selected for a new experiment.

How was it verified?

  • Focused pytest -q coverage for the installer, OpenCode adapter and resources, Console launch selection, and subprocess decoding yielded 173 passed, 2 skipped, and 1 failed. The subprocess decoding check also fails on origin/main. The skipped tests require prepared candidates supplied through the test environment.
  • Independent review installed fixed releases 2.2.6, 2.2.7, and 2.3.0 and verified native delegation, usage, and session export against a local synthetic model.
  • git diff --check origin/main..HEAD passed.

Checklist

  • I described the change and its validation above.
  • I considered whether this changes experiment behavior, datasets, scoring or historical evidence; if relevant, I explained the impact.
  • I removed credentials, private task answers and sensitive logs from this pull request.

Use v2 runtime and resource APIs and reject v1 in the installer, Console,
and runtime admission. Pin the Linux x86-64 GitHub Release archives and
executables for OpenCode 2.2.6, 2.2.7, and 2.3.0. Keep existing v2 npm
runtime bindings usable. Decode Bun dependency fetch output as UTF-8.
When --mode is omitted, prefer the configured default if it has been verified for the selected release. Install and register the alternate mode when it is the only verified choice. Keep explicit mode requests and the unverified-version fallback.
Copilot AI balanced review requested due to automatic review settings December 2, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

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.

2 participants