Skip to content

fix(desktop): embed version in server sidecar - #40764

Merged
Brendonovich merged 1 commit into
anomalyco:devfrom
Hona:sidecar-version
Aug 5, 2026
Merged

fix(desktop): embed version in server sidecar#40764
Brendonovich merged 1 commit into
anomalyco:devfrom
Hona:sidecar-version

Conversation

@Hona

@Hona Hona commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • pass the computed release version into the desktop build
  • embed that version in the Node server sidecar alongside the release channel
  • prevent packaged beta sidecars from falling back to local and requesting @opencode-ai/plugin@local

Verification

  • built the Node sidecar with OPENCODE_VERSION=1.18.14 and OPENCODE_CHANNEL=beta
  • verified the generated bundle contains InstallationVersion 1.18.14 and InstallationChannel beta
  • bun typecheck passed in packages/opencode

Copilot AI lite review requested due to automatic review settings August 5, 2026 23:20
@Brendonovich
Brendonovich merged commit 24470e5 into anomalyco:dev Aug 5, 2026
10 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR ensures the desktop-packaged Node server sidecar embeds the computed release version (in addition to release channel), preventing packaged beta sidecars from behaving like “local” installs and attempting to resolve @opencode-ai/plugin@local.

Changes:

  • Define OPENCODE_VERSION at bundle time when building the Node sidecar (packages/opencode/script/build-node.ts), matching the existing pattern used in other build scripts.
  • Pass OPENCODE_VERSION into the desktop “Build” step in the publish workflow so the sidecar build picks up the release version in CI (.github/workflows/publish.yml).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/opencode/script/build-node.ts Embeds the computed Script.version into the sidecar bundle via define.OPENCODE_VERSION.
.github/workflows/publish.yml Exports OPENCODE_VERSION into the desktop build environment so Script.version resolves to the release version during packaging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants