Repository navigation
LOCAL: updater release-source registry and sticky source - #10
Conversation
|
Review complete. 🟡 2 medium 📍 Outside the diff (2)
🧹 Nitpicks (1) — 🟢 1 low
Adds multi-release-source (fork vs upstream) support to the updater: source-tagged builds, cross-source pinning gates, a remote-wire Reviewed commit: 2eace6e |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
https://github.com/SwapLabsInc/orca/blob/2eace6e6b8710de44be0a52304c5b67dc00460c2/src/main/updater-prerelease-feed.ts#L212-L214
Rank source updates by stamped build time
When a later source build is cut from an older base version, this semver comparison treats it as older even though its source timestamp is newer, so the routine check returns no-newer and never offers the build. This is a supported case—the picker now explicitly orders source builds by timestamp because base versions can move backward—so non-primary feed comparisons and sorting must use the stamped build time rather than compareVersions.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Every routine update check read the hardcoded stablyai/orca feed, so a fork build (a semver prerelease) was offered upstream's next stable or RC and replaced itself. This adds a build-time release-source registry (ORCA_RELEASE_SOURCES, a compile-time define validated with the runtime's own parser) and derives the running build's source from its version: `<base>-swaplabs.<YYYYMMDDHHMM>[.<delta>]`, base may carry `-rc.N`. Such a version now classifies as its source with channel stable, not rc, and orders by stamp. Background checks, wake/focus re-checks, nudges and the menu check pin the running source's atom feed and download URLs; a non-primary source with nothing newer settles not-available instead of falling back to /releases/latest, which only names non-prereleases. Fork releases are located by the version in the release title or manifest, never by stripping `v` from the tag. A cross-source install reuses the pinned-build path (allowDowngrade, restore on not-available/failure/dismiss) over IPC with optional source/targetVersion/autoDownload; macOS cross-source jumps are refused with the release page URL, Linux AppImage installs in-app, deb/rpm stay externally managed, Windows keeps its dev-channel rule. Statuses and the remote snapshot gain an optional releaseSource; the remote-server coordinator never calls a server outdated across sources. electron-builder reads ORCA_PUBLISH_OWNER/REPO with stablyai defaults. With ORCA_RELEASE_SOURCES unset the registry is today's single source and behaviour is unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…installing The dev build picker lists builds without naming a source, which lists the primary source, but a pinned install without one resolved the running source; on a fork build every listed tag was then looked up on the fork. Both now default to the primary source. Source identifiers also match a version case-insensitively, as the registry already treats them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2eace6e to
2e9ccc8
Compare
|
Review complete. 🟡 2 medium 💬 Inline comments (2)
Reviewed commit: 2e9ccc8 |
|
Review round 1 (head
Checks: |
There was a problem hiding this comment.
💡 Codex Review
orca/src/main/updater-prerelease-feed.ts
Lines 212 to 214 in 2e9ccc8
For non-primary sources, this newer-than test still uses ordinary semver even though source builds are ordered by their embedded timestamp elsewhere. If the running build is 1.4.198-rc.1.swaplabs.202609240900 and a later release is 1.4.197-swaplabs.202609241600, the lower core version makes this return no-newer, so routine checks permanently skip the newer source build; conversely, an older timestamp with a higher core can be selected. Use the source build stamp for both ordering and the cutoff when the source is non-primary.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Expand to see previous review
This change adds multi-source release support to the auto-updater (fork/upstream feeds, cross-source install gating, remote-server update coordination) plus build-configuration wiring; review found two medium issues around source classification of stamped fork versions and redundant network probing on non-primary update checks.
getVersionReleaseSource filed every version whose identifier matched no configured source under the primary. A fork host that predates the releaseSource field therefore read as an outdated upstream build on a single-source client, which offered to replace it with upstream. Only the primary's own shapes (no prerelease, rc, and the reserved dev/perf/local identifiers) are primary now; anything else is null, which the remote coordinator keeps manual and the primary feed no longer offers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review complete. 🟠 1 high · 🟡 3 medium 💬 Inline comments (1)
📍 Outside the diff (3)
Reviewed commit: fa7a5b4 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa7a5b4585
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A background check spends its feed preflight outside the 'checking' state, so the pinned-jump guard could not see it. The jump then ran alongside it: the late preflight repointed the feed the jump had pinned, and if the jump settled with a result status first (a same-version pin, a refused cross-source jump), that status ended the attempt while backgroundCheckLaunchPending outlived it — every later check was deferred as "already in flight" with no stall timer left to clear it. The launch-pending flag now dies with its attempt, the background check begins its attempt before raising it, and pinDefaultReleaseFeed re-validates its attempt after the feed read and reports 'superseded' before touching the feed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
getRunningReleaseSource coerced a version no configured source owns into the primary id, so a multi-source build published releaseSource: 'upstream' over the remote wire and skipped the macOS cross-source gate. It now returns null; the snapshot omits the field, which clients already read as unknown, and the manual-install gate treats null as different from every target. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…obe lazily The readiness pass trusted the title-derived version and discarded the probed manifest's. A tag is now ready only when its manifest names a version of the requested source equal to the advertised one; a mismatch is skipped as a publishing error, and a manifest without a version cannot prove what installs. Untitled non-primary entries were probed before any newer-than-current comparison. A source's stamp is its cut time, so the feed is in version order: an untitled entry is probed only while it sits above the newest entry already known to be no newer than the running build, and the probes stay shared with the readiness pass. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
publish.owner is env-overridable now, and the verifier only checked the repo, so an ORCA_PUBLISH_OWNER left set on a dev-channel job would upload into that fork's organisation. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The picker still used the Windows dev-channel rule, so a fork build on macOS offered "Switch to build" for every upstream row and main refused each click. It now asks requiresManualInstall with the running and target sources and offers the installer download instead, with macOS copy for the signing rule. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Review complete. No blocking issues — approved ✅; 2 nitpicks below. 🧹 Nitpicks (2) — 🟢 2 low
Multi-source release support for the updater (release-source registry, per-source feeds/builds, release-channel settings UI, remote wire additions) with two minor review notes on probe fan-out limits and a preflight result type. Reviewed commit: ae08b21 |
|
Review round 3, head
Checks: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ae08b2169d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Review complete. 🟡 2 medium 💬 Inline comments (2)
🧹 Nitpicks (3) — 🟢 3 low
Reviewed commit: f392925 |
|
Round 4 ( |
A newer Tenki review found issues on this pull request.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f3929255ae
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ch for A multi-source build whose running version no configured source owns fell back to the primary feed on every routine check, so an upstream release could replace the fork. Such a build now settles not-available with a lifecycle breadcrumb naming why; an explicit pinned jump still crosses sources. A pinned jump validated only the caller's version and then trusted whatever latest*.yml sat under the tag. It now takes the check attempt over first, then reads the tag's manifest through the shared readiness verdict and refuses, with an error status, unless the manifest names the resolved version of the target source and its assets answer. Untitled fork-feed entries were probed only above the first titled entry not newer than the running build, which assumed the atom feed is in version order; it is in publish order. Every untitled entry is a candidate again, within the same probe budget and shared probe map. The preflight result type now names 'superseded', and a manifest's asset HEAD probes run through mapWithConcurrency instead of one unbounded Promise.all. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ELI5
A SwapLabs build of Orca currently asks stablyai's release page for updates. Upstream's next release looks "newer", so the build replaces itself with upstream and loses our changes. This PR teaches the app which release source it came from, so it only updates from that source. It also adds the plumbing for installing a build from a different source on purpose; the buttons come in a later PR.
What Changed
stablyai/orcaaddresses: the release list, the download links, the tag pattern and the release-notes link.1.4.197-swaplabs.…counts as a pre-release, so the updater also looked at upstream's RC releases and offered them.rcbuild.ORCA_RELEASE_SOURCES(src/shared/release-sources.ts), lists the sources a build knows about. The build checks it with the same parser the app uses at runtime. When it isn't set, the list is today's single stablyai source and nothing changes.<base>-swaplabs.<YYYYMMDDHHMM>[.<delta>]belongs to theswaplabssource; the base may keep an upstream-rc.N. Such a build counts as a stable build of that source, and SwapLabs builds rank by their timestamp.swaplabs-v…+…), notv<version>.source,targetVersionandautoDownloadparameters. It allows an "older" version and switches back to the running source if the check finds nothing, fails or is dismissed. Per platform:releaseSource. The client never marks a server "outdated" when it's on a different source.config/electron-builder.config.cjsreads the publish owner and repo fromORCA_PUBLISH_OWNER/ORCA_PUBLISH_REPO, defaulting to stablyai. That's what LOCAL: add the swaplabs/main build and publish pipeline #8's packaging check expects.Why
docs/reference/remote-wire-compatibility.md. The remoteupdater.checkRPC is unchanged, since remote servers switching sources is out of scope this round.Linked Issue
None. This is fork-internal; the design is in the fork update-sources plan (Phase 1).
Visual Proof
N/A. It changes updater logic only; the Updates-section buttons come in Phase 3.
Testing
Re-run after rebasing onto
swaplabs/main(683b94227b):pnpm tcpasses (node, web, cli).pnpm teston every touched test file plussrc/main/updater: 31 files passed, 432 tests passed, 14 skipped.src/shared/release-sources.test.tsandsrc/main/updater.cross-source-install.test.ts.verify-dev-channel-packaging.pnpm run check:code-quality:changedpasses.audit:anti-slopfails only on the four existingowner: objectfindings onswaplabs/main, which LOCAL: type the agent-resume owner as a named identity key #9 fixes.No packaged build has been tested in-app yet. That needs #8's pipeline to publish a first SwapLabs release.
AI Disclosure
Written by Claude Fable 5.1 working as an Orca worker; rebased, verified and coordinated by Claude Opus 5.5.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
updater.*calls.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.