Skip to content

fix(web): use release version for embedded UI#29934

Open
bernhardberger wants to merge 2 commits into
anomalyco:devfrom
bernhardberger:fix/web-release-version
Open

fix(web): use release version for embedded UI#29934
bernhardberger wants to merge 2 commits into
anomalyco:devfrom
bernhardberger:fix/web-release-version

Conversation

@bernhardberger
Copy link
Copy Markdown

@bernhardberger bernhardberger commented May 29, 2026

Issue for this PR

Closes #29301
Refs #24286
Refs #18712

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Embedded release builds were reading the Web UI version from packages/app/package.json, while the CLI binary uses OPENCODE_VERSION / Script.version. Because package versions are synced later in the release flow, the embedded settings dialog could show the previous release.

This passes Script.version into the embedded Web UI build as VITE_OPENCODE_VERSION, uses it for platform.version, and keeps package.json as the local/dev fallback.

How did you verify your code works?

  • VITE_OPENCODE_VERSION=9.9.9 bun run --cwd packages/app build
  • confirmed the built app assets contain 9.9.9
  • bun run --cwd packages/app typecheck
  • OPENCODE_VERSION=9.9.9 bun ./packages/opencode/script/build.ts --single --skip-install
  • confirmed dist/opencode-linux-x64/bin/opencode --version reports 9.9.9
  • bun turbo typecheck passed locally: 19/19 tasks

Screenshots / recordings

N/A. This does not change layout or styling; it changes the release-time source for the version string shown in settings.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Web UI displays wrong version (1.15.9) after upgrading to 1.15.10

1 participant