Skip to content

feat(updater): safely update the managed home AppImage in app - #21

Merged
karlorz merged 4 commits into
fork-mainfrom
karlorz/orca-inapp-update
Oct 11, 2026
Merged

karlorz merged 4 commits into
fork-mainfrom
karlorz/orca-inapp-update

Conversation

@karlorz

@karlorz karlorz commented Oct 11, 2026

Copy link
Copy Markdown
Owner

ELI5

The managed home AppImage can now check for a newer fork release, download it safely, and show Restart to Update. Its restore pin advances with the installed image. Restart waits for a user click.

What Changed

Replaces PR #16's managed-home updater suppression with the existing update card and settings actions. The app and ensure installer use one shared SHA256SUMS/extracted AppImage-marker verifier and a durable image/pin transaction. Extracted deployment-template presence also rejects incomplete SSH-capable packages. Startup reconciles the running version, disk identity and pin; interrupted swaps recover forward. One verified previous image is retained.

The feed includes published karlorz/orca prereleases matching vX.Y.Z-N. A new orca-update-protocol.json release asset records the tagged daemon protocol. Live daemon inventory must establish the same protocol for each connected generation at check, download, commit and restart. Missing or incompatible metadata gives attended runbook guidance and blocks installation.

Why

An app-owned image-and-pin transaction keeps ensure repair aligned with user updates. A durable journal is required because the filesystem renames individual files; recovery finishes the verified target before restore decisions. Shared verification gives the installer and app the same acceptance rules. Protocol crossings require an attended terminal migration plan.

Linked Issue

Follow-up to #16. Attended brief and Muse conditions provided by the coordinator.

Visual Proof

The production General settings update actions were exercised through Playwright CDP on hidden Electron renderers inside Xvfb. Old version 1.4.224-0 displayed Download Update and Restart to Update for 1.4.224-1; after the explicit restart click the new process returned 1.4.224-1. Evidence and reproduction are in docs/audits/orca-inapp-update-validation-2026-10-12.md.

Testing

  • 57 focused Vitest tests passed: managed-install policy, numeric prerelease selection, protocol gate, updater actions, startup routing, shared transaction recovery at every write boundary, pin repair, immutable-tag bytes, concurrent actors and shell install/restore contracts.
  • Main and preload bundles built successfully. Strict bounded typecheck for the new updater/policy/shared installer passed.
  • Changed-lines code-quality gate against origin/fork-main passed; focused oxlint, shell syntax and git diff whitespace passed.
  • Full Xvfb atomic unit passed with temporary HOME/config/cache/runtime/profile, two actual AppImages, production main/preload and existing renderer. Test-only repackaging changes version and HTTP transport to a local fixture feed; production contains no fixture feed override.
  • Full repository typecheck was stopped after consuming host memory below the heavy-run floor. CI remains the full typecheck/build/regression gate. macOS/Windows/SSH update paths require CI regression coverage.

AI Disclosure

Implemented with the Grok Build parent agent. Read-only scouts located the test rig; parent performed implementation, review and acceptance checks.

Review

Parent reviewed installer transaction, startup reconciliation, protocol metadata/feed validation, action routing and user-click relaunch. Crash lock recovery is attended and fail-closed. First production install and the next compatible-tag dogfood check remain attended.

Agent skill upstream boundary

  • This change copies no upstream skill-installer material.

Notes

The only release-workflow addition emits protocol metadata before existing checksums. This PR changes no protocol version, runtime launcher, tag process, live installation, Coolify configuration or automatic restart policy. No allow-runtime-launcher-protocol-bump label is needed. Karl owns merge and release.

Checklist

  • Explained user behavior, mechanism and rationale.
  • Automated tests and isolated rendered interaction evidence.
  • Parent-reviewed safety and cross-platform/remote boundaries.
  • Full CI green.

@karlorz
karlorz merged commit e5c905a into fork-main Oct 11, 2026
32 checks passed
karlorz pushed a commit that referenced this pull request Oct 19, 2026
…iew off the deprecated owner resolver (stablyai#30562)

* refactor(renderer): fold browser creation, file actions and doc-preview callers off the deprecated owner resolver

The creation-action policy and browser creation (#3, stablyai#48) fold together, so the provider the
policy offers is the one creation uses. Browser panes, page lifecycle and conversion, tab
duplication, the explorer tree pane, doc-preview actions and editor path moves (#21, #43, #45-#47,
stablyai#49, stablyai#50) read runtimeEnvironmentIdWithLegacyFallbackUnlessTwin. File-explorer writes on a folder
(stablyai#51) take the owner from the rows alone, never from the focused server. Deprecated importers
16 -> 6.

* refactor(renderer): fold file preview off the deprecated owner resolver; Open in Orca Browser refuses a twin

A project two hosts publish reads as no server for the doc-preview plan, but the file:// path now
refuses it with its own message instead of opening this machine's copy (#7). Deprecated importers
6 -> 5.

* fix(renderer): a twin's file preview and open-externally refuse instead of opening this machine's copy

Codex P2 on the F7 folds: a folder twin read as no server, so the preview plan built a local
file:// tab and open-externally handed the path to this machine's OS. Both now check the owner
for ambiguity first. Also fix two test fixtures that broke the renderer typecheck.

* refactor(renderer): move the file:// open target out of file-preview.ts

file-preview.ts crossed its line limit after main grew it; the file:// target, its type and its two
refusal messages move to workspace-file-browser-open-target.ts, which they never depended on
file-preview for.

* test: mock the replacement resolver in the quick-action availability suite (Codex P2)
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