Skip to content

feat: update VM Bridge from the dashboard, and show Workers how to update - #101

Merged
vkpdeveloper merged 1 commit into
mainfrom
feat/dashboard-update-button
Nov 25, 2026
Merged

vkpdeveloper merged 1 commit into
mainfrom
feat/dashboard-update-button

Conversation

@vkpdeveloper

Copy link
Copy Markdown
Owner

Problem

The dashboard said a release was out but could only show vmbridge update to copy. A Worker never checked for releases at all, and nothing said how to update one.

Solution

  • Background service: the notice gets an Update button. It runs vmbridge update outside the service (its own process group under launchd, a transient systemd-run unit on Linux), so the update can stop the service and start it again on the new release. A failed install shows its last line under the button, with Try again.
  • Terminal run or from source: unchanged, the notice shows vmbridge update (nothing would start a terminal's VM Bridge again).
  • Cloudflare Workers: the Worker now runs the same release check from its alarms. Its notice has How to update, which opens the git commands that make the user's GitHub copy match the release while keeping their own wrangler.jsonc (the Worker name). Documented in docs/cloudflare.md and the README.
  • The dashboard reloads itself when the version it talks to changes, so it picks up the new release's dashboard after any update.

Validation

  • bun run check: 547 pass. New update.test.ts: one install at a time, failure shown, 400 without an install, release check caching.
  • bun run test:workers: passes in workerd.
  • End to end on macOS: a 1.1.6 build installed as a throwaway launchd service (separate label, data dir and port). Clicking Update downloaded 1.1.7, verified the checksum and attestation, restarted the service, and the page reloaded on v1.1.7 after 40 s.
  • The Cloudflare commands, run on a copy without shared history: the result matched the release tree except the copy's own Worker name.
Desktop Phone
Update button Update button
After the update Worker notice
Worker how to update Worker how to update

…date

The background service's dashboard gets an Update button. It runs
`vmbridge update` outside the service (its own process group on macOS,
a transient systemd unit on Linux) so the update can stop and start the
service. A failed install shows its last line under the button.

A Worker now checks for releases too, and its notice opens the git
commands that put the release in the user's GitHub copy while keeping
their wrangler.jsonc.

The dashboard reloads itself once a new version is running.
@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

Deployment failed for project vmbridge with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/vkpdevelopers-projects?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d3c1dbc-f44b-42b7-9f6d-b460af6bf29e
Commits

Reviewing files that changed from the base of the PR and between a3fb959 and 9f409e3.

Files selected for processing: 13

  • README.md
  • apps/cli/src/index.ts
  • apps/cli/src/service.ts
  • apps/cli/src/update.ts
  • apps/server/src/admin.ts
  • apps/server/src/index.ts
  • apps/server/src/release.ts
  • apps/server/src/workers/bridge.ts
  • apps/server/test/update.test.ts
  • apps/web/src/Canvas.tsx
  • apps/web/src/api.ts
  • docs/cloudflare.md
  • packages/contracts/src/index.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@vkpdeveloper
vkpdeveloper merged commit 1968b15 into main Nov 25, 2026
2 of 3 checks passed
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.

1 participant