Repository navigation
LOCAL: offer one download per release source in Settings → Updates - #14
Conversation
Multi-source builds show a button per configured release source next to "Check for Updates": "Download <version> (Orca upstream)" and "Download <version> (SwapLabs)", the running source marked with a "Current source" badge. A click runs the existing pinned cross-source install with autoDownload; every button is held while a check or download runs, and the hint names the source each state speaks for. Main owns the per-source verdict through a new desktop-only `updater:listSources` read: the newest stable build per source from the shared list cache, plus how this host can reach it — in-app, a manual installer (cross-source on macOS/Windows), or an externally managed Linux package. Those last two render "Open download page (<label>)" and never start an in-app flow the updater would refuse. List failures come back as data per source, so one unreachable repository never hides the other. A refused jump's `manualInstallUrl` now links from the error hint. Single-source builds never issue the read and keep today's row. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Review complete. 🟡 1 medium 💬 Inline comments (1)
Reviewed commit: e8a7b0d |
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
Here are some automated review suggestions for this pull request.
Reviewed commit: e8a7b0d2a6
ℹ️ 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".
…download-page rows usable while a download is staged Codex P2 on #14: the running source's button compared the listed build to the running version by string equality, so a list that lags the running build (release not yet listed, or withdrawn) left a primary "Download" that would install the older build through the pinned check's allowDowngrade. The button now disables whenever the listed build is at or below the running version, ordered by the shared stamp-then-semver rule (`compareReleaseVersions`, extracted from the picker's sort), and its tooltip says the running build is newer. Other sources are not ordered against the running version: across sources the strings do not compare, and a downgrade there is the point. Tenki medium on #14: a staged in-app download (`downloaded`) disabled every source row, including the manual-installer and externally-managed rows whose only action is opening a release page; those rows stay usable while a download is staged, since a browser tab conflicts with nothing. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Review complete. No issues found — approved ✅. Adds multi-source release selection to the updater (main-process source listing, IPC/preload bridge, shared types, and a settings UI section); no blocking defects found, with only low-confidence polish notes on IPC sender validation and settings button gating. Reviewed commit: 61ec235 |
…e a cross-source download is staged Review finding on #14: once a cross-source pinned download reached `downloaded`, "Check for Updates" was still enabled. Its routine check unpinned the build and overwrote the status with the running source's result ("You're on the latest SwapLabs build"), while the staged AppImage stayed registered with electron-updater's quit handler and was installed on the next quit — a surprise install the UI had just denied. Main now ignores a routine menu check while a pinned build is staged (`isPinnedBuildActive` and `downloaded`): the build is restarted into or left alone. The multi-source row disables "Check for Updates" in that state with a tooltip saying to restart first; the single-source row is unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR adds multi-release-source update checking: the main-process updater can list available builds across configured sources, exposes a new Reviewed commit: 5d3ff58 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d3ff5803b
ℹ️ 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".
Superseded by a newer Tenki approval on this pull request.
Codex P2 on #14: an Option-click local build (macOS) reaches the Updates row as `available` with `source: 'local'`, and on a multi-source build main also stamped the running release source on it. The running source's button then wore the local version as "Download … (SwapLabs)" and the hint called it a SwapLabs release. Main no longer names a release source on local-build statuses, and the multi-source row treats `source: 'local'` as no source's offer: it keeps the generic "Download Update (<version>)" action and the generic hint, while the source buttons stay held as for any other in-flight update. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Review complete. 🟠 1 high 📍 Outside the diff (1)
Adds multi release-source update support (per-source status, cross-source install, manual-install fallback) across the updater main process, IPC bridge, and settings UI. Reviewed commit: ed4b75b |
There was a problem hiding this comment.
💡 Codex Review
In a multi-source package running an older or otherwise unrecognized fork version, runningSourceId is null, so this fallback labels source-less statuses as the primary source. Main deliberately skips routine checks in this case (updater-release-feed.ts:130-143), yet clicking Check for Updates will say “Checking Orca upstream releases...” followed by “You’re on the latest Orca upstream build” even though no upstream feed was queried. Use neutral copy when neither the status nor running version identifies a source.
ℹ️ 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".
…tablyai#32355) (stablyai#36031) * fix(native-chat): keep a huge unbroken paste from freezing the chat A long run with no whitespace ("xxxx…", "0000…", "abab…") wrapped with kerning makes Chromium reshape it at every line, quadratic in run length: 128 KiB stalls 2.4 s, 1 MiB 19 s, 5 MiB never finishes. ProseMirror forces that layout on paste and on each keystroke, so the composer freezes in every terminal-backed chat, including paired servers and WSL. A sent message stalls the transcript the same way: its fold clips the text but still lays it all out (128 KiB: 2.5 s). Runs over 256 characters now render with font-kerning: none, so prose of any length and Shift+Enter lines keep kerning: - composer: inline decorations, updated only for the lines a transaction touches (a keystroke beside 8,000 decorated lines ~1 ms, not ~190 ms) - user messages in the transcript and expanded queued cards: the whole text when it holds such a run Text, drafts and what is sent are unchanged. After: 1 MiB single line 84 ms, 5 MiB 312 ms (keystroke 248 ms), 1 MiB of 4000-char lines 50 ms (was 2.3 s), transcript 128 KiB 80 ms. Worst case left kerned, 256-char runs: 1 MiB 242 ms, 5 MiB 1.2 s, like 1 MiB of short lines (291 ms). Fixes stablyai#32355 Co-authored-by: Manan Chataut <mananchataut@gmail.com> * fix(native-chat): keep kerning on long CJK and Thai paragraphs These scripts have no spaces but Chromium can break between their characters, so a long paragraph is not one unbreakable run. Count ideographs, kana, Hangul and Thai as break opportunities so such text keeps kerning. Co-authored-by: Manan Chataut <mananchataut@gmail.com> * fix(native-chat): rescan only the edited run, and wait out IME compositions Splitting one run inside a block of thousands replaced every decoration in that block, and ProseMirror's removal is quadratic: 1,411 ms for one space in a paragraph of 8,000 long runs. A change now rescans only from the run edge before it to the run edge after it, and removes only the decorations that overlap: ~1 ms for the same edit. Decorations are only mapped while an IME composition is in progress, so the composing text node is not re-rendered. The deferred range is rescanned with the next non-composing change, or on compositionend when none follows. The keystroke-timing test is replaced by deterministic ones: unaffected decorations are reused and the result equals a full scan; a composition defers the rescan and compositionend runs it. Co-authored-by: Manan Chataut <mananchataut@gmail.com> * fix(native-chat): never split a CJK code point, and treat NBSP as glue A supplementary ideograph (U+20000-U+3FFFF) broke a run at its high surrogate only, so the decoration began on the low surrogate and split the pair across elements. Both the run scan and the leftward edge scan now treat the pair as one break. NBSP joins words for Chromium's line breaker (UAX #14 class GL), so an NBSP-joined paste is one unbreakable run and must lose kerning; drop it from the break set. No other non-breaking characters were in it. Drop a composer test whose coverage the decoration reuse test already has. Co-authored-by: Manan Chataut <mananchataut@gmail.com> * fix(native-chat): classify surrogate pairs whole at a rescan's edge Two lone-surrogate edge cases made the incremental rescan disagree with a full scan: - an edit completing a pair at the window start (a lone high surrogate, then a pasted low surrogate and run) began the decoration on the low surrogate; the window now widens past the whole pair - a lone low surrogate after any break counted as a pair end, dropping it from the run; that now requires a preceding high surrogate A seeded fuzz also found inclusive decoration edges mapping across a joined block's boundary, where ProseMirror cannot remove them; the decorations are no longer inclusive. Co-authored-by: Manan Chataut <mananchataut@gmail.com> --------- Co-authored-by: Manan Chataut <mananchataut@gmail.com>
ELI5
Orca can now be built to know about more than one place its updates come from (the official Orca releases and the SwapLabs fork releases). Until now, that knowledge was only reachable through a hidden developer panel. This PR puts it on the normal Settings → General → Updates row: one button per release source, so a person on a fork build can move to the latest official build, or back, with a single click. If the running app cannot install the other side's build itself (macOS and Windows refuse builds signed by someone else, and Linux deb/rpm installs belong to the package manager), the button instead opens the right download page rather than starting something that would fail halfway.
Builds that know only one source see exactly what they see today.
What Changed
Before (fork build): Updates showed "Check for Updates" and a hint. Getting an official Orca build meant Alt-clicking the header to reveal the developer channel picker. On macOS/Windows a refused cross-source jump produced an error with no way to reach the download.
After (fork build), the row is:
[Check for Updates] [Download 1.4.198 (Orca upstream)] [Download 1.4.197-swaplabs.202609251710 (SwapLabs)] [Current source]autoDownload), so the flow ends in the existing "Restart to Update" button.manualInstallUrlmain already sends; deferred from LOCAL: updater release-source registry and sticky source #10).Mechanism. A new desktop-only IPC read,
updater:listSources, returns for every configured source: label, whether it is the running one, the newest stable build (through the same list cache the dev picker uses), the install mode for this host (in-app,manual-installer,externally-managed), and any list error as data. Main computes the install mode from the samerequiresManualInstalland externally-managed checks it refuses by, so the renderer only presents. The renderer gained a small hook (use-release-source-statuses.ts) with a request-id guard so an overlapping refresh cannot publish a stale list, and aReleaseSourceUpdateControls.tsxwith the buttons, hint, and error rendering.GeneralUpdateSettingsSection.tsxkeeps the single-source branch as today's markup and never issues the read for single-source builds.Nothing on the runtime (remote-server) wire changes; the web client stub returns an empty list.
Why
The whole point of the fork update-source work is that a fork user should not need a developer panel to switch sources, and an upstream user should notice nothing.
Alternatives considered:
listBuildsper source (existing IPC). The renderer cannot know the install is a deb/rpm the package manager owns, and it would re-derive the signature rule main enforces. Putting the verdict in main means the button can never promise an action main refuses a moment later.Linked Issue
Follow-up to #10 (updater core, Phases 1–2) and #8 (build pipeline) of the fork update-source plan; there is no separate tracking issue for this fork-only phase.
Visual Proof
Screenshots are attached separately (images are not committed). Captured from the hidden e2e renderer on Linux, dark and light, at
~/phase3-screenshots/on minidev-alex1:before-idle-{dark,light}.png,before-available-{dark,light}.png,before-downloading-{dark,light}.png,before-settings-page-{dark,light}.pngafter-idle-{dark,light}.png,after-downloading-{dark,light}.png,after-error-manual-install-{dark,light}.png,after-settings-page-{dark,light}.pngTesting
Linux (minidev, Xvfb). Not run on macOS or Windows; the platform-specific install modes are covered by unit tests through the platform spy.
pnpm tc— passpnpm test src/main/updater src/shared src/main/window src/preload src/renderer/src/components/settings/GeneralUpdateSettingsSection src/renderer/src/components/settings/ReleaseChannelSection.test.tsx src/renderer/src/i18n— 941 files, 10512 tests passpnpm run check:code-quality:changed -- refs/remotes/swaplabs/swaplabs/main— passverify:localization-catalog,verify:localization-runtime-catalog,verify:localization-extraction,verify:localization-coverage— pass (sync:localization-runtime-catalogproduced no change)pnpm run audit:anti-slop— passpnpm run verify:rpc-params-catalog— passtests/e2e/update-sources-buttons.spec.ts(new) passes on both themes against a bundle built withORCA_RELEASE_SOURCESset (SKIP_BUILD=1 ORCA_BACKGROUND_LAUNCH=1 npx playwright test tests/e2e/update-sources-buttons.spec.ts --config tests/playwright.config.ts --project=electron-headless). It skips itself on a single-source build.New/extended tests:
GeneralUpdateSettingsSection.test.tsx: single-source build renders only today's row and never lists sources; error hint linksmanualInstallUrl.GeneralUpdateSettingsSection.multi-source.test.tsx: one button per source with the running source marked; pinned auto-download params; running source's newer build as primary action; manual-installer and externally-managed swaps; disabled while checking/downloading/downloaded; routine "available" routed through the running source's button; per-source list error; refresh on check.updater.list-sources.test.ts: per-source rows, macOS manual-installer, externally managed, per-source failure as data, cache sharing andforce.updater-list-sources-ipc.test.ts: handler registration andforcecoercion.I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Claude Fable 5.1 (Claude Code) implemented this under coordinator review.
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
requiresManualInstall; making them download-only is the Phase 4 Squirrel check (D4).gap-2class (the design-system gate forbids restylingButton); thesmsize supplies the icon gap.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.