Repository navigation
feat(updater): safely update the managed home AppImage in app - #21
Merged
Merged
Conversation
7 of 9 tasks
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
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