@devries-cameron20 / t3code-1 / commits / ad3d60f689
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(desktop): Nightly update checks find the newest nightly past newer preview builds (#35470)

Julius Marminge committed Nov 12, 2026 at 10:59 UTC ad3d60f689b7f15aa85a3c570ca8feff82c82931
2 files changed +66 -4
patches/electron-updater@6.8.9.patch
+63 -1
@@ -1,5 +1,5 @@
1 diff --git a/out/electronHttpExecutor.js b/out/electronHttpExecutor.js
2 -index 0ae9e1126e1dc136977914ef1bfd46709fc9db1b..3932b6607ca41e6663aae001111c9b18594ed37a 100644
2 +index 0ae9e1126e1dc136977914ef1bfd46709fc9db1b..c298ffe7808c421c29e16f1e2ba8510f0cd31142 100644
3 --- a/out/electronHttpExecutor.js
4 +++ b/out/electronHttpExecutor.js
5 @@ -61,6 +61,35 @@ class ElectronHttpExecutor extends builder_util_runtime_1.HttpExecutor {
@@ -38,3 +38,65 @@ index 0ae9e1126e1dc136977914ef1bfd46709fc9db1b..3932b6607ca41e6663aae001111c9b18
38 addRedirectHandlers(request, options, reject, redirectCount, handler) {
39 request.on("redirect", (statusCode, method, redirectUrl) => {
40 // no way to modify request options, abort old and make a new one
41 +diff --git a/out/providers/GitHubProvider.js b/out/providers/GitHubProvider.js
42 +index e768d24e7a957caf32a4b8ca6c68cb50eb5865ee..34a0759220c0cce052285204b2d14fdf0db905e5 100644
43 +--- a/out/providers/GitHubProvider.js
44 ++++ b/out/providers/GitHubProvider.js
45 +@@ -107,6 +107,12 @@ class GitHubProvider extends BaseGitHubProvider {
46 + catch (e) {
47 + throw (0, builder_util_runtime_1.newError)(`Cannot parse releases feed: ${e.stack || e.message},\nXML:\n${feedXml}`, "ERR_UPDATER_INVALID_RELEASE_FEED");
48 + }
49 ++ // The atom feed lists only the 10 newest releases, which other prereleases can fill.
50 ++ let apiRelease = null;
51 ++ if (tag == null && this.updater.allowPrerelease && this.updater.channel) {
52 ++ apiRelease = await this.getLatestChannelRelease(this.updater.channel, cancellationToken);
53 ++ tag = apiRelease === null ? null : apiRelease.tag_name;
54 ++ }
55 + if (tag == null) {
56 + throw (0, builder_util_runtime_1.newError)(`No published versions on GitHub`, "ERR_UPDATER_NO_PUBLISHED_VERSIONS");
57 + }
58 +@@ -144,6 +150,14 @@ class GitHubProvider extends BaseGitHubProvider {
59 + }
60 + }
61 + const result = (0, Provider_1.parseUpdateInfo)(rawData, channelFile, channelFileUrl);
62 ++ if (apiRelease !== null) {
63 ++ if (result.releaseName == null) {
64 ++ result.releaseName = apiRelease.name || apiRelease.tag_name;
65 ++ }
66 ++ if (result.releaseNotes == null) {
67 ++ result.releaseNotes = apiRelease.body || "";
68 ++ }
69 ++ }
70 + if (result.releaseName == null) {
71 + result.releaseName = latestRelease.elementValueOrEmpty("title");
72 + }
73 +@@ -155,6 +169,29 @@ class GitHubProvider extends BaseGitHubProvider {
74 + ...result,
75 + };
76 + }
77 ++ async getLatestChannelRelease(channel, cancellationToken) {
78 ++ for (let page = 1; page <= 5; page++) {
79 ++ const url = new url_1.URL(`${this.computeGithubBasePath(`/repos/${this.options.owner}/${this.options.repo}/releases`)}?per_page=100&page=${page}`, this.baseApiUrl);
80 ++ const rawData = await this.httpRequest(url, { Accept: "application/vnd.github+json" }, cancellationToken);
81 ++ const releases = rawData == null ? [] : JSON.parse(rawData);
82 ++ if (!Array.isArray(releases)) {
83 ++ return null;
84 ++ }
85 ++ for (const release of releases) {
86 ++ if (release == null || release.draft || typeof release.tag_name !== "string" || !semver.valid(release.tag_name)) {
87 ++ continue;
88 ++ }
89 ++ const releaseChannel = semver.prerelease(release.tag_name);
90 ++ if (releaseChannel !== null && releaseChannel[0] === channel) {
91 ++ return release;
92 ++ }
93 ++ }
94 ++ if (releases.length < 100) {
95 ++ return null;
96 ++ }
97 ++ }
98 ++ return null;
99 ++ }
100 + async getLatestTagName(cancellationToken) {
101 + const options = this.options;
102 + // do not use API for GitHub to avoid limit, only for custom host or GitHub Enterprise
pnpm-lock.yaml
+3 -3
@@ -373,7 +373,7 @@ patchedDependencies:
373 alchemy@2.0.0-beta.85: 07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd
374 app-builder-lib@26.16.1: 0fbe9ae51783f5768ebe197d12d1fdb7d477a08c92e5db2f6356bcce62613c53
375 dbus-next@0.10.2: cfff57561b0ee59b5addb3b2e6c6f20906e967507a530ab67e8db8108e520ba4
376 - electron-updater@6.8.9: 2ed21db470f254c5e095a0eb8dabc086c310d180322004bceee7d56e7ce86b84
376 + electron-updater@6.8.9: 71117ae11bf6058893dca8b40ce46025996924b76e534d56a53e04058781071e
377 expo-audio@58.0.11: 93691f7f59edb30a3bb2c23b489e605e7ea35506b1212d4a2ebbd1fd79079483
378 expo-modules-core@58.0.30: f0b0fd100550ed76e5c25b4d13eb7c9ff62825f8f197c53edf7bf447c50c9fb7
379 expo-network@58.0.4: 159c2d760d1cd5102e95df51c20600111e7a72096ef0daea8215d50cae48bd98
@@ -463,7 +463,7 @@ importers:
463 version: 8.2.0
464 electron-updater:
465 specifier: 6.8.9
466 - version: 6.8.9(patch_hash=2ed21db470f254c5e095a0eb8dabc086c310d180322004bceee7d56e7ce86b84)(supports-color@8.1.1)
466 + version: 6.8.9(patch_hash=71117ae11bf6058893dca8b40ce46025996924b76e534d56a53e04058781071e)(supports-color@8.1.1)
467 electron-webauthn:
468 specifier: 'catalog:'
469 version: 1.3.1(typescript@6.0.3)
@@ -19015,7 +19015,7 @@ snapshots:
19015
19016 electron-to-chromium@1.5.430: {}
19017
19018 - electron-updater@6.8.9(patch_hash=2ed21db470f254c5e095a0eb8dabc086c310d180322004bceee7d56e7ce86b84)(supports-color@8.1.1):
19018 + electron-updater@6.8.9(patch_hash=71117ae11bf6058893dca8b40ce46025996924b76e534d56a53e04058781071e)(supports-color@8.1.1):
19019 dependencies:
19020 builder-util-runtime: 9.7.0(supports-color@8.1.1)
19021 fs-extra: 10.1.0