Skip to content

LOCAL: updater release-source registry and sticky source - #10

Merged
kiwidream merged 12 commits into
swaplabs/mainfrom
fork-update-sources/updater-core
Sep 25, 2026
Merged

kiwidream merged 12 commits into
swaplabs/mainfrom
fork-update-sources/updater-core

Conversation

@kiwidream

@kiwidream kiwidream commented Sep 24, 2026 •

Copy link
Copy Markdown
Files Added Deleted Net
Test 17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2464 $\color{#cf222e}{\Huge{\mathbf{−}}}$​21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2443
Prod 35 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1463 $\color{#cf222e}{\Huge{\mathbf{−}}}$​322 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1141

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

  • Before:
    • Every update check used hard-coded stablyai/orca addresses: the release list, the download links, the tag pattern and the release-notes link.
    • A fork version such as 1.4.197-swaplabs.… counts as a pre-release, so the updater also looked at upstream's RC releases and offered them.
    • The version was also classified as an rc build.
  • After:
    • Where the list of sources comes from: a new build-time setting, 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.
    • How a build knows its own source: from its version. <base>-swaplabs.<YYYYMMDDHHMM>[.<delta>] belongs to the swaplabs source; 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.
    • Updates stay on that source: background checks, re-checks on wake or focus, update prompts and the menu's "Check for updates" all read the running source's release list and download addresses. If a non-upstream source has nothing newer, the check reports "no update"; it does not fall back to upstream's latest-release link.
    • Finding fork releases: they're matched by the version in the release title or update manifest, because the tags use the orca-fork-ops form (swaplabs-v…+…), not v<version>.
    • Installing from another source on purpose: the existing install-a-specific-build path now works across sources over IPC, with new optional source, targetVersion and autoDownload parameters. It allows an "older" version and switches back to the running source if the check finds nothing, fails or is dismissed. Per platform:
      • macOS refuses it and returns the release page link, because of the signing mismatch.
      • Linux AppImage installs it in-app.
      • deb and rpm installs stay managed by the system package manager.
      • Windows is unchanged.
    • Remote servers: update statuses and the remote-server snapshot carry an optional releaseSource. The client never marks a server "outdated" when it's on a different source.
    • Publish target: config/electron-builder.config.cjs reads the publish owner and repo from ORCA_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

  • Why build-time, not a runtime setting: each build has exactly one home, known when it's built.
  • Why derive the source from the version: the version is already baked into every build and shows in bug reports.
  • Why reuse the install-a-specific-build path: it already handles installing an older version and restoring the previous state, so the cross-source install needed no parallel updater logic.
  • Wire compatibility: only optional fields were added, per docs/reference/remote-wire-compatibility.md. The remote updater.check RPC 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

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Re-run after rebasing onto swaplabs/main (683b94227b):

  • pnpm tc passes (node, web, cli).
  • pnpm test on every touched test file plus src/main/updater: 31 files passed, 432 tests passed, 14 skipped.
    • New tests: src/shared/release-sources.test.ts and src/main/updater.cross-source-install.test.ts.
    • Extended tests: release-channel, prerelease-feed, release-builds, build-cache, changelog, startup-scheduling, nudge-campaign, the remote-server update coordinator, and verify-dev-channel-packaging.
  • pnpm run check:code-quality:changed passes.
  • audit:anti-slop fails only on the four existing owner: object findings on swaplabs/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

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@luxor-code-review

luxor-code-review Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Review complete. 🟡 2 medium

📍 Outside the diff (2)

  • 🟡 Fork builds cannot pin any build from the dev picker — The renderer picker was not updated for the new cross-source contract: handleSwitchTo sends only {channel, targetTag} (src/renderer/src/components/settings/ReleaseChannelSection.tsx:175) and loadBuilds never passes source (line 127), while main now resolves a missing target.source to the running build's source (src/main/updater/updater-build-selection.ts:114-116).
  • 🟡 Version-stamp inference maps unclassifiable hosts to upstream — When a host omits releaseSource (old wire, or the single-source gate at src/main/updater/updater-remote-status.ts:58-59), the coordinator infers its source from the version string, and getVersionReleaseSource returns the primary id for any version whose stamp matches no configured source (src/shared/release-sources.ts:221-225, applied at src/renderer/src/runtime/remote-server-update-coordinator.ts:125-134).
🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Source matching is case-sensitive while identity checks are not — getVersionReleaseSource compares the version's stamp identifier to prereleaseIdentifier case-sensitively (src/shared/release-sources.ts:221-224), and the stamp regex built by getReleaseSourceVersionPattern is case-sensitive too, while the same module treats identifiers as case-insensitive identity: assertUnique lowercases (line 103) and the reserved check lowercases (line 92), and PRERELEASE_IDENTIFIER_PATTERN permits uppercase.

Adds multi-release-source (fork vs upstream) support to the updater: source-tagged builds, cross-source pinning gates, a remote-wire releaseSource field, and build-config defines for fork identity.

Reviewed commit: 2eace6e

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T17:04:24.118137Z 1f2c5cf New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

https://github.com/SwapLabsInc/orca/blob/2eace6e6b8710de44be0a52304c5b67dc00460c2/src/main/updater-prerelease-feed.ts#L212-L214
P1 Badge 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".

Comment thread src/main/updater-release-build-cache.ts Resolved
kiwidream and others added 2 commits September 25, 2026 09:48
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>
@kiwidream
kiwidream force-pushed the fork-update-sources/updater-core branch from 2eace6e to 2e9ccc8 Compare September 25, 2026 13:50
@luxor-code-review

luxor-code-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review complete. 🟡 2 medium

💬 Inline comments (2)

Reviewed commit: 2e9ccc8

@kiwidream

Copy link
Copy Markdown
Author

Review round 1 (head 2e9ccc8fc9, rebased onto the current swaplabs/main f614d7645a):

  • Codex P1: rank source updates by build timestamp. Not changing this.
    • Fork builds are only cut from swaplabs/main, and their base is upstream main's package.json version, which only moves forward.
    • An rc base sorts correctly too: 1.4.198-rc.1.swaplabs.X < 1.4.198-swaplabs.Y.
    • So semver order and timestamp order agree for this source.
    • electron-updater itself decides by semver when it installs. Ranking by timestamp in the feed would offer builds it then refuses, unless every routine check allowed downgrades, and that would weaken the protection against installing older builds.
    • The "base versions can move backwards" comment in release-channel.ts is about upstream's ad-hoc branch builds, not this source.
  • Tenki medium: fork builds can't pin anything from the dev picker. Fixed, the same issue as Codex P2. An omitted source now resolves to the primary source for both listing and installing.
  • Tenki medium: unrecognised version stamps are treated as upstream. Kept as intended.
    • getVersionReleaseSource classifies by the source label after the base version, whatever the stamp format. That includes fork builds cut before the timestamp scheme, like 1.4.204-swaplabs.resume.1.
    • Only a label this build has no configured source for falls back to primary, and upstream's own dev and perf labels are meant to land there.
    • Hosts that report releaseSource (every build with more than one source) aren't inferred at all.
  • Tenki nit: case-sensitive source matching. Fixed. Identifier comparison and the timestamp pattern are now case-insensitive, with a test.

Checks: pnpm tc passes, and pnpm test across src/shared, the updater suites and the coordinator gives 9,686 passed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

const newestNewerIndex = candidates.findIndex(
({ version }) => compareVersions(version, currentVersion) > 0
)

P1 Badge Compare source builds by their timestamp

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".

@luxor-code-review luxor-code-review Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/main/updater-prerelease-feed.ts Resolved
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>
@luxor-code-review

luxor-code-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review complete. 🟠 1 high · 🟡 3 medium

💬 Inline comments (1)

📍 Outside the diff (3)

  • 🟠 Pinned jump during background preflight wedges update checks (updater-build-selection.ts:170–175) — A pinned jump can start while a background check is still inside its async pinDefaultReleaseFeed() preflight: checkForPinnedBuild never consults backgroundCheckLaunchPending, and its guard at src/main/updater/updater-build-selection.ts:170 only sees the pre-checking status.
  • 🟡 Dev-channel verifier ignores overridden publish owner (verify-dev-channel-packaging.mjs:39–44) — collectDevChannelPackagingProblems validates publish.repo, releaseType, version, and Windows signature fields, but never checks publish.owner (config/scripts/verify-dev-channel-packaging.mjs:39-77).
  • 🟡 Picker still gates with the old manual-install rule (ReleaseChannelSection.tsx:192–196) — The dev picker's needsManualInstall gate still calls requiresManualDevChannelInstall (src/renderer/src/components/settings/ReleaseChannelSection.tsx:192-196), but this PR's main-process path refuses macOS cross-source jumps through the new requiresManualInstall (src/shared/release-channel.ts:155-156).

Reviewed commit: fa7a5b4

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/main/updater-prerelease-feed.ts Resolved

@luxor-code-review luxor-code-review Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expand to see previous review

Implements multi-source (fork) release support across the updater, feed routing, release-source registry, remote wire types, and packaging identity — 4 issues found, including a high-severity state-machine wedge.

Comment thread src/main/updater/updater-status.ts Resolved
kiwidream and others added 5 commits September 25, 2026 10:45
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>
@luxor-code-review

luxor-code-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 2 nitpicks below.

🧹 Nitpicks (2) — 🟢 2 low
  • 🟢 Cap per-manifest asset HEAD fan-out (updater-release-asset-readiness.ts:167) — probeReleaseManifest HEAD-probes every asset name the manifest lists in a single Promise.all with no cap (src/main/updater-release-asset-readiness.ts:167-169), and up to six manifests are probed simultaneously per check.
  • 🟢 Widen ReleaseFeedPreflightResult with superseded (updater-release-feed.ts:124) — pinDefaultReleaseFeed now returns 'ready' | 'not-available' | 'superseded' (src/main/updater/updater-release-feed.ts:124), but the exported ReleaseFeedPreflightResult type still names only 'ready' | 'not-available'.

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

@kiwidream

Copy link
Copy Markdown
Author

Review round 3, head ae08b2169d, all findings fixed:

  • Tenki high, a specific-build install during a background check's feed read left checks stuck: fixed in 7e5027f94b. The race is in the base-branch updater code too, and this PR's longer fork preflight made it likelier. The "background check pending" flag now ends with its attempt, and a preflight that has been taken over returns superseded before touching the feed. Two new tests in updater.check-preflight.test.ts fail on the old code.
  • Tenki medium, a publish owner override passed the dev-channel packaging check: fixed in 2179e93706. verify-dev-channel-packaging now checks publish.owner.
  • Tenki medium, the picker used the old manual-install rule: fixed in ae08b2169d.
  • Codex P1: manifest version verified before a tag is ready.
  • Codex P2: addressed in the picker; the Updates section is Phase 3.
  • Tenki medium ×2 (unknown running source; manifest probes before the newer check): fixed; replies are inline.

Checks: pnpm tc passes. 11,004 tests pass across src/shared, the updater, remote-server update and settings suites, plus the dev-channel packaging tests. The changed-code quality check passes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/main/updater-prerelease-feed.ts Resolved
luxor-code-review[bot]
luxor-code-review Bot previously approved these changes Sep 25, 2026
@luxor-code-review

luxor-code-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review complete. 🟡 2 medium

💬 Inline comments (2)

🧹 Nitpicks (3) — 🟢 3 low
  • 🟢 Repo-mismatch error blames rebase, not env override (verify-dev-channel-packaging.mjs:50) — When ORCA_PUBLISH_REPO is set on a dev-channel job it wins over devChannelRepo (config/electron-builder.config.cjs:677), but the verify failure tells the operator the checked-out ref's config is outdated and to rebase (config/scripts/verify-dev-channel-packaging.mjs:50-55), never mentioning the env var that the owner branch names explicitly at line 46.
  • 🟢 source option doc contradicts pinned-jump resolution (update-status-types.ts:28) — The UpdateCheckOptions.source comment says an absent source means the running build's own source (src/shared/update-status-types.ts:28-30), but checkForPinnedBuild deliberately resolves an omitted source to PRIMARY_RELEASE_SOURCE (src/main/updater/updater-build-selection.ts:141-143), so a future caller trusting the type comment sends cross-source jumps to the wrong repo on multi-source builds.
  • 🟢 Stable/RC releases lack the publish-identity leak check (electron-builder.config.cjs:676) — The new ORCA_PUBLISH_OWNER/ORCA_PUBLISH_REPO overrides (config/electron-builder.config.cjs:676-677) are verified only on dev-channel builds (config/scripts/verify-dev-channel-packaging.mjs); no stable/RC counterpart exists.

Reviewed commit: f392925

@kiwidream

Copy link
Copy Markdown
Author

Round 4 (f3929255ae) fixes all five findings: Codex P1 ×2 and P2 are answered inline. Tenki's two nitpicks: ReleaseFeedPreflightResult now includes superseded, and asset HEAD probes go through the existing mapWithConcurrency capped at 4 (new updater-release-asset-readiness.test.ts). All 8 new tests fail on the old code. Checks: pnpm tc passes, 11,012 tests pass, and the changed-code quality check passes.

@luxor-code-review luxor-code-review Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expand to see previous review

This PR adds multi-release-source support (fork/secondary feeds) to the auto-updater across packaging, feeds, status RPC, and the settings UI.

@luxor-code-review
luxor-code-review Bot dismissed their stale review September 25, 2026 15:28

A newer Tenki review found issues on this pull request.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/main/updater-prerelease-feed.ts Resolved
…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>
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