Skip to content

Add Companion self-update flow - #20

Merged
davejohnson merged 1 commit into
mainfrom
agent/companion-self-update
Jul 22, 2026
Merged

Add Companion self-update flow#20
davejohnson merged 1 commit into
mainfrom
agent/companion-self-update

Conversation

@davejohnson

Copy link
Copy Markdown
Owner

What changed

  • compare the packaged Companion version with the latest published GitHub release
  • offer a visible Restart and Update action only for a newer architecture-matching DMG with a GitHub SHA-256 digest
  • verify the download, bundle identity/version, updater presence, and code signature before staging
  • replace and relaunch through a native helper with rollback on replacement or relaunch failure
  • package and sign the helper in both macOS release artifacts

Why

The bundled Hypervibe runtime otherwise stays fixed until the user manually downloads and reinstalls the app. This gives the Companion a safe, explicit update path before onboarding a coding agent.

Validation

  • swift test --package-path apps/macos (34 tests)
  • optimized release builds for HypervibeCompanion and HypervibeCompanionUpdater
  • bash -n scripts/build-macos-installer.sh
  • git diff --check

@davejohnson
davejohnson merged commit 8701ab5 into main Jul 22, 2026
@davejohnson
davejohnson deleted the agent/companion-self-update branch July 23, 2026 23:51
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