Repository navigation
fix(release): harden prerelease update fallback checks - #1793
Merged
Merged
Conversation
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
4 tasks done
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Orca <[email protected]>
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.
Summary
Hardens desktop release/update handling during GitHub release transitions:
Screenshots
No visual change.
Testing
pnpm lintpnpm run typecheck:nodepnpm run typecheck:clipnpm run typecheck:webpnpm testafter rebuildingbetter-sqlite3for the current Node ABI: 451 files passed, 5440 tests passed, 9 skippedpnpm exec vitest run --config config/vitest.config.ts src/main/updater.test.ts src/main/updater.fallback.test.ts src/main/updater-prerelease-feed.test.tspnpm exec vitest run --config config/vitest.config.ts src/main/updater.test.ts -t "prerelease fallback"DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer pnpm run build:releasepnpm run build:electron-vitepnpm run build:cliactionlint .github/workflows/release-cut.yml.github/workflows/release-cut.ymlgit diff --checkGH_TOKEN="$(gh auth token)" GITHUB_REPOSITORY=stablyai/orca node config/scripts/verify-release-required-assets.mjs v1.4.0GH_TOKEN="$(gh auth token)" GITHUB_REPOSITORY=stablyai/orca node config/scripts/verify-release-required-assets.mjs v1.4.1-rc.0GH_TOKEN="$(gh auth token)" GITHUB_REPOSITORY=stablyai/orca node config/scripts/verify-release-required-assets.mjs v1.3.52-rc.3Release Build Verification
Verified the full local release build path with full Xcode selected via
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer:build:relaycompleted for Linux and macOS relay targetsbuild:computer-macosbuilt the universal macOS computer-use helperverify:computer-nativeran the Swift package tests and checked the helper app bundle/signaturebuild:electron-vitecompleted for main, preload, and renderer bundlesbuild:clicompleted; it only printed the existing local/usr/local/bin/orca-devsymlink permission warning and still exited 0The earlier local
build:releasefailure was caused by this machine's activexcode-selectpointing at stale Command Line Tools. With the installed full Xcode selected, the release build path passes.Current Release-State Verification
Checked the live GitHub release state before updating this description:
v1.4.0, published2026-05-14T00:08:47Zv1.4.1-rc.0, published2026-05-14T03:07:59Z1.3.51-rc.5Ran the new release asset verifier against the current stable release, the current prerelease, and the latest release on the prior RC line. Each verified 15 required release assets, including updater manifests and manifest-referenced installer assets.
Update-Flow Verification
I specifically checked that the update flow remains safe after these changes:
update-availablefallback path shows the fallback update but does not persist a completed-check timestamp.latest-mac.yml/ platform manifest 404s, fallback success, fallback failure, and duplicate event/promise error suppression.AI Review Report
The update/release path was reviewed for client-side updater state transitions, release-cut workflow sequencing, draft-release safety, prerelease feed behavior, and cross-platform updater assets for macOS, Windows, and Linux. The main risk identified was that a fallback available update could be treated as a completed check, delaying the next probe for the newest release; this PR keeps that case on the short retry cadence and adds a regression test.
Cross-platform compatibility was checked for updater manifest names and release assets across
latest-mac.yml,latest.yml, andlatest-linux.yml. No keyboard shortcut, shortcut label, path separator, or SSH execution behavior is changed by this PR.Security Audit
Reviewed input/network boundaries around GitHub release metadata, updater manifest parsing, and release workflow publication. The new release asset verifier reads GitHub API release assets using the workflow token and compares names/states/sizes; it does not execute downloaded content or expose secrets. Updater client changes only adjust feed selection, retry state, and status scheduling; no new IPC surface, shell execution, credential handling, or filesystem write path is introduced.
Notes
This is primarily a release-safety change. The release workflow changes are designed to fail closed: if draft state, RC prerelease state, or required assets are wrong, the release should remain unpublished instead of exposing a broken update.
Made with Orca 🐋