Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(spaces): Stable / Nightly update channel; betas move to Nightly (CUA-3503) (#6548)
cua-agents[bot]53dd9d868fc1
diff --git a/apps/cua-spaces-desktop/README.md b/apps/cua-spaces-desktop/README.mdindex 978293081d..cb416ed15a 100644--- a/apps/cua-spaces-desktop/README.md+++ b/apps/cua-spaces-desktop/README.md@@ -712,14 +712,17 @@ time, default `trycua/cua`, baked into `app-update.yml`). GitHub's ownprovider does not fit this monorepo: it needs semver tags and reads therepository-wide latest release.-Electron builds ship as Cua Spaces prereleases only (`X.Y.Z-suffix`, built-and published by `cd-cua-spaces.yml`, see "Releases" below), so the only-feed is the beta channel (`beta.yml`, `beta-mac.yml`, `beta-linux*.yml`).-The updater is **off by default**: set `CUA_SPACES_AUTO_UPDATE=1` or put-`"autoUpdate": true` in `settings.json` to opt in. A build follows the-channel it was cut for; `"updateChannel": "beta"` or `"stable"` in-`settings.json` overrides it. The stable channel is served only after the-Sparkle cutover (`STABLE_FEED` in `src/updater.ts`,+Two channels (Settings, Advanced, Updates): Stable reads `latest.yml` and+`latest-linux*.yml` on the rolling `cua-spaces-latest` release; Nightly reads+`nightly.yml` and `nightly-linux*.yml` on the rolling `cua-spaces-nightly`+release (`nightly-cua-spaces.yml` builds main every night). The updater sets+the chosen channel's feed before each check, whatever URL the build baked into+app-update.yml. A build follows the channel it was cut for (`X.Y.Z-suffix`:+Nightly); `"updateChannel": "nightly"` or `"stable"` in `settings.json`+overrides it, and a saved `"beta"` (there are no betas any more) is Nightly.+Both channels are served on Windows and Linux; on macOS the Mac app is the+Swift app, and this app's Stable feed waits for the Sparkle cutover+(`STABLE_FEED` in `src/updater.ts`,[docs/sparkle-cutover.md](docs/sparkle-cutover.md)). Nothing downgrades.## Releasesdiff --git a/apps/cua-spaces-desktop/src/bridge/host-parts.ts b/apps/cua-spaces-desktop/src/bridge/host-parts.tsindex cd83e14fe0..9dc4bedad4 100644--- a/apps/cua-spaces-desktop/src/bridge/host-parts.ts+++ b/apps/cua-spaces-desktop/src/bridge/host-parts.ts@@ -67,7 +67,7 @@ export function updatesModel(ctx: BridgeContext): UpdatesModel {model.native,system?.updater ?? null,{ version: ctx.version, build: ctx.build ?? "", os: osLine(platform, undefined, undefined, systemVersion(platform)) },- system?.updater?.channel === "beta" ? model.native.AppUpdateChannel.Beta : system?.updater ? model.native.AppUpdateChannel.Stable : model.settings.updateChannel,+ system?.updater?.channel === "nightly" ? model.native.AppUpdateChannel.Nightly : system?.updater ? model.native.AppUpdateChannel.Stable : model.settings.updateChannel,(channel) => {model.settings = { ...model.settings, updateChannel: channel };model.saveSettings();diff --git a/apps/cua-spaces-desktop/src/migrate-swift.ts b/apps/cua-spaces-desktop/src/migrate-swift.tsindex d094b51c32..dac6515c0c 100644--- a/apps/cua-spaces-desktop/src/migrate-swift.ts+++ b/apps/cua-spaces-desktop/src/migrate-swift.ts@@ -31,6 +31,7 @@import { copyFileSync, existsSync, mkdirSync, readFileSync } from "node:fs";import * as path from "node:path";import type { Settings, SwiftMigration, WindowBounds } from "./settings";+import { readChannel } from "./update-prefs";export const SWIFT_BUNDLE_ID = "com.trycua.spaces.macos";export const SWIFT_FRAME_KEY = "NSWindow Frame CuaSpacesWebUI";@@ -174,9 +175,8 @@ export function migrateFromSwiftApp(input: MigrationInput): Partial<Settings> |try {const core = JSON.parse(readFileSync(path.join(from, "settings.json"), "utf8")) as { updateChannel?: unknown; lastSeenVersion?: unknown };if (typeof core.lastSeenVersion === "string") marker.from = core.lastSeenVersion;- if ((core.updateChannel === "beta" || core.updateChannel === "stable") && !input.settings.updateChannel) {- patch.updateChannel = core.updateChannel;- }+ const channel = readChannel(core.updateChannel);+ if (channel && !input.settings.updateChannel) patch.updateChannel = channel;} catch {// No Swift settings, or damaged: the app core would have used its defaults too.}diff --git a/apps/cua-spaces-desktop/src/model/updates.ts b/apps/cua-spaces-desktop/src/model/updates.tsindex ce8a028eb8..6a609170df 100644--- a/apps/cua-spaces-desktop/src/model/updates.ts+++ b/apps/cua-spaces-desktop/src/model/updates.ts@@ -21,8 +21,8 @@ export interface UpdaterDriving {readonly lastCheck: number | null;/** Check Now can run (false while a check runs). */readonly canCheck: boolean;- /** The channel it installs from (`stable` or `beta`). */- channel: "stable" | "beta";+ /** The channel it installs from (`stable` or `nightly`). */+ channel: "stable" | "nightly";/** Called after any of the above changes. */onChange: (() => void) | null;/** Told each step: `found`, `not_found`, `downloaded`, `installed` or `failed` (fixed words). */@@ -41,7 +41,7 @@ export class FixtureUpdater implements UpdaterDriving {automaticallyInstalls = false;lastCheck: number | null;canCheck = true;- channel: "stable" | "beta" = "stable";+ channel: "stable" | "nightly" = "stable";onChange: (() => void) | null = null;onUpdateEvent: ((event: string) => void) | null = null;checks = 0;@@ -148,8 +148,8 @@ export class UpdatesModel {this.updater?.installNow();}- get channelWord(): "stable" | "beta" {- return this.channel === this.native.AppUpdateChannel.Beta ? "beta" : "stable";+ get channelWord(): "stable" | "nightly" {+ return this.channel === this.native.AppUpdateChannel.Nightly ? "nightly" : "stable";}private record(action: string): void {@@ -191,10 +191,15 @@ export class UpdatesModel {}choose(id: string): void {- this.channel = id === "beta" ? this.native.AppUpdateChannel.Beta : this.native.AppUpdateChannel.Stable;+ // `beta`, from a page before Nightly, is Nightly now.+ const next = id === "nightly" || id === "beta" ? this.native.AppUpdateChannel.Nightly : this.native.AppUpdateChannel.Stable;+ const switched = next !== this.channel;+ this.channel = next;if (this.updater) this.updater.channel = this.channelWord;this.saveChannel(this.channel);this.changed();+ // A new channel is checked at once; what it finds downloads and is offered as "Restart to update".+ if (switched && this.updater) this.checkNow();}checkNow(): void {diff --git a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.ts b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.tsindex 87e11ddeaa..2be5f706ed 100644--- a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.ts+++ b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.ts@@ -392,6 +392,11 @@ const DEFINITIONS = {ret: FfiType.RustBuffer,hasRustCallStatus: true,},+ "uniffi_cua_spaces_ffi_fn_func_app_about_feed_url": {+ args: [FfiType.RustBuffer, FfiType.RustBuffer],+ ret: FfiType.RustBuffer,+ hasRustCallStatus: true,+ },"uniffi_cua_spaces_ffi_fn_func_app_about_input_from_json": {args: [FfiType.RustBuffer],ret: FfiType.RustBuffer,@@ -2322,6 +2327,11 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cua_spaces_ffi_checksum_func_app_about_feed_url": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cua_spaces_ffi_checksum_func_app_about_input_from_json": {args: [],ret: FfiType.UInt16,@@ -4444,6 +4454,7 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_fn_init_callback_vtable_teleportwindowdraglistener(vtable: UniffiVTableCallbackInterfaceCuaSpacesFfiTeleportWindowDragListener): void;uniffi_cua_spaces_ffi_fn_func_app_about_after_launch(input: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_about_allowed_channels(channel: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;+ uniffi_cua_spaces_ffi_fn_func_app_about_feed_url(channel: Uint8Array, stableFeed: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_about_input_from_json(json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_about_refresh_notice(report: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_about_restart_daemon(check: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;@@ -4830,6 +4841,7 @@ interface NativeModuleInterface {ffi_cua_spaces_ffi_uniffi_contract_version(): number;uniffi_cua_spaces_ffi_checksum_func_app_about_after_launch(): number;uniffi_cua_spaces_ffi_checksum_func_app_about_allowed_channels(): number;+ uniffi_cua_spaces_ffi_checksum_func_app_about_feed_url(): number;uniffi_cua_spaces_ffi_checksum_func_app_about_input_from_json(): number;uniffi_cua_spaces_ffi_checksum_func_app_about_refresh_notice(): number;uniffi_cua_spaces_ffi_checksum_func_app_about_restart_daemon(): number;diff --git a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.ts b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.tsindex b3d172b1d1..4bab5d2add 100644--- a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.ts+++ b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.ts@@ -67,6 +67,29 @@ export function appAboutAllowedChannels(channel: AppUpdateChannel): Array<string));}+/**+ * The appcast a Sparkle updater on `channel` reads, from the app's own+ * `SUFeedURL` (`stable_feed`): the nightly appcast for Nightly; `None`+ * keeps `SUFeedURL` (for Nightly: this feed has no nightly next to it).+ */+export function appAboutFeedUrl(channel: AppUpdateChannel, stableFeed: string): string | undefined {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterOptionalString.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().uniffi_cua_spaces_ffi_fn_func_app_about_feed_url(+ FfiConverterTypeAppUpdateChannel.lower(channel, nativeModule().rustbuffer_alloc),+ FfiConverterString.lower(stableFeed, nativeModule().rustbuffer_alloc),+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+/*** The About input from JSON (parity flows).*/@@ -4480,7 +4503,7 @@ export function appSettingsDefaults(): AppSettings {/*** The update channel of an install's first launch, from the file's- * `channel`: Beta for a prerelease, else unchanged.+ * `channel`: Nightly for a prerelease, else unchanged.*/export function appSettingsFirstLaunchChannel(channel: AppUpdateChannel, version: string): AppUpdateChannel {return ((__rb: Uint8Array) => {@@ -7253,9 +7276,12 @@ export enum AppUpdateChannel {*/Stable = "stable",/**- * Releases and prereleases (`X.Y.Z-suffix`).+ * A build of main every night (`X.Y.Z-nightly.YYYYMMDD[+sha]`), from+ * its own feed. It replaced the Beta channel, so `beta` (an older+ * build's word, and what the settings file still stores, see+ * [`crate::settings::save`]) reads as Nightly.*/- Beta = "beta"+ Nightly = "nightly"}const FfiConverterTypeAppUpdateChannel = (() => {@@ -7265,14 +7291,14 @@ const FfiConverterTypeAppUpdateChannel = (() => {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {case 1: return AppUpdateChannel.Stable;- case 2: return AppUpdateChannel.Beta;+ case 2: return AppUpdateChannel.Nightly;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {case AppUpdateChannel.Stable: return ordinalConverter.write(1, into);- case AppUpdateChannel.Beta: return ordinalConverter.write(2, into);+ case AppUpdateChannel.Nightly: return ordinalConverter.write(2, into);}}allocationSize(value: TypeName): number {@@ -7575,17 +7601,32 @@ export type AppAboutUpdates = {*/autoInstallEnabled: boolean,/**- * "Update to:".+ * "Updates".*/channelLabel: string,/**- * Stable, Beta.+ * Stable, Nightly.*/channels: Array<AppSettingsOption>,/**- * The channel picker's tooltip.+ * What the chosen channel gets, in a line.*/channelHelp: string,+ /**+ * A word about the version running on this channel: a nightly build+ * back on Stable stays until the next stable release passes it;+ * `None`: nothing to say.+ */+ channelNote?: string,+ /**+ * "Download Stable": the way back to Stable right now+ * ([`DOWNLOAD_URL`]); `None` when no way back is needed.+ */+ downloadLabel?: string,+ /**+ * Where [`AboutUpdates::download_label`] goes.+ */+ downloadUrl?: string,/*** "Check Now" (or "Checking…").*/@@ -7629,6 +7670,9 @@ const FfiConverterTypeAppAboutUpdates = (() => {channelLabel: FfiConverterString.read(from),channels: FfiConverterSequenceTypeAppSettingsOption.read(from),channelHelp: FfiConverterString.read(from),+ channelNote: FfiConverterOptionalString.read(from),+ downloadLabel: FfiConverterOptionalString.read(from),+ downloadUrl: FfiConverterOptionalString.read(from),checkLabel: FfiConverterString.read(from),checkEnabled: FfiConverterBool.read(from),lastCheck: FfiConverterString.read(from)@@ -7643,6 +7687,9 @@ const FfiConverterTypeAppAboutUpdates = (() => {FfiConverterString.write(value.channelLabel, into);FfiConverterSequenceTypeAppSettingsOption.write(value.channels, into);FfiConverterString.write(value.channelHelp, into);+ FfiConverterOptionalString.write(value.channelNote, into);+ FfiConverterOptionalString.write(value.downloadLabel, into);+ FfiConverterOptionalString.write(value.downloadUrl, into);FfiConverterString.write(value.checkLabel, into);FfiConverterBool.write(value.checkEnabled, into);FfiConverterString.write(value.lastCheck, into);@@ -7656,6 +7703,9 @@ const FfiConverterTypeAppAboutUpdates = (() => {FfiConverterString.allocationSize(value.channelLabel) +FfiConverterSequenceTypeAppSettingsOption.allocationSize(value.channels) +FfiConverterString.allocationSize(value.channelHelp) ++ FfiConverterOptionalString.allocationSize(value.channelNote) ++ FfiConverterOptionalString.allocationSize(value.downloadLabel) ++ FfiConverterOptionalString.allocationSize(value.downloadUrl) +FfiConverterString.allocationSize(value.checkLabel) +FfiConverterBool.allocationSize(value.checkEnabled) +FfiConverterString.allocationSize(value.lastCheck);@@ -71222,6 +71272,9 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_about_allowed_channels() !== 59781) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_about_allowed_channels");}+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_about_feed_url() !== 25239) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_about_feed_url");+ }if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_about_input_from_json() !== 570) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_about_input_from_json");}@@ -71858,7 +71911,7 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_settings_defaults() !== 47096) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_settings_defaults");}- if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_settings_first_launch_channel() !== 11279) {+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_settings_first_launch_channel() !== 29109) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_settings_first_launch_channel");}if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_settings_input_from_json() !== 15437) {diff --git a/apps/cua-spaces-desktop/src/settings.ts b/apps/cua-spaces-desktop/src/settings.tsindex a615c22c9a..1784b1cdb1 100644--- a/apps/cua-spaces-desktop/src/settings.ts+++ b/apps/cua-spaces-desktop/src/settings.ts@@ -37,8 +37,8 @@ export interface Settings {autoInstall?: boolean;/** The last update check (ms). */lastUpdateCheck?: number;- /** Update channel; defaults to the one the build was cut for (see updater.ts). */- updateChannel?: "stable" | "beta";+ /** Update channel; defaults to the one the build was cut for (see updater.ts). `beta`, from before Nightly, reads as `nightly` (update-prefs.ts). */+ updateChannel?: "stable" | "nightly" | "beta";/** The channel was picked in this app (Settings → About), not carried over from the Swift app. */updateChannelChosen?: boolean;/** Where the last picture-in-picture panel was left (pip.ts). */diff --git a/apps/cua-spaces-desktop/src/update-prefs.ts b/apps/cua-spaces-desktop/src/update-prefs.tsindex 7bdf5508d9..70b43cfda3 100644--- a/apps/cua-spaces-desktop/src/update-prefs.ts+++ b/apps/cua-spaces-desktop/src/update-prefs.ts@@ -12,7 +12,15 @@// nothing restarts without that click.import type { Settings } from "./settings";-export type UpdateChannel = "stable" | "beta";+/** Stable releases, or a build of main every night. Beta is gone: a saved `beta` is Nightly. */+export type UpdateChannel = "stable" | "nightly";++/** A saved channel word (`beta` from before Nightly) as a channel; anything else: none. */+export function readChannel(word: unknown): UpdateChannel | undefined {+ if (word === "stable") return "stable";+ if (word === "nightly" || word === "beta") return "nightly";+ return undefined;+}const movedFromSwift = (s: Settings) => s.swiftMigration?.found === true;@@ -40,7 +48,7 @@ export function autoInstallPref(s: Settings): boolean {* updates at all, so the build's own channel is used instead.*/export function channelPref(s: Settings, build: UpdateChannel, served: (channel: UpdateChannel) => boolean): UpdateChannel {- const saved = s.updateChannel;+ const saved = readChannel(s.updateChannel);if (!saved) return build;if (s.updateChannelChosen || served(saved)) return saved;return build;diff --git a/apps/cua-spaces-desktop/src/update-state.ts b/apps/cua-spaces-desktop/src/update-state.tsindex b301dab85a..f698412551 100644--- a/apps/cua-spaces-desktop/src/update-state.ts+++ b/apps/cua-spaces-desktop/src/update-state.ts@@ -32,9 +32,11 @@ export const UPDATE_POLL_MS = 4 * 60 * 60 * 1000;const RELEASES = "https://github.com/trycua/cua/releases/tag";-/** The release notes for a version: the repository's `cua-spaces-v<version>` tag. */+/** The release notes for a version: the repository's `cua-spaces-v<version>` tag; a nightly's are the rolling nightly release's. */export function releaseNotesUrl(version: string): string {- return `${RELEASES}/cua-spaces-v${encodeURIComponent(version.trim())}`;+ const v = version.trim();+ if (/^\d+\.\d+\.\d+-nightly(\.|$|\+)/.test(v)) return `${RELEASES}/cua-spaces-nightly`;+ return `${RELEASES}/cua-spaces-v${encodeURIComponent(v)}`;}export const initialUpdateState = (currentVersion: string): UpdateStateValue => ({diff --git a/apps/cua-spaces-desktop/src/updater.ts b/apps/cua-spaces-desktop/src/updater.tsindex b1b2b2bbcf..86fc9f31fb 100644--- a/apps/cua-spaces-desktop/src/updater.ts+++ b/apps/cua-spaces-desktop/src/updater.ts@@ -15,14 +15,20 @@// "Update ready" with "Restart to update" and a link to the release notes.// Nothing restarts without that click (`installNow`); a downloaded update is// also applied when the app next quits unless "install automatically" is-// off. The state machine is update-state.ts. The beta channel (prereleases, `beta*.yml`) is-// served everywhere. The stable channel (`latest*.yml`) is served on Windows-// and Linux, where stable releases ship the Electron app. On macOS stable-// releases still ship the Swift app, updated by Sparkle; Check Now on Stable-// says so until the Sparkle cutover (docs/sparkle-cutover.md) publishes-// `latest-mac.yml` and STABLE_FEED turns on.+// off. The state machine is update-state.ts.+//+// Channels: Stable reads `latest*.yml` on the rolling `cua-spaces-latest`+// release; Nightly reads `nightly*.yml` on the rolling `cua-spaces-nightly`+// release (nightly-cua-spaces.yml builds main every night). The feed is set+// for the chosen channel before each check (setFeedURL), whatever URL the+// build baked into app-update.yml, so one build follows either channel. Both+// are served on Windows and Linux. On macOS the shipped app is the Swift app+// (Sparkle reads the same two releases' appcasts); this app has no macOS+// feed until the Sparkle cutover (docs/sparkle-cutover.md) publishes+// `latest-mac.yml` and STABLE_FEED turns on. There are no betas any more: a+// saved `beta` is Nightly (update-prefs.ts).import { app, BrowserWindow, dialog } from "electron";-import { existsSync } from "node:fs";+import { existsSync, readFileSync } from "node:fs";import * as path from "node:path";import { electronUpdater } from "./electron-updater";import type { UpdaterDriving } from "./model/updates";@@ -36,19 +42,37 @@ export type { UpdateChannel } from "./update-prefs";/** macOS only: off until stable releases publish the Electron macOS feed (the cutover). */export const STABLE_FEED = false;-/** The channel a version was cut for: X.Y.Z-suffix is a beta. */-export const buildChannel = (version = app.getVersion()): UpdateChannel => (/^\d+\.\d+\.\d+-/.test(version) ? "beta" : "stable");+/** The channel a version was cut for: X.Y.Z-suffix (a nightly, or a beta from before Nightly) is Nightly. */+export const buildChannel = (version = app.getVersion()): UpdateChannel => (/^\d+\.\d+\.\d+-/.test(version) ? "nightly" : "stable");++/** The feed file electron-updater reads: `nightly*.yml` or `latest*.yml`. */+export const feedChannel = (channel: UpdateChannel) => (channel === "nightly" ? "nightly" : "latest");++/** The rolling release that holds each channel's feed. */+const FEED_RELEASE: Record<UpdateChannel, string> = { stable: "cua-spaces-latest", nightly: "cua-spaces-nightly" };+/**+ * The feed URL for `channel`, next to the one the build baked in (`baked`,+ * app-update.yml's `url`: .../releases/download/cua-spaces-latest or+ * .../cua-spaces-nightly of the repository the build came from).+ */+export function feedUrlFor(channel: UpdateChannel, baked: string): string {+ const base = baked.replace(/\/+$/, "").replace(/\/(cua-spaces-latest|cua-spaces-nightly)$/, "");+ return `${base}/${FEED_RELEASE[channel]}`;+}-/** The feed file electron-updater reads: `beta*.yml` or `latest*.yml`. */-export const feedChannel = (channel: UpdateChannel) => (channel === "beta" ? "beta" : "latest");+/** The `url` electron-builder baked into app-update.yml (`fallback` when it can't be read). */+export function bakedFeedUrl(text: string | null, fallback = "https://github.com/trycua/cua/releases/download/cua-spaces-latest"): string {+ const url = text ? /^url:\s*['"]?(https:\/\/[^'"\s]+)['"]?\s*$/m.exec(text)?.[1] : undefined;+ return url ?? fallback;+}-/** Stable Electron builds exist for Windows and Linux; macOS waits for STABLE_FEED. */+/** Electron builds exist for Windows and Linux on both channels; macOS waits for STABLE_FEED (Stable only). */export const channelServed = (channel: UpdateChannel,stableFeed = STABLE_FEED,platform: NodeJS.Platform = process.platform,-) => channel === "beta" || stableFeed || platform === "win32" || platform === "linux";+) => platform === "win32" || platform === "linux" || (channel === "stable" && stableFeed);export const updateChannel = (): UpdateChannel => channelPref(readSettings(), buildChannel(), (c) => channelServed(c));@@ -136,8 +160,8 @@ export class ElectronUpdater implements UpdaterDriving {if (!channelServed(this.channel)) {void message({type: "info",- message: "Stable updates come with a later release",- detail: "This version of Cua Spaces updates from the Beta channel. Choose Beta under “Update to” to get updates now.",+ message: "This app doesn’t update itself on Mac yet",+ detail: "Updates for this version of Cua Spaces come from the Mac app. Download the newest Cua Spaces from spaces.cua.ai to update now.",buttons: ["OK"],});return;@@ -183,10 +207,19 @@ export class ElectronUpdater implements UpdaterDriving {this.loaded ??= (async () => {const { autoUpdater } = await electronUpdater();const channel = this.channel;+ // The chosen channel's own release, never only the baked URL: Stable+ // reads latest*.yml on cua-spaces-latest, Nightly nightly*.yml on+ // cua-spaces-nightly, so Stable never sees a nightly.+ let baked: string | null = null;+ try {+ baked = readFileSync(path.join(process.resourcesPath, "app-update.yml"), "utf8");+ } catch {+ // No baked feed: the default repository's.+ }+ autoUpdater.setFeedURL({ provider: "generic", url: feedUrlFor(channel, bakedFeedUrl(baked)), channel: feedChannel(channel) });autoUpdater.channel = feedChannel(channel);- // Betas read beta*.yml (after the cutover stable releases write it too,- // so betas move on to the next stable); stable never sees a beta.- autoUpdater.allowPrerelease = channel === "beta";+ autoUpdater.allowPrerelease = channel === "nightly";+ // Setting `channel` allows downgrades; an update only ever moves forward.autoUpdater.allowDowngrade = false;// Found updates download in the background; they install on a click, or on quit when allowed.autoUpdater.autoDownload = true;diff --git a/apps/cua-spaces-desktop/test/host-bridge.test.ts b/apps/cua-spaces-desktop/test/host-bridge.test.tsindex 6cfbb37644..2df39e2c1a 100644--- a/apps/cua-spaces-desktop/test/host-bridge.test.ts+++ b/apps/cua-spaces-desktop/test/host-bridge.test.ts@@ -178,7 +178,7 @@ describe.skipIf(!built)("This machine, Devices and Settings on the app core", ()["volume.resolve", { path: "public/plan.md" }],["volume.reveal", { path: "~/Cua Volume/public" }],["about.get", {}],- ["about.set", { channel: "beta" }],+ ["about.set", { channel: "nightly" }],["about.checkNow", {}],["update.get", {}],["update.install", {}],@@ -703,13 +703,19 @@ describe.skipIf(!built)("This machine, Devices and Settings on the app core", ()});it("reads and chooses the update channel by row, unsupported without an updater", async () => {+ await call("settings.choose", { row: "update-channel", option: "nightly" });+ expect(system.updater.channel).toBe("nightly");+ expect(model.settings.updateChannel).toBe(native.AppUpdateChannel.Nightly);+ expect(((await call("settings.get")) as { updateChannel: string }).updateChannel).toBe("nightly");+ // A switch checks the new channel at once.+ expect(system.updater.checks).toBe(1);+ // A page from before Nightly asks for Beta: that is Nightly.+ await call("settings.choose", { row: "update-channel", option: "stable" });await call("settings.choose", { row: "update-channel", option: "beta" });- expect(system.updater.channel).toBe("beta");- expect(model.settings.updateChannel).toBe(native.AppUpdateChannel.Beta);- expect(((await call("settings.get")) as { updateChannel: string }).updateChannel).toBe("beta");+ expect(system.updater.channel).toBe("nightly");await make({ system: null });expect(((await call("settings.get")) as { updateChannel: unknown }).updateChannel).toBeNull();- expect(await code("settings.choose", { row: "update-channel", option: "beta" })).toBe("unsupported");+ expect(await code("settings.choose", { row: "update-channel", option: "nightly" })).toBe("unsupported");});it("Welcome's Show again makes the first run due", async () => {@@ -750,14 +756,16 @@ describe.skipIf(!built)("This machine, Devices and Settings on the app core", ()// MARK: About and launch at loginit("About is the updater's input, and Check Now answers before the updater's window", async () => {- const a = (await call("about.set", { autoCheck: true, channel: "beta" })) as Record<string, unknown>;- expect(a).toMatchObject({ autoCheck: true, channel: "beta", updater: true, platform: "macos", version: "1.2.3" });+ const a = (await call("about.set", { autoCheck: true, channel: "nightly" })) as Record<string, unknown>;+ expect(a).toMatchObject({ autoCheck: true, channel: "nightly", updater: true, platform: "macos", version: "1.2.3" });expect(String(a.os)).toMatch(/\(/);+ // Switching to Nightly checked it at once.+ expect(system.updater.checks).toBe(1);const c = (await call("about.checkNow")) as Record<string, unknown>;expect(c.checking).toBe(true);- expect(system.updater.checks).toBe(0);- await tick(5);expect(system.updater.checks).toBe(1);+ await tick(5);+ expect(system.updater.checks).toBe(2);expect(((await call("about.get")) as Record<string, unknown>).lastCheck).toEqual(expect.any(String));expect(a.build).toBe("");await make({ system: null });diff --git a/apps/cua-spaces-desktop/test/migrate-swift.test.ts b/apps/cua-spaces-desktop/test/migrate-swift.test.tsindex eb396980e4..6e8fc7d095 100644--- a/apps/cua-spaces-desktop/test/migrate-swift.test.ts+++ b/apps/cua-spaces-desktop/test/migrate-swift.test.ts@@ -68,7 +68,8 @@ describe("migrateFromSwiftApp", () => {expect(JSON.parse(readFileSync(paths.settings, "utf8"))).toEqual(swiftSettings);expect(JSON.parse(readFileSync(paths.onboarding, "utf8"))).toEqual(onboarding);expect(patch).toEqual({- updateChannel: "beta",+ // The Swift app's Beta is Nightly now.+ updateChannel: "nightly",windowBounds: { x: 220, y: 177, width: 1280, height: 800 },swiftMigration: {at: "2026-10-07T12:00:00.000Z",diff --git a/apps/cua-spaces-desktop/test/release.test.ts b/apps/cua-spaces-desktop/test/release.test.tsindex 43784a9eb0..743915ce0a 100644--- a/apps/cua-spaces-desktop/test/release.test.ts+++ b/apps/cua-spaces-desktop/test/release.test.ts@@ -9,7 +9,7 @@ import { describe, expect, it, vi } from "vitest";import { absolutize } from "../scripts/feed-urls.mjs";vi.mock("electron", () => ({ app: { getVersion: () => "0.0.0", isPackaged: false }, BrowserWindow: { getAllWindows: () => [] } }));-const { buildChannel, channelServed, feedChannel, STABLE_FEED } = await import("../src/updater");+const { bakedFeedUrl, buildChannel, channelServed, feedChannel, feedUrlFor, STABLE_FEED } = await import("../src/updater");const require = createRequire(import.meta.url);const configPath = require.resolve("../electron-builder.config.cjs");@@ -85,17 +85,38 @@ describe("release config", () => {});describe("updater channels", () => {- it("a suffixed version is a beta", () => {- expect(buildChannel("0.8.0-beta.1")).toBe("beta");- expect(buildChannel("0.8.0-staging.3")).toBe("beta");+ it("a suffixed version (a nightly, or a beta from before Nightly) is on Nightly", () => {+ expect(buildChannel("0.21.0-nightly.20261105.42")).toBe("nightly");+ expect(buildChannel("0.21.0-nightly.20261105")).toBe("nightly");+ expect(buildChannel("0.8.0-beta.1")).toBe("nightly");+ expect(buildChannel("0.8.0-staging.3")).toBe("nightly");expect(buildChannel("0.8.0")).toBe("stable");- expect(feedChannel("beta")).toBe("beta");+ expect(feedChannel("nightly")).toBe("nightly");expect(feedChannel("stable")).toBe("latest");});- it("serves stable on Windows and Linux, and on macOS only after the cutover", () => {+ it("reads each channel's feed from its own rolling release, whatever the build baked in", () => {+ const latest = "https://github.com/trycua/cua/releases/download/cua-spaces-latest";+ const nightly = "https://github.com/trycua/cua/releases/download/cua-spaces-nightly";+ for (const baked of [latest, nightly, `${latest}/`]) {+ expect(feedUrlFor("stable", baked)).toBe(latest);+ expect(feedUrlFor("nightly", baked)).toBe(nightly);+ }+ // A fork's build follows the fork's releases.+ expect(feedUrlFor("nightly", "https://github.com/example/cua-fork/releases/download/cua-spaces-latest")).toBe(+ "https://github.com/example/cua-fork/releases/download/cua-spaces-nightly",+ );+ expect(bakedFeedUrl(`provider: generic\nurl: ${nightly}\nchannel: nightly\nupdaterCacheDirName: x\n`)).toBe(nightly);+ expect(bakedFeedUrl(`url: '${latest}'\n`)).toBe(latest);+ expect(bakedFeedUrl(null)).toBe(latest);+ expect(bakedFeedUrl("url: http://insecure.example/x\n")).toBe(latest);+ });++ it("serves both channels on Windows and Linux; on macOS only Stable, after the cutover", () => {expect(STABLE_FEED).toBe(false);- for (const platform of ["darwin", "win32", "linux"] as const) expect(channelServed("beta", false, platform)).toBe(true);+ for (const platform of ["win32", "linux"] as const) expect(channelServed("nightly", false, platform)).toBe(true);+ expect(channelServed("nightly", false, "darwin")).toBe(false);+ expect(channelServed("nightly", true, "darwin")).toBe(false);expect(channelServed("stable", false, "darwin")).toBe(false);expect(channelServed("stable", true, "darwin")).toBe(true);expect(channelServed("stable", false, "win32")).toBe(true);diff --git a/apps/cua-spaces-desktop/test/update-prefs.test.ts b/apps/cua-spaces-desktop/test/update-prefs.test.tsindex 26033d2ebf..d63bcfb425 100644--- a/apps/cua-spaces-desktop/test/update-prefs.test.ts+++ b/apps/cua-spaces-desktop/test/update-prefs.test.ts@@ -3,14 +3,15 @@import { describe, expect, it } from "vitest";import type { Settings, SwiftMigration } from "../src/settings";-import { autoCheckPref, autoInstallPref, channelPref, type UpdateChannel } from "../src/update-prefs";+import { autoCheckPref, autoInstallPref, channelPref, readChannel, type UpdateChannel } from "../src/update-prefs";const moved = (m: Partial<SwiftMigration> = {}): Settings => ({swiftMigration: { at: "2026-10-14T18:05:04.636Z", found: true, copied: ["settings.json"], ...m },});const fresh: Settings = { swiftMigration: { at: "2026-10-14T18:05:04.636Z", found: false, copied: [] } };-// macOS before the Sparkle cutover: only Beta is served.-const macServed = (c: UpdateChannel) => c === "beta";+// macOS before the Sparkle cutover: no channel is served.+const macServed = (_: UpdateChannel) => false;+const everywhere = () => true;describe("autoCheckPref", () => {it("keeps Sparkle's automatic checks on for someone who moved from the Swift app", () => {@@ -54,19 +55,27 @@ describe("autoInstallPref", () => {describe("channelPref", () => {it("uses the build's channel when nothing is saved", () => {- expect(channelPref({}, "beta", macServed)).toBe("beta");- expect(channelPref({}, "stable", () => true)).toBe("stable");+ expect(channelPref({}, "nightly", everywhere)).toBe("nightly");+ expect(channelPref({}, "stable", everywhere)).toBe("stable");+ });++ it("moves a saved Beta to Nightly", () => {+ expect(readChannel("beta")).toBe("nightly");+ expect(readChannel("nightly")).toBe("nightly");+ expect(readChannel("stable")).toBe("stable");+ expect(readChannel("weekly")).toBeUndefined();+ expect(channelPref({ updateChannel: "beta", updateChannelChosen: true }, "stable", everywhere)).toBe("nightly");+ expect(channelPref({ ...moved(), updateChannel: "beta" }, "stable", everywhere)).toBe("nightly");});it("drops a carried-over channel this app isn't served on", () => {- // Swift's "stable" on a macOS Electron beta: Stable has no Electron feed yet.- expect(channelPref({ ...moved(), updateChannel: "stable" }, "beta", macServed)).toBe("beta");- // After the cutover (Stable served), the Swift choice holds.- expect(channelPref({ ...moved(), updateChannel: "stable" }, "beta", () => true)).toBe("stable");- expect(channelPref({ ...moved(), updateChannel: "beta" }, "stable", macServed)).toBe("beta");+ // Swift's "stable" on a macOS Electron build: no Electron feed on macOS yet.+ expect(channelPref({ ...moved(), updateChannel: "stable" }, "nightly", macServed)).toBe("nightly");+ // Where it is served, the Swift choice holds.+ expect(channelPref({ ...moved(), updateChannel: "stable" }, "nightly", everywhere)).toBe("stable");});it("keeps a channel the user picked in this app", () => {- expect(channelPref({ updateChannel: "stable", updateChannelChosen: true }, "beta", macServed)).toBe("stable");+ expect(channelPref({ updateChannel: "stable", updateChannelChosen: true }, "nightly", macServed)).toBe("stable");});});diff --git a/apps/cua-spaces-desktop/test/update-state.test.ts b/apps/cua-spaces-desktop/test/update-state.test.tsindex c59a8ef474..98c3bf6ed3 100644--- a/apps/cua-spaces-desktop/test/update-state.test.ts+++ b/apps/cua-spaces-desktop/test/update-state.test.ts@@ -54,6 +54,8 @@ describe("the update state machine", () => {it("points at the repository's release tag", () => {expect(releaseNotesUrl(" 0.9.3-rc.4 ")).toBe("https://github.com/trycua/cua/releases/tag/cua-spaces-v0.9.3-rc.4");+ expect(releaseNotesUrl("0.21.0-nightly.20261105.42")).toBe("https://github.com/trycua/cua/releases/tag/cua-spaces-nightly");+ expect(releaseNotesUrl("0.21.0-nightly.20261105")).toBe("https://github.com/trycua/cua/releases/tag/cua-spaces-nightly");});it("checks shortly after launch, and every few hours", () => {diff --git a/apps/cua-spaces-macos/README.md b/apps/cua-spaces-macos/README.mdindex 715b250610..1dd730c5bb 100644--- a/apps/cua-spaces-macos/README.md+++ b/apps/cua-spaces-macos/README.md@@ -538,8 +538,17 @@ the menu bar icon's up-arrow badge and Settings read the one `UpdatesModel`install" or "Restart to update" under it. Usage telemetry records `found`,`not_found`, `downloaded`, `installed` and `failed`.-Channels: an `X.Y.Z-suffix` release is a `beta` item, which only apps set to-"Update to: Beta" (`AppSettings.updateChannel`) are offered.+Channels (Settings, Advanced, Updates; `AppSettings.updateChannel`): Stable+reads `SUFeedURL`, the appcast on the rolling `cua-spaces-latest` release.+Nightly reads the nightly appcast on the rolling `cua-spaces-nightly` release+(`feedURLString(for:)`, built by `nightly-cua-spaces.yml` from main every+night) and installs only its `nightly` items. There are no betas any more:+the settings file still stores Nightly as `beta`, so a release from before+Nightly reads the file instead of starting over, and every build reads `beta`+as Nightly. A prerelease's first launch starts on Nightly. Back on Stable, a+nightly build stays until the next stable release passes it; Settings offers+"Download Stable" to go back now. About shows a nightly's build day+("Version 0.21.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026").After an update, the first launch (the settings file's `lastSeenVersion`changed) runs the bundled `cua agents update` (skill folders and MCP entriesdiff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateDriver.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateDriver.swiftindex 2bc799ddf1..6fc611f1e6 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateDriver.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateDriver.swift@@ -35,9 +35,13 @@ public struct UpdateState: Equatable, Sendable {public static func idle(currentVersion: String) -> UpdateState { UpdateState(currentVersion: currentVersion) }- /// The release's page: the repository's tag for a Cua Spaces version.+ /// The release's page: the repository's tag for a Cua Spaces version;+ /// for a nightly, the rolling nightly release (its notes list the changes).public static func notesURL(version: String) -> String {- "https://github.com/trycua/cua/releases/tag/cua-spaces-v\(version)"+ if version.split(separator: "+").first?.contains("-nightly") == true {+ return "https://github.com/trycua/cua/releases/tag/cua-spaces-nightly"+ }+ return "https://github.com/trycua/cua/releases/tag/cua-spaces-v\(version)"}/// The bridge's record; absent values are explicit nulls.diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateRefresh.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateRefresh.swiftindex 08044089dd..319944f7cc 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateRefresh.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdateRefresh.swift@@ -110,7 +110,7 @@ public struct UpdateRefresh: Sendable {let plan = appAboutAfterLaunch(input: AppLaunchInput(lastSeen: settings.lastSeenVersion, version: version, build: build, onboarded: onboarded))if let save = plan.save {- // An install's first launch: a beta's starts on the Beta channel.+ // An install's first launch: a prerelease's starts on Nightly.if settings.lastSeenVersion == nil {settings.updateChannel = appSettingsFirstLaunchChannel(channel: settings.updateChannel, version: version)}diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdatesModel.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdatesModel.swiftindex 173043c7eb..2a932ad934 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdatesModel.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/UpdatesModel.swift@@ -24,6 +24,12 @@ public protocol UpdaterDriving: AnyObject {var onChange: (() -> Void)? { get set }/// The Sparkle channels to install from besides the default one.var channels: [String] { get set }+ /// The appcast to read instead of the bundle's `SUFeedURL` (the+ /// nightly one); nil: `SUFeedURL`.+ var feedURL: String? { get set }+ /// The bundle's own appcast (`SUFeedURL`); the nightly one is found+ /// next to it (`appAboutFeedUrl`).+ var stableFeed: String? { get }/// A check the user started is running (not a held update that waits/// for a restart).var checking: Bool { get }@@ -52,6 +58,8 @@ public final class SparkleUpdater: NSObject, UpdaterDriving, SPUUpdaterDelegateprivate var observations: [NSKeyValueObservation] = []public var onChange: (() -> Void)?public var channels: [String] = []+ public var feedURL: String?+ public let stableFeed: String?public var onUpdateEvent: ((String) -> Void)?/// The bundle this process runs from, as it was at launch.private let launched = LaunchedBundle(bundle: .main)@@ -79,6 +87,7 @@ public final class SparkleUpdater: NSObject, UpdaterDriving, SPUUpdaterDelegateprivate init(channels: [String], bundle: Bundle) {self.channels = channels+ stableFeed = bundle.object(forInfoDictionaryKey: "SUFeedURL") as? Stringdriver = UpdateUserDriver(currentVersion: AboutBundleInfo(bundle: bundle).version)super.init()updater = SPUUpdater(hostBundle: bundle, applicationBundle: bundle, userDriver: driver, delegate: self)@@ -154,6 +163,12 @@ public final class SparkleUpdater: NSObject, UpdaterDriving, SPUUpdaterDelegateMainActor.assumeIsolated { Set(channels) }}+ /// The nightly appcast on Nightly; nil reads `SUFeedURL`. Sparkle asks+ /// before every check, so a channel switch takes effect at the next one.+ public nonisolated func feedURLString(for updater: SPUUpdater) -> String? {+ MainActor.assumeIsolated { feedURL }+ }+// MARK: - What a check found (usage telemetry: fixed words)private nonisolated func tell(_ event: String) {@@ -324,6 +339,9 @@ public final class FixtureUpdater: UpdaterDriving {public var canCheck = truepublic var onChange: (() -> Void)?public var channels: [String] = []+ public var feedURL: String?+ /// The release appcast, so fixtures follow Nightly as the shipped app does.+ public var stableFeed: String? = "https://github.com/trycua/cua/releases/download/cua-spaces-latest/cua-spaces-appcast.xml"public var onUpdateEvent: ((String) -> Void)?public private(set) var checks = 0/// What the page shows; scripted by tests through the `simulate` calls.@@ -387,8 +405,11 @@ public final class UpdatesModel {/// The chosen channel and where it is saved.public var channel: AppUpdateChannel {didSet {- updater?.channels = appAboutAllowedChannels(channel: channel)+ Self.follow(channel, updater)saveChannel(channel)+ // A new channel is checked at once; what it finds downloads and+ // is offered as "Restart to update".+ if channel != oldValue { checkNow() }}}@ObservationIgnored public var saveChannel: (AppUpdateChannel) -> Void = { _ in }@@ -402,7 +423,7 @@ public final class UpdatesModel {self.updater = updaterself.info = infoself.channel = channel- updater?.channels = appAboutAllowedChannels(channel: channel)+ Self.follow(channel, updater)updater?.onChange = { [weak self] inself?.revision += 1self?.installWhenReady()@@ -412,14 +433,30 @@ public final class UpdatesModel {updater?.onUpdateEvent = { [weak self] event in self?.record(event) }}+ /// Points `updater` at `channel`: the Sparkle channels it may install+ /// from and, for Nightly, the nightly appcast.+ private static func follow(_ channel: AppUpdateChannel, _ updater: UpdaterDriving?) {+ guard let updater else { return }+ updater.channels = appAboutAllowedChannels(channel: channel)+ updater.feedURL = updater.stableFeed.flatMap { appAboutFeedUrl(channel: channel, stableFeed: $0) }+ }++ /// The channel's id (`stable`, `nightly`), as telemetry and the page name it.+ public static func id(_ channel: AppUpdateChannel) -> String {+ switch channel {+ case .stable: "stable"+ case .nightly: "nightly"+ }+ }+private func record(_ action: String) {let trigger = userCheck ? "user" : "background"if action != "found" { userCheck = false }var signals: [AppTelemetrySignal] = []if action == "found" || action == "not_found" {- signals.append(.appUpdate(action: "checked", channel: channel == .beta ? "beta" : "stable", trigger: trigger))+ signals.append(.appUpdate(action: "checked", channel: Self.id(channel), trigger: trigger))}- signals.append(.appUpdate(action: action, channel: channel == .beta ? "beta" : "stable", trigger: trigger))+ signals.append(.appUpdate(action: action, channel: Self.id(channel), trigger: trigger))telemetry?.record(signals)}@@ -495,7 +532,8 @@ public final class UpdatesModel {}public func choose(channel id: String) {- channel = id == "beta" ? .beta : .stable+ // `beta`, from a page before Nightly, is Nightly now.+ channel = id == "nightly" || id == "beta" ? .nightly : .stable}public func checkNow() {diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swiftindex 1216ee269a..686fabb72f 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swift@@ -681,7 +681,7 @@ final class WebUIBridge: NSObject, WKScriptMessageHandlerWithReply {"page": BridgeValue.encode(model.settingsPageWithStorage),"experiments": BridgeValue.encode(model.experimentsPage),// Settings → About's channel; null while this build has no updater.- "updateChannel": model.updates.updater == nil ? NSNull() : (model.updates.channel == .beta ? "beta" : "stable"),+ "updateChannel": model.updates.updater == nil ? NSNull() : UpdatesModel.id(model.updates.channel),// ⌘⇧Space, and whether the system gave it (tried again on each read)."globalShortcut": GlobalShortcut.installed?.bridgeValue ?? NSNull(),// The account app (CUA_ENV, CUA_ACCOUNT_APP_URL): the page's corediff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swiftindex 88503022d5..5440dbbe50 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swift@@ -309,7 +309,7 @@ struct BridgeContractTests {("sharing.removals", [:]), ("sharing.ackRemovals", [:]),("volume.overview", [:]), ("volume.storage", [:]), ("volume.mount", [:]), ("volume.unmount", [:]),("volume.storageSet", ["update": ["backend": "fs", "dry_run": true]]),- ("about.get", [:]), ("about.set", ["channel": "beta"]), ("about.checkNow", [:]),+ ("about.get", [:]), ("about.set", ["channel": "nightly"]), ("about.checkNow", [:]),("update.get", [:]), ("update.install", [:]),("loginItem.get", [:]), ("loginItem.set", ["on": true]),("devices.get", [:]), ("devices.enroll", [:]), ("devices.checkEnrolled", [:]),diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MainUIRouteTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MainUIRouteTests.swiftindex c4fef43bdc..ef5427b58b 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MainUIRouteTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MainUIRouteTests.swift@@ -189,14 +189,15 @@ struct MainUIRouteTests {}}- /// A prerelease's first launch starts on the Beta channel; a release's- /// on Stable; a later launch keeps the channel.- @Test func aBetasFirstLaunchIsOnBeta() {+ /// A prerelease's first launch (a nightly, or a beta from before+ /// Nightly) starts on Nightly; a release's on Stable; a later launch+ /// keeps the channel.+ @Test func aPrereleasesFirstLaunchIsOnNightly() {let dir = FileManager.default.temporaryDirectory.appendingPathComponent("cua-newui-\(UUID().uuidString)")try? FileManager.default.createDirectory(at: dir, withIntermediateDirectories: true)let path = dir.appendingPathComponent("settings.json").pathUpdateRefresh.record(settingsPath: path, version: "0.8.1-beta.1", build: "1", onboarded: false)- #expect(appSettingsLoad(path: path).updateChannel == .beta)+ #expect(appSettingsLoad(path: path).updateChannel == .nightly)// A later launch keeps the channel the user set.var s = appSettingsLoad(path: path)s.updateChannel = .stablediff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ParityTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ParityTests.swiftindex b0db550c9d..5f2268d5b7 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ParityTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ParityTests.swift@@ -2318,6 +2318,8 @@ struct ParityTests {"channel": "\(u.channelLabel) " + u.channels.map { "\($0.label)\($0.active ? "*" : "")" }.joined(separator: " | "),"help": u.channelHelp,+ "note": opt(u.channelNote),+ "download": u.downloadUrl.map { "\(u.downloadLabel ?? "") -> \($0)" } ?? NSNull(),"check": "\(u.checkLabel) \(u.checkEnabled ? "on" : "off")","lastCheck": u.lastCheck,"sparkleChannels": appAboutAllowedChannels(channel: about.channel),diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/UpdatesTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/UpdatesTests.swiftindex 0f76f5c9c1..c5b66ae63a 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/UpdatesTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/UpdatesTests.swift@@ -27,15 +27,15 @@ struct UpdatesTests {model.telemetry = telemetrymodel.checkNow()updater.nextResult = "found"- model.choose(channel: "beta")- model.checkNow()+ // A switch checks the new channel at once.+ model.choose(channel: "nightly")// Sparkle installs what it found on its own schedule.updater.onUpdateEvent?("installed")let got = telemetry.recorded.map { ParityTests.signalFrame($0) }.map { "\($0["action"]!) \($0["channel"]!) \($0["trigger"]!)" }#expect(got == ["checked stable user", "not_found stable user",- "checked beta user", "found beta user", "installed beta user",+ "checked nightly user", "found nightly user", "installed nightly user",])// A scheduled check is the background's.updater.nextResult = "not_found"@@ -90,13 +90,32 @@ struct UpdatesTests {var saved: [AppUpdateChannel] = []model.saveChannel = { saved.append($0) }#expect(updater.channels.isEmpty)- model.choose(channel: "beta")- #expect(updater.channels == ["beta"])- #expect(saved == [.beta])- #expect(model.view.updates?.channels.first(where: \.active)?.id == "beta")+ #expect(updater.feedURL == nil)+ #expect(model.view.updates?.channels.map(\.id) == ["stable", "nightly"])+ model.choose(channel: "nightly")+ #expect(updater.channels == ["nightly"])+ #expect(updater.feedURL == "https://github.com/trycua/cua/releases/download/cua-spaces-nightly/cua-spaces-nightly-appcast.xml")+ #expect(saved == [.nightly])+ #expect(model.view.updates?.channels.first(where: \.active)?.id == "nightly")+ // A switch checks the new channel at once.+ #expect(updater.checks == 1)model.choose(channel: "stable")#expect(updater.channels.isEmpty)- #expect(saved == [.beta, .stable])+ #expect(updater.feedURL == nil)+ #expect(saved == [.nightly, .stable])+ // A page from before Nightly asks for Beta: that is Nightly.+ model.choose(channel: "beta")+ #expect(model.channel == .nightly)+ }++ /// A nightly's About says when it was built, and its notes are the nightly release.+ @Test func aNightlyShowsItsBuildDayAndNotes() {+ let info = AboutBundleInfo(version: "0.21.0-nightly.20261105.42+55e1f5d", build: "0.20.0.202611050731", os: "macOS 26.0 (arm64)")+ let model = UpdatesModel(updater: FixtureUpdater(), channel: .nightly, info: info)+ #expect(model.view.versionLine == "Version 0.21.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026")+ #expect(UpdateState.notesURL(version: "0.21.0-nightly.20261105.42+55e1f5d")+ == "https://github.com/trycua/cua/releases/tag/cua-spaces-nightly")+ #expect(UpdateState.notesURL(version: "0.20.0") == "https://github.com/trycua/cua/releases/tag/cua-spaces-v0.20.0")}// MARK: - The in-app update flow@@ -283,13 +302,13 @@ struct UpdatesTests {defer { try? FileManager.default.removeItem(atPath: (path as NSString).deletingLastPathComponent) }var s = appSettingsLoad(path: path)s.menuBar = true- s.updateChannel = .beta+ s.updateChannel = .nightlytry? appSettingsSave(path: path, settings: s)// A build from before the updater kept no record: after the first// run, that is an update.#expect(UpdateRefresh.record(settingsPath: path, version: "0.2.0", build: "0.2.0.2", onboarded: true))let after = appSettingsLoad(path: path)- #expect(after.menuBar && after.updateChannel == .beta)+ #expect(after.menuBar && after.updateChannel == .nightly)}/// Answers `cua` the way the real CLI does, recording each call.diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/WebUIHostTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/WebUIHostTests.swiftindex 5911259af6..e7a782f967 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/WebUIHostTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/WebUIHostTests.swift@@ -407,11 +407,11 @@ struct WebUIHostTests {@Test func theUpdateChannelIsReadAndChosenByRow() async throws {let (bridge, model) = bridge()#expect((try await bridge.handle("settings.get", [:]) as? [String: Any])?["updateChannel"] is NSNull)- #expect(await failure(bridge, "settings.choose", ["row": "update-channel", "option": "beta"]) == "unsupported")+ #expect(await failure(bridge, "settings.choose", ["row": "update-channel", "option": "nightly"]) == "unsupported")model.updates = UpdatesModel(updater: FixtureUpdater(), channel: .stable)- let s = try await bridge.handle("settings.choose", ["row": "update-channel", "option": "beta"]) as? [String: Any]- #expect(s?["updateChannel"] as? String == "beta")- #expect(model.updates.channel == .beta)+ let s = try await bridge.handle("settings.choose", ["row": "update-channel", "option": "nightly"]) as? [String: Any]+ #expect(s?["updateChannel"] as? String == "nightly")+ #expect(model.updates.channel == .nightly)}/// The page's core has no environment: the host names the account app@@ -805,9 +805,9 @@ struct WebUIHostTests {@Test func aboutIsTheUpdatesModelsInput() async throws {let (bridge, model) = bridge()model.updates = UpdatesModel(updater: FixtureUpdater(), channel: .stable)- let a = try await bridge.handle("about.set", ["autoCheck": true, "channel": "beta"]) as? [String: Any]+ let a = try await bridge.handle("about.set", ["autoCheck": true, "channel": "nightly"]) as? [String: Any]#expect(a?["autoCheck"] as? Bool == true)- #expect(a?["channel"] as? String == "beta")+ #expect(a?["channel"] as? String == "nightly")#expect(a?["updater"] as? Bool == true)}}diff --git a/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsx b/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsxindex bd7451ed0e..b5fe86a017 100644--- a/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsx@@ -99,11 +99,14 @@ describe.skipIf(!wasmBuilt)("Settings tabs (real routes, wasm core)", () => {expect(tab("general")!.textContent).toContain("Use Cua from Terminal");});- it("moves Early releases here from About, and drops the Sharing and Your cloud switches", async () => {+ it("offers Stable or Nightly updates here, and drops the Sharing and Your cloud switches", async () => {await mountApp("/settings/advanced", host);await waitFor(() => expect(tab("advanced")).not.toBeNull());- await waitFor(() => expect(tab("advanced")!.textContent).toContain("Get early releases (Beta)"));+ await waitFor(() => expect(document.querySelector('[data-setting-row="update-channel"]')).not.toBeNull());const text = tab("advanced")!.textContent!;+ expect(text).toContain("Stable");+ expect(text).toContain("Nightly");+ expect(text).not.toContain("Beta");expect(text).toContain("Cua Volume");expect(text).not.toMatch(/Your cloud|Sharing|Experiments/);expect(document.querySelector('[data-setting-row="experiment:sharing"]')).toBeNull();diff --git a/apps/cua-spaces-web/src/bridge/README.md b/apps/cua-spaces-web/src/bridge/README.mdindex ad5cb72847..31f9d5f928 100644--- a/apps/cua-spaces-web/src/bridge/README.md+++ b/apps/cua-spaces-web/src/bridge/README.md@@ -218,7 +218,8 @@ speaks it as is:which `AppModel.choose` already handles. While the row is missing ordisabled (login item not read yet, or not found) the value is `null`.- The update channel: `settings.get` sends `updateChannel` (`stable` or- `beta`, `UpdatesModel.channel`; null when the build has no updater, and+ `nightly`, `UpdatesModel.channel`; the adapter reads an older host's `beta`+ as `nightly`; null when the build has no updater, andthe row stays hidden), and `settings.choose {row: "update-channel",option}` goes to `model.updates.choose(channel:)`.- `machines.list` carries `host` (the same record as `host.status`), whichdiff --git a/apps/cua-spaces-web/src/bridge/__tests__/contract-args.ts b/apps/cua-spaces-web/src/bridge/__tests__/contract-args.tsindex 34cf856857..93837d606e 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/contract-args.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/contract-args.ts@@ -191,7 +191,7 @@ export const DEMO_ARGS: { [K in OpName]: OpArgs<K> } = {"presence.leave": { handle: "p1" },"spaces.fixRuntime": { action: "start-docker" },"about.get": {},- "about.set": { channel: "beta" },+ "about.set": { channel: "nightly" },"about.checkNow": {},"update.get": {},"update.install": {},diff --git a/apps/cua-spaces-web/src/bridge/__tests__/coverage.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/coverage.test.tsindex 89c8f32c31..a7465256ee 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/coverage.test.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/coverage.test.ts@@ -125,7 +125,7 @@ const ARGS: { [K in OpName]: OpArgs<K> } = {"volume.reveal": { path: "/Users/ada/Cua Volume/public" },"agents.setupDriver": { agents: ["codex"] },"about.get": {},- "about.set": { channel: "beta" },+ "about.set": { channel: "nightly" },"about.checkNow": {},"update.get": {},"update.install": {},diff --git a/apps/cua-spaces-web/src/bridge/__tests__/hosts.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/hosts.test.tsindex c9c5c44b16..d5e28d7162 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/hosts.test.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/hosts.test.ts@@ -549,7 +549,8 @@ describe("webkit adapter", () => {it("reads launch at login and the update channel when the host sends them, and sets them by row", async () => {const { win, sent } = webkitHost(() => ok(settingsWithLogin));const a = createWebkitAdapter(win);- expect((await a.call("settings.get", {})).values).toMatchObject({ launchAtLogin: true, updateChannel: "beta" });+ // A host from before Nightly says `beta`: that is Nightly now.+ expect((await a.call("settings.get", {})).values).toMatchObject({ launchAtLogin: true, updateChannel: "nightly" });await a.call("settings.set", { key: "launchAtLogin", value: false });await a.call("settings.set", { key: "updateChannel", value: "stable" });expect(sent.filter((r) => r.method === "settings.choose").map((r) => r.args)).toEqual([diff --git a/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsx b/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsxindex c82613834d..2e0bb87f38 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsx+++ b/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsx@@ -75,8 +75,10 @@ describe.skipIf(!wasmBuilt)("Settings and Notifications through the core", () =>expect(hooks.about.data?.view?.links.map((l) => l.id)).toEqual(["acknowledgements", "privacy", "terms", "status", "issue"]);await hooks.about.setAbout({ autoCheck: false });await waitFor(() => expect(hooks.about.data?.view?.updates?.autoInstallEnabled).toBe(false));- await hooks.about.setAbout({ channel: "beta" });- await waitFor(() => expect(hooks.about.data?.view?.updates?.channels.find((c) => c.active)?.id).toBe("beta"));+ await hooks.about.setAbout({ channel: "nightly" });+ await waitFor(() => expect(hooks.about.data?.view?.updates?.channels.find((c) => c.active)?.id).toBe("nightly"));+ expect(hooks.about.data?.view?.updates?.channels.map((c) => c.id)).toEqual(["stable", "nightly"]);+ expect(hooks.about.data?.view?.updates?.channelHelp).toBe("Nightly builds: get the newest changes from main every day. They may break.");});it("turns an experiment on, and Cua Volume changes the launch-at-login line", async () => {diff --git a/apps/cua-spaces-web/src/bridge/adapters/webkit.ts b/apps/cua-spaces-web/src/bridge/adapters/webkit.tsindex 6198d92b76..13df0d7a3c 100644--- a/apps/cua-spaces-web/src/bridge/adapters/webkit.ts+++ b/apps/cua-spaces-web/src/bridge/adapters/webkit.ts@@ -324,7 +324,8 @@ export function toSettingsSnapshot(s: WkSettings, page: Pick<SettingsValues, "thdefaultLocation: DEFAULT_SETTINGS.defaultLocation,// The core lays out `launch-at-login` once the host read the login item.launchAtLogin: loginRow && loginRow.enabled ? active(loginRow) === "on" : null,- updateChannel: s.updateChannel === "beta" || s.updateChannel === "stable" ? s.updateChannel : null,+ // `beta` (a host from before Nightly) is Nightly.+ updateChannel: s.updateChannel === "stable" ? "stable" : s.updateChannel === "nightly" || s.updateChannel === "beta" ? "nightly" : null,// The core's General row (`settings::auto_connect_row`), when the host lays it out....(rows.has("auto-connect") ? { autoConnect: active(rows.get("auto-connect")) === "on" } : {}),// The core's own settings the page changes (`settings.update`); an older host has none.diff --git a/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.json b/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.jsonindex 099c43ba0c..f4562e9c7c 100644--- a/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.json+++ b/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.json@@ -28,7 +28,7 @@"channel": {"enum": ["stable",- "beta"+ "nightly"]},"lastCheck": {@@ -5236,7 +5236,7 @@"updateChannel": {"enum": ["stable",- "beta",+ "nightly",null]},@@ -8083,7 +8083,7 @@"updateChannel": {"enum": ["stable",- "beta",+ "nightly",null]},diff --git a/apps/cua-spaces-web/src/bridge/contracts/settings.ts b/apps/cua-spaces-web/src/bridge/contracts/settings.tsindex 125eba3730..5e376cd026 100644--- a/apps/cua-spaces-web/src/bridge/contracts/settings.ts+++ b/apps/cua-spaces-web/src/bridge/contracts/settings.ts@@ -16,7 +16,8 @@ export type { DriveMountInput } from "./volume";/* ---- About (`about::*`) --------------------------------------------------- */-export type UpdateChannelId = "stable" | "beta";+/** Stable releases, or a build of main every night (Beta is gone: hosts read a saved `beta` as Nightly). */+export type UpdateChannelId = "stable" | "nightly";/** `about::AboutInput`: what the host reports about the app and its updater. */export interface AboutInput {@@ -55,6 +56,11 @@ export interface AboutUpdates {channelLabel: string;channels: SettingsOption[];channelHelp: string;+ /** A prerelease build back on Stable: it stays until the next stable release; null: nothing to say. */+ channelNote: string | null;+ /** "Download Stable", the way back right now; null when none is needed. */+ downloadLabel: string | null;+ downloadUrl: string | null;checkLabel: string;checkEnabled: boolean;lastCheck: string;diff --git a/apps/cua-spaces-web/src/bridge/contracts/shapes.ts b/apps/cua-spaces-web/src/bridge/contracts/shapes.tsindex 86f1a11b0b..6ef3a8de3c 100644--- a/apps/cua-spaces-web/src/bridge/contracts/shapes.ts+++ b/apps/cua-spaces-web/src/bridge/contracts/shapes.ts@@ -474,7 +474,7 @@ const SettingsShape = ref(telemetry: bool,defaultLocation: str,launchAtLogin: nullable(bool),- updateChannel: nullable(oneOf("stable", "beta")),+ updateChannel: nullable(oneOf("stable", "nightly")),autoConnect: opt(bool),tips: opt(TipsStateShape),notchPinned: opt(strings),@@ -532,7 +532,7 @@ const AboutShape = ref(updater: bool,autoCheck: bool,autoInstall: bool,- channel: oneOf("stable", "beta"),+ channel: oneOf("stable", "nightly"),lastCheck: nullable(str),checking: bool,}),@@ -1901,7 +1901,7 @@ const WkSettingsShape = ref(}),),}),- updateChannel: optNull(oneOf("stable", "beta")),+ updateChannel: optNull(oneOf("stable", "nightly")),globalShortcut: optNull(object({ label: str, registered: bool })),accountUrl: optNull(str),cli: optNull(object({ name: str, installed: bool })),diff --git a/apps/cua-spaces-web/src/bridge/protocol.ts b/apps/cua-spaces-web/src/bridge/protocol.tsindex 87f47c1d45..63c697ba5e 100644--- a/apps/cua-spaces-web/src/bridge/protocol.ts+++ b/apps/cua-spaces-web/src/bridge/protocol.ts@@ -112,7 +112,7 @@ export interface AgentMenuPrefs {seen: string[];}-export type UpdateChannel = "stable" | "beta";+export type UpdateChannel = "stable" | "nightly";/** A login item status as the switch shows it (`LoginItemStatus::is_on`);* null when unknown or when the system can't find the app. */diff --git a/apps/cua-spaces-web/src/bridge/webkit-protocol.ts b/apps/cua-spaces-web/src/bridge/webkit-protocol.tsindex 1a5c0e59fc..ccb86d81e5 100644--- a/apps/cua-spaces-web/src/bridge/webkit-protocol.ts+++ b/apps/cua-spaces-web/src/bridge/webkit-protocol.ts@@ -402,7 +402,7 @@ export interface WkSettingsRow {/** `settings.get`, `settings.choose`, `settings.press`: the core's Settings page. */export interface WkSettings {page: { title: string; sections: { id: string; rows: WkSettingsRow[] }[] };- /** `AppSettings.updateChannel` (`stable` or `beta`); null while the build+ /** `AppSettings.updateChannel` (`stable` or `nightly`; `beta` from an older host); null while the build* has no updater. Set with `settings.choose {row: "update-channel"}`. */updateChannel?: string | null;/** The global shortcut the host registered; absent or null: none. */diff --git a/apps/cua-spaces-web/src/components/settings/advanced-tab.tsx b/apps/cua-spaces-web/src/components/settings/advanced-tab.tsxindex 0875a58bbb..685fbf7c75 100644--- a/apps/cua-spaces-web/src/components/settings/advanced-tab.tsx+++ b/apps/cua-spaces-web/src/components/settings/advanced-tab.tsx@@ -17,13 +17,11 @@ import { setThisMacConfirmed, useThisMacConfirmed } from "@/lib/ask-first";/** The host form's profile for your own connection server or Direct (`host::SELF_HOSTED_PROFILE`). */const SELF_HOSTED = "self-hosted";-const BETA_HELP = "New features sooner, with rough edges. Back on Stable, this version stays until a newer stable release.";-/** Experiments that stay as Labs. "Your cloud" and "Sharing" have no switch any more: the plan decides on the server. */const LABS = new Set(["experiment:cua_volume", "experiment:secure_spaces", "experiment:child_spaces", "experiment:ask_first", "experiment:ci_runners", "experiment:tcp_shares", "experiment:mobile", "experiment:warm_pools"]);/**- * Settings, Advanced: early releases, Labs, which software runs Spaces on+ * Settings, Advanced: the update channel (Stable or Nightly), Labs, which software runs Spaces on* this Mac, and your own connection server. For options most people never* touch; each says what it does in a line.*/@@ -44,7 +42,7 @@ export function AdvancedTab() {return (<div data-settings-tab="advanced">- <EarlyReleases />+ <UpdateChannel /><Labs /><Sharing />{runtimes || autoConnect || overflow ? (@@ -66,8 +64,13 @@ export function AdvancedTab() {);}-/** "Get early releases (Beta)": the update channel, moved here from About. */-function EarlyReleases() {+/**+ * Updates: Stable or Nightly, as the core lays them out (`about::view`). The+ * old "Get early releases (Beta)" switch; whoever had it on is on Nightly.+ * A prerelease build back on Stable says it stays until the next stable+ * release, with a link to download Stable now.+ */+function UpdateChannel() {const { data, setAbout } = useAbout();const { mode, core } = useBridge();const view = data?.view;@@ -76,30 +79,30 @@ function EarlyReleases() {const unavailable = !view.updates && mode === "electron" ? (aboutView(core, { ...data.input, updater: true })?.updates ?? null) : null;const updates = view.updates ?? unavailable;if (!updates) return null;- const beta = updates.channels.find((c) => c.id === "beta")?.active ?? false;const row: CoreRow = {id: "update-channel",- kind: "toggle",- label: "Get early releases (Beta)",+ kind: "choice",+ label: updates.channelLabel,value: null,button: null,- options: [- { id: "on", label: "On", active: beta },- { id: "off", label: "Off", active: !beta },- ],+ options: updates.channels,enabled: data.canChange && !unavailable,help: null,linkLabel: null,linkUrl: null,placeholder: null,};+ const note: CoreRow | null = updates.channelNote+ ? { ...row, id: "update-channel-note", kind: "note", label: updates.channelNote, options: [], linkLabel: updates.downloadLabel ?? null, linkUrl: updates.downloadUrl ?? null }+ : null;return (<SettingsGroup title="Updates"><CoreSettingsRowrow={row}- description={BETA_HELP}- onChoose={(_, option) => void setAbout({ channel: option === "on" ? "beta" : "stable" }).catch(toastError("Couldn't change the update channel"))}+ description={updates.channelHelp}+ onChoose={(_, option) => void setAbout({ channel: option === "nightly" ? "nightly" : "stable" }).catch(toastError("Couldn't change the update channel"))}/>+ {note ? <CoreSettingsRow row={note} /> : null}</SettingsGroup>);}diff --git a/libs/cua/crates/cua-spaces-app-core/parity/about.json b/libs/cua/crates/cua-spaces-app-core/parity/about.jsonindex 59e550277f..0bbb6dfe2b 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/about.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/about.json@@ -1,6 +1,6 @@{"name": "about",- "about": "Settings, About: the name, version, links and copyright; the update controls (automatic checks and installs, Stable or Beta, Check Now, the last check); what a launch after an update refreshes; whose daemon restarts; the one notice when the refresh failed.",+ "about": "Settings, About: the name, version, links and copyright; the update controls (automatic checks and installs, Stable or Nightly, the way back from a nightly, Check Now, the last check); what a launch after an update refreshes; whose daemon restarts; the one notice when the refresh failed.","input": {"platform": "macos","version": "0.2.0",@@ -16,7 +16,8 @@"panes": [{ "step": "first open" },{ "step": "install automatically", "set": { "autoInstall": true } },- { "step": "beta, checked before", "set": { "channel": "beta", "version": "0.3.0-beta.1", "build": "0.3.0.130", "lastCheck": "9/30/26, 3:04 PM" } },+ { "step": "nightly, checked before", "set": { "channel": "nightly", "version": "0.3.0-nightly.20261105.42+55e1f5d", "build": "0.2.0.202611050731", "lastCheck": "9/30/26, 3:04 PM" } },+ { "step": "back on stable from a nightly", "set": { "channel": "stable" } },{ "step": "checking", "set": { "checking": true } },{ "step": "no automatic checks", "set": { "checking": false, "autoCheck": false } },{ "step": "no updater", "set": { "updater": false, "build": "" } }diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/about.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/about.jsonindex 0cb3df30e0..4878a4c1b1 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/about.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/about.json@@ -15,10 +15,12 @@"updates": {"autoCheck": "[x] Check for and download updates automatically","autoInstall": "[ ] Install a downloaded update when Cua Spaces quits",- "channel": "Update to: Stable* | Beta",+ "channel": "Updates Stable* | Nightly","check": "Check Now on",- "help": "Stable gets tested releases. Beta also gets prereleases: new features sooner, with rough edges. Back on Stable, this version stays until a newer stable release.",+ "download": null,+ "help": "Stable: tested releases. Best for most people.","lastCheck": "Last check: Never",+ "note": null,"sparkleChannels": []},"version": "Version 0.2.0 (0.2.0.123)"@@ -39,10 +41,12 @@"updates": {"autoCheck": "[x] Check for and download updates automatically","autoInstall": "[x] Install a downloaded update when Cua Spaces quits",- "channel": "Update to: Stable* | Beta",+ "channel": "Updates Stable* | Nightly","check": "Check Now on",- "help": "Stable gets tested releases. Beta also gets prereleases: new features sooner, with rough edges. Back on Stable, this version stays until a newer stable release.",+ "download": null,+ "help": "Stable: tested releases. Best for most people.","lastCheck": "Last check: Never",+ "note": null,"sparkleChannels": []},"version": "Version 0.2.0 (0.2.0.123)"@@ -57,23 +61,25 @@"privacy Privacy Policy -> https://cua.ai/privacy-policy","terms Terms of Service -> https://cua.ai/terms-of-service","status System Status -> https://status.cua.ai",- "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-beta.1%20%280.3.0.130%29%0AmacOS%2026.0%20%28arm64%29"+ "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-nightly.20261105.42%2B55e1f5d%2C%20built%205%20Nov%202026%0AmacOS%2026.0%20%28arm64%29"],"title": "Cua Spaces for macOS","updates": {"autoCheck": "[x] Check for and download updates automatically","autoInstall": "[x] Install a downloaded update when Cua Spaces quits",- "channel": "Update to: Stable | Beta*",+ "channel": "Updates Stable | Nightly*","check": "Check Now on",- "help": "Stable gets tested releases. Beta also gets prereleases: new features sooner, with rough edges. Back on Stable, this version stays until a newer stable release.",+ "download": null,+ "help": "Nightly builds: get the newest changes from main every day. They may break.","lastCheck": "Last check: 9/30/26, 3:04 PM",+ "note": null,"sparkleChannels": [- "beta"+ "nightly"]},- "version": "Version 0.3.0-beta.1 (0.3.0.130)"+ "version": "Version 0.3.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026"},- "step": "beta, checked before"+ "step": "nightly, checked before"},{"about": {@@ -83,21 +89,47 @@"privacy Privacy Policy -> https://cua.ai/privacy-policy","terms Terms of Service -> https://cua.ai/terms-of-service","status System Status -> https://status.cua.ai",- "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-beta.1%20%280.3.0.130%29%0AmacOS%2026.0%20%28arm64%29"+ "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-nightly.20261105.42%2B55e1f5d%2C%20built%205%20Nov%202026%0AmacOS%2026.0%20%28arm64%29"],"title": "Cua Spaces for macOS","updates": {"autoCheck": "[x] Check for and download updates automatically","autoInstall": "[x] Install a downloaded update when Cua Spaces quits",- "channel": "Update to: Stable | Beta*",+ "channel": "Updates Stable* | Nightly",+ "check": "Check Now on",+ "download": "Download Stable -> https://spaces.cua.ai/download",+ "help": "Stable: tested releases. Best for most people.",+ "lastCheck": "Last check: 9/30/26, 3:04 PM",+ "note": "This build is newer than the latest Stable release, so it stays until the next Stable release replaces it. To go back now, download Stable and install it.",+ "sparkleChannels": []+ },+ "version": "Version 0.3.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026"+ },+ "step": "back on stable from a nightly"+ },+ {+ "about": {+ "copyright": "© 2026 Cua AI, Inc. All rights reserved.",+ "links": [+ "acknowledgements Acknowledgements -> (bundled notices)",+ "privacy Privacy Policy -> https://cua.ai/privacy-policy",+ "terms Terms of Service -> https://cua.ai/terms-of-service",+ "status System Status -> https://status.cua.ai",+ "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-nightly.20261105.42%2B55e1f5d%2C%20built%205%20Nov%202026%0AmacOS%2026.0%20%28arm64%29"+ ],+ "title": "Cua Spaces for macOS",+ "updates": {+ "autoCheck": "[x] Check for and download updates automatically",+ "autoInstall": "[x] Install a downloaded update when Cua Spaces quits",+ "channel": "Updates Stable* | Nightly","check": "Checking… off",- "help": "Stable gets tested releases. Beta also gets prereleases: new features sooner, with rough edges. Back on Stable, this version stays until a newer stable release.",+ "download": "Download Stable -> https://spaces.cua.ai/download",+ "help": "Stable: tested releases. Best for most people.","lastCheck": "Last check: 9/30/26, 3:04 PM",- "sparkleChannels": [- "beta"- ]+ "note": "This build is newer than the latest Stable release, so it stays until the next Stable release replaces it. To go back now, download Stable and install it.",+ "sparkleChannels": []},- "version": "Version 0.3.0-beta.1 (0.3.0.130)"+ "version": "Version 0.3.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026"},"step": "checking"},@@ -109,21 +141,21 @@"privacy Privacy Policy -> https://cua.ai/privacy-policy","terms Terms of Service -> https://cua.ai/terms-of-service","status System Status -> https://status.cua.ai",- "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-beta.1%20%280.3.0.130%29%0AmacOS%2026.0%20%28arm64%29"+ "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-nightly.20261105.42%2B55e1f5d%2C%20built%205%20Nov%202026%0AmacOS%2026.0%20%28arm64%29"],"title": "Cua Spaces for macOS","updates": {"autoCheck": "[ ] Check for and download updates automatically","autoInstall": "[x] Install a downloaded update when Cua Spaces quits (disabled)",- "channel": "Update to: Stable | Beta*",+ "channel": "Updates Stable* | Nightly","check": "Check Now on",- "help": "Stable gets tested releases. Beta also gets prereleases: new features sooner, with rough edges. Back on Stable, this version stays until a newer stable release.",+ "download": "Download Stable -> https://spaces.cua.ai/download",+ "help": "Stable: tested releases. Best for most people.","lastCheck": "Last check: 9/30/26, 3:04 PM",- "sparkleChannels": [- "beta"- ]+ "note": "This build is newer than the latest Stable release, so it stays until the next Stable release replaces it. To go back now, download Stable and install it.",+ "sparkleChannels": []},- "version": "Version 0.3.0-beta.1 (0.3.0.130)"+ "version": "Version 0.3.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026"},"step": "no automatic checks"},@@ -135,11 +167,11 @@"privacy Privacy Policy -> https://cua.ai/privacy-policy","terms Terms of Service -> https://cua.ai/terms-of-service","status System Status -> https://status.cua.ai",- "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-beta.1%0AmacOS%2026.0%20%28arm64%29"+ "issue Report an Issue… -> https://github.com/trycua/cua/issues/new?template=bug.yml&environment=Cua%20Spaces%20for%20macOS%200.3.0-nightly.20261105.42%2B55e1f5d%2C%20built%205%20Nov%202026%0AmacOS%2026.0%20%28arm64%29"],"title": "Cua Spaces for macOS","updates": null,- "version": "Version 0.3.0-beta.1"+ "version": "Version 0.3.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026"},"step": "no updater"},diff --git a/libs/cua/crates/cua-spaces-app-core/src/about.rs b/libs/cua/crates/cua-spaces-app-core/src/about.rsindex 8fd3065942..14e6be8f15 100644--- a/libs/cua/crates/cua-spaces-app-core/src/about.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/about.rs@@ -3,9 +3,11 @@//! Settings, About: the app's name and version, its links (acknowledgements,//! privacy policy, terms, system status, an issue report), the copyright line, and, where-//! the app updates itself (the macOS app, through Sparkle), the update-//! controls: automatic checks, automatic installs, the channel (Stable or-//! Beta), Check Now and the last check.+//! the app updates itself (the macOS app through Sparkle, Windows and Linux+//! through electron-updater), the update controls: automatic checks,+//! automatic installs, the channel (Stable or Nightly), Check Now and the last+//! check. There are no betas any more: the Nightly channel replaced them, and+//! an install that chose Beta is on Nightly.//!//! Also what the first launch after an update does ([`after_launch`]): it//! refreshes what cua installed into the coding agents (`cua agents@@ -30,43 +32,111 @@ pub const ISSUE_URL: &str = "https://github.com/trycua/cua/issues/new";/// The copyright line.pub const COPYRIGHT: &str = "\u{a9} 2026 Cua AI, Inc. All rights reserved.";-/// Which releases the updater offers.+/// The public download page, for going back to Stable by hand: an updater+/// never installs an older version than the one running.+pub const DOWNLOAD_URL: &str = "https://spaces.cua.ai/download";++/// The Sparkle appcast of the stable releases, as the release workflow+/// publishes it (the Mac app's `SUFeedURL`) ...+const STABLE_FEED_SUFFIX: &str = "/cua-spaces-latest/cua-spaces-appcast.xml";+/// ... and the nightly appcast next to it (`nightly-cua-spaces.yml`).+const NIGHTLY_FEED_SUFFIX: &str = "/cua-spaces-nightly/cua-spaces-nightly-appcast.xml";++/// Which builds the updater offers.#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)]#[serde(rename_all = "lowercase")]pub enum UpdateChannel {/// Releases (the default).#[default]Stable,- /// Releases and prereleases (`X.Y.Z-suffix`).- Beta,+ /// A build of main every night (`X.Y.Z-nightly.YYYYMMDD[+sha]`), from+ /// its own feed. It replaced the Beta channel, so `beta` (an older+ /// build's word, and what the settings file still stores, see+ /// [`crate::settings::save`]) reads as Nightly.+ #[serde(alias = "beta")]+ Nightly,}impl UpdateChannel {- /// The id the channel picker and the settings file use.+ /// The id the channel picker, the bridges and telemetry use.pub fn id(self) -> &'static str {match self {UpdateChannel::Stable => "stable",- UpdateChannel::Beta => "beta",+ UpdateChannel::Nightly => "nightly",}}- /// The channel for a picker id (anything else is Stable).+ /// The channel for an id: `nightly`, or `beta` from before Nightly,+ /// is Nightly; anything else is Stable.pub fn from_id(id: &str) -> UpdateChannel {- if id == "beta" {- UpdateChannel::Beta- } else {- UpdateChannel::Stable+ match id {+ "nightly" | "beta" => UpdateChannel::Nightly,+ _ => UpdateChannel::Stable,}}}/// The Sparkle channels an updater on `channel` may install from (Stable:-/// none but the default one).+/// none but the default one). Every item of the nightly appcast is on the+/// `nightly` channel, so an app on Stable installs none of them even if it+/// read that feed.pub fn allowed_channels(channel: UpdateChannel) -> Vec<String> {match channel {UpdateChannel::Stable => vec![],- UpdateChannel::Beta => vec!["beta".into()],+ UpdateChannel::Nightly => vec!["nightly".into()],+ }+}++/// The nightly appcast next to `stable_feed` (the Mac app's `SUFeedURL`, the+/// appcast on the rolling `cua-spaces-latest` release); `None` for any other+/// feed (a fork's or a local build's), which has no nightly.+pub fn nightly_feed_url(stable_feed: &str) -> Option<String> {+ let base = stable_feed.strip_suffix(STABLE_FEED_SUFFIX)?;+ base.starts_with("https://")+ .then(|| format!("{base}{NIGHTLY_FEED_SUFFIX}"))+}++/// The appcast a Sparkle updater on `channel` reads: the nightly one for+/// Nightly, else `None` (the app's own `SUFeedURL`).+pub fn feed_url(channel: UpdateChannel, stable_feed: &str) -> Option<String> {+ match channel {+ UpdateChannel::Nightly => nightly_feed_url(stable_feed),+ UpdateChannel::Stable => None,+ }+}++/// A nightly build's version: `0.21.0-nightly.20261105.42+55e1f5d` (Mac),+/// `0.21.0-nightly.20261105.42` (Windows, Linux), with `.42` the workflow+/// run; nightlies before the run number had none.+pub fn is_nightly_version(version: &str) -> bool {+ version+ .split('+')+ .next()+ .and_then(|v| v.split_once('-'))+ .is_some_and(|(_, pre)| pre == "nightly" || pre.starts_with("nightly."))+}++/// The day a nightly was built, from its version (`nightly.YYYYMMDD`), as+/// "5 Nov 2026"; `None` for any other version.+pub fn nightly_build_date(version: &str) -> Option<String> {+ if !is_nightly_version(version) {+ return None;+ }+ let pre = version.split('+').next()?.split_once('-')?.1;+ let day = pre.strip_prefix("nightly.")?.split('.').next()?;+ if day.len() != 8 || !day.bytes().all(|b| b.is_ascii_digit()) {+ return None;}+ let (y, m, d) = (+ &day[..4],+ day[4..6].parse::<usize>().ok()?,+ day[6..].parse::<u32>().ok()?,+ );+ const MONTHS: [&str; 12] = [+ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",+ ];+ let month = MONTHS.get(m.checked_sub(1)?)?;+ (1..=31).contains(&d).then(|| format!("{d} {month} {y}"))}/// What the About pane shows.@@ -138,12 +208,21 @@ pub struct AboutUpdates {pub auto_install: bool,/// It can be used (only with automatic checks).pub auto_install_enabled: bool,- /// "Update to:".+ /// "Updates".pub channel_label: String,- /// Stable, Beta.+ /// Stable, Nightly.pub channels: Vec<SettingsOption>,- /// The channel picker's tooltip.+ /// What the chosen channel gets, in a line.pub channel_help: String,+ /// A word about the version running on this channel: a nightly build+ /// back on Stable stays until the next stable release passes it;+ /// `None`: nothing to say.+ pub channel_note: Option<String>,+ /// "Download Stable": the way back to Stable right now+ /// ([`DOWNLOAD_URL`]); `None` when no way back is needed.+ pub download_label: Option<String>,+ /// Where [`AboutUpdates::download_label`] goes.+ pub download_url: Option<String>,/// "Check Now" (or "Checking…").pub check_label: String,/// Check Now can be used.@@ -189,9 +268,13 @@ fn query_value(s: &str) -> String {out}-/// "Version 0.2.0 (0.2.0.123)" (no build: "Version 0.2.0").+/// "Version 0.2.0 (0.2.0.123)" (no build: "Version 0.2.0"); a nightly:+/// "Version 0.21.0-nightly.20261105+55e1f5d, built 5 Nov 2026" (its build+/// number says nothing more).pub fn version_line(version: &str, build: &str) -> String {- if build.is_empty() || build == version {+ if let Some(day) = nightly_build_date(version) {+ format!("Version {version}, built {day}")+ } else if build.is_empty() || build == version {format!("Version {version}")} else {format!("Version {version} ({build})")@@ -215,6 +298,33 @@ pub fn issue_url(input: &AboutInput) -> String {)}+/// What `channel` gets, in plain words.+fn channel_help(channel: UpdateChannel) -> &'static str {+ match channel {+ UpdateChannel::Stable => "Stable: tested releases. Best for most people.",+ UpdateChannel::Nightly => {+ "Nightly builds: get the newest changes from main every day. They may break."+ }+ }+}++/// A prerelease build (a nightly, or a beta from before Nightly) on Stable:+/// an updater only moves forward, so it stays until a newer stable release,+/// and the way back right now is a download by hand.+fn going_back(input: &AboutInput) -> bool {+ input.channel == UpdateChannel::Stable+ && input.version.split('+').next().unwrap_or("").contains('-')+}++/// The note under the picker (see [`AboutUpdates::channel_note`]).+fn channel_note(input: &AboutInput) -> Option<String> {+ going_back(input).then(|| {+ "This build is newer than the latest Stable release, so it stays until the next \+ Stable release replaces it. To go back now, download Stable and install it."+ .into()+ })+}+/// The About pane for `input`.pub fn view(input: &AboutInput) -> AboutView {let link = |id, label: &str, url: Option<String>| AboutLink {@@ -228,10 +338,10 @@ pub fn view(input: &AboutInput) -> AboutView {auto_install_label: "Install a downloaded update when Cua Spaces quits".into(),auto_install: input.auto_install,auto_install_enabled: input.auto_check,- channel_label: "Update to:".into(),+ channel_label: "Updates".into(),channels: [(UpdateChannel::Stable, "Stable"),- (UpdateChannel::Beta, "Beta"),+ (UpdateChannel::Nightly, "Nightly"),].into_iter().map(|(c, label)| SettingsOption {@@ -240,10 +350,10 @@ pub fn view(input: &AboutInput) -> AboutView {active: c == input.channel,}).collect(),- channel_help: "Stable gets tested releases. Beta also gets prereleases: new features \- sooner, with rough edges. Back on Stable, this version stays until a \- newer stable release."- .into(),+ channel_help: channel_help(input.channel).into(),+ channel_note: channel_note(input),+ download_label: going_back(input).then(|| "Download Stable".into()),+ download_url: going_back(input).then(|| DOWNLOAD_URL.into()),check_label: if input.checking {"Checking\u{2026}".into()} else {@@ -481,7 +591,7 @@ mod tests {let mut i = input();i.auto_check = false;- i.channel = UpdateChannel::Beta;+ i.channel = UpdateChannel::Nightly;i.last_check = Some("9/30/26, 3:04 PM".into());i.checking = true;let u = view(&i).updates.unwrap();@@ -498,9 +608,99 @@ mod tests {#[test]fn channels_map_to_sparkle() {assert!(allowed_channels(UpdateChannel::Stable).is_empty());- assert_eq!(allowed_channels(UpdateChannel::Beta), ["beta"]);- assert_eq!(UpdateChannel::from_id("beta"), UpdateChannel::Beta);- assert_eq!(UpdateChannel::from_id("nightly"), UpdateChannel::Stable);+ assert_eq!(allowed_channels(UpdateChannel::Nightly), ["nightly"]);+ assert_eq!(UpdateChannel::from_id("nightly"), UpdateChannel::Nightly);+ // Beta is gone: whoever chose it is on Nightly.+ assert_eq!(UpdateChannel::from_id("beta"), UpdateChannel::Nightly);+ assert_eq!(UpdateChannel::from_id("weekly"), UpdateChannel::Stable);+ let read = |s: &str| serde_json::from_str::<UpdateChannel>(s).unwrap();+ assert_eq!(read(r#""beta""#), UpdateChannel::Nightly);+ assert_eq!(read(r#""nightly""#), UpdateChannel::Nightly);+ assert_eq!(read(r#""stable""#), UpdateChannel::Stable);+ }++ #[test]+ fn nightly_reads_its_own_appcast() {+ let stable = "https://github.com/trycua/cua/releases/download/cua-spaces-latest/cua-spaces-appcast.xml";+ let nightly = "https://github.com/trycua/cua/releases/download/cua-spaces-nightly/cua-spaces-nightly-appcast.xml";+ assert_eq!(nightly_feed_url(stable).as_deref(), Some(nightly));+ assert_eq!(+ feed_url(UpdateChannel::Nightly, stable).as_deref(),+ Some(nightly)+ );+ assert_eq!(feed_url(UpdateChannel::Stable, stable), None);+ assert_eq!(nightly_feed_url("https://example.com/appcast.xml"), None);+ assert_eq!(+ nightly_feed_url("http://x/cua-spaces-latest/cua-spaces-appcast.xml"),+ None+ );+ }++ #[test]+ fn nightly_versions_carry_their_build_day() {+ // Run number since #6545 (`.N`); earlier nightlies had none.+ assert!(is_nightly_version("0.21.0-nightly.20261105.42+55e1f5d"));+ assert!(is_nightly_version("0.21.0-nightly.20261105.42"));+ assert!(is_nightly_version("0.21.0-nightly.20261105+55e1f5d"));+ assert!(is_nightly_version("0.21.0-nightly.20261105"));+ assert!(!is_nightly_version("0.21.0-beta.7"));+ assert!(!is_nightly_version("0.21.0"));+ assert!(!is_nightly_version("0.21.0+nightly"));+ for v in [+ "0.21.0-nightly.20261105.42+55e1f5d",+ "0.21.0-nightly.20261105.42",+ "0.21.0-nightly.20261105+55e1f5d",+ ] {+ assert_eq!(nightly_build_date(v).as_deref(), Some("5 Nov 2026"), "{v}");+ }+ assert_eq!(+ nightly_build_date("0.21.0-nightly.20260101").as_deref(),+ Some("1 Jan 2026")+ );+ assert_eq!(nightly_build_date("0.21.0-nightly.20261305"), None);+ assert_eq!(nightly_build_date("0.21.0-nightly"), None);+ assert_eq!(nightly_build_date("0.21.0-beta.20261105"), None);+ assert_eq!(+ version_line("0.21.0-nightly.20261105.42+55e1f5d", "0.20.0.202611050731"),+ "Version 0.21.0-nightly.20261105.42+55e1f5d, built 5 Nov 2026"+ );+ assert_eq!(+ version_line("0.20.0", "0.20.0.512"),+ "Version 0.20.0 (0.20.0.512)"+ );+ }++ #[test]+ fn the_picker_offers_stable_and_nightly_and_explains_the_way_back() {+ let mut i = input();+ let u = view(&i).updates.unwrap();+ let ids: Vec<_> = u.channels.iter().map(|o| o.id.as_str()).collect();+ assert_eq!(ids, ["stable", "nightly"]);+ assert_eq!(u.channel_label, "Updates");+ assert_eq!(u.channel_note, None);+ assert_eq!(u.download_url, None);++ i.channel = UpdateChannel::Nightly;+ let u = view(&i).updates.unwrap();+ assert_eq!(+ u.channel_help,+ "Nightly builds: get the newest changes from main every day. They may break."+ );+ assert_eq!(u.channel_note, None);++ // Back on Stable from a nightly (or an old beta): it stays, and a download goes back now.+ for version in ["0.21.0-nightly.20261105.42+55e1f5d", "0.21.0-beta.7"] {+ i.version = version.into();+ i.channel = UpdateChannel::Stable;+ let u = view(&i).updates.unwrap();+ assert!(+ u.channel_note+ .unwrap()+ .contains("stays until the next Stable release")+ );+ assert_eq!(u.download_label.as_deref(), Some("Download Stable"));+ assert_eq!(u.download_url.as_deref(), Some(DOWNLOAD_URL));+ }}fn launch(last_seen: Option<&str>, version: &str, build: &str, onboarded: bool) -> LaunchPlan {diff --git a/libs/cua/crates/cua-spaces-app-core/src/parity.rs b/libs/cua/crates/cua-spaces-app-core/src/parity.rsindex 2df8e1068c..c57c69ac6f 100644--- a/libs/cua/crates/cua-spaces-app-core/src/parity.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/parity.rs@@ -2202,6 +2202,12 @@ pub mod frame {.map(|o| format!("{}{}", str_of(&o["label"]), if o["active"] == true { "*" } else { "" })).collect::<Vec<_>>().join(" | ")),"help": u["channelHelp"],+ "note": u["channelNote"],+ "download": if u["downloadUrl"].is_string() {+ json!(format!("{} -> {}", str_of(&u["downloadLabel"]), str_of(&u["downloadUrl"])))+ } else {+ Value::Null+ },"check": format!("{} {}", str_of(&u["checkLabel"]), if u["checkEnabled"] == true { "on" } else { "off" }),"lastCheck": u["lastCheck"],"sparkleChannels": channels,diff --git a/libs/cua/crates/cua-spaces-app-core/src/settings.rs b/libs/cua/crates/cua-spaces-app-core/src/settings.rsindex 0cc64b220a..b6a52b84cb 100644--- a/libs/cua/crates/cua-spaces-app-core/src/settings.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/settings.rs@@ -256,11 +256,12 @@ pub fn resolve_new_ui(settings: &AppSettings, _version: &str) -> AppSettings {}/// The update channel of an install's first launch, from the one in the-/// settings file (`channel`): Beta for a prerelease (someone who installed-/// a beta keeps getting betas), else unchanged.+/// settings file (`channel`): Nightly for any prerelease (a nightly, or a+/// beta from before Nightly: someone who installed one keeps getting the+/// newest builds), else unchanged.pub fn first_launch_channel(channel: UpdateChannel, version: &str) -> UpdateChannel {if version.split('+').next().unwrap_or("").contains('-') {- UpdateChannel::Beta+ UpdateChannel::Nightly} else {channel}@@ -280,7 +281,17 @@ pub fn choose_experiment(settings: &AppSettings, row: &str, option: &str) -> Apppub fn save(path: &Path, settings: &AppSettings) -> Result<(), CoreError> {let mut stored = settings.clone();stored.experiments.web_ui = stored.new_ui == Some(true);- let json = serde_json::to_string_pretty(&stored).map_err(|e| CoreError::Io(e.to_string()))?;+ let mut value = serde_json::to_value(&stored).map_err(|e| CoreError::Io(e.to_string()))?;+ // Nightly is stored as `beta`, its old name: a release from before+ // Nightly (someone going back to Stable by hand) reads the whole file+ // with serde and starts over with the defaults on a word it does not+ // know. This build reads `beta` as Nightly ([`UpdateChannel`]).+ if stored.update_channel == UpdateChannel::Nightly+ && let Some(o) = value.as_object_mut()+ {+ o.insert("updateChannel".into(), STORED_NIGHTLY.into());+ }+ let json = serde_json::to_string_pretty(&value).map_err(|e| CoreError::Io(e.to_string()))?;if let Some(dir) = path.parent() {std::fs::create_dir_all(dir).map_err(|e| CoreError::Io(e.to_string()))?;}@@ -289,6 +300,9 @@ pub fn save(path: &Path, settings: &AppSettings) -> Result<(), CoreError> {std::fs::rename(&tmp, path).map_err(|e| CoreError::Io(e.to_string()))}+/// How the settings file stores [`UpdateChannel::Nightly`] (see [`save`]).+const STORED_NIGHTLY: &str = "beta";+/// A pressed key combination.#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]#[serde(rename_all = "camelCase", default)]@@ -1065,7 +1079,7 @@ mod tests {menu_bar: true,default_location: Location::Yours,last_seen_version: Some("0.2.0 (0.2.0.1)".into()),- update_channel: UpdateChannel::Beta,+ update_channel: UpdateChannel::Nightly,launch_at_login: Some(false),..Default::default()};@@ -1495,14 +1509,76 @@ mod tests {}#[test]- fn a_prerelease_installs_first_launch_is_on_beta() {- use UpdateChannel::{Beta, Stable};- assert_eq!(first_launch_channel(Stable, "0.8.1-beta.1"), Beta);- assert_eq!(first_launch_channel(Stable, "0.8.1-beta.1+abc"), Beta);+ fn a_prerelease_installs_first_launch_is_on_nightly() {+ use UpdateChannel::{Nightly, Stable};+ assert_eq!(first_launch_channel(Stable, "0.8.1-beta.1"), Nightly);+ assert_eq!(first_launch_channel(Stable, "0.8.1-beta.1+abc"), Nightly);+ assert_eq!(+ first_launch_channel(Stable, "0.21.0-nightly.20261105+55e1f5d"),+ Nightly+ );+ assert_eq!(+ first_launch_channel(Stable, "0.21.0-nightly.20261105"),+ Nightly+ );+ assert_eq!(+ first_launch_channel(Stable, "0.21.0-nightly.20261105.42+55e1f5d"),+ Nightly+ );assert_eq!(first_launch_channel(Stable, "0.7.2"), Stable);assert_eq!(first_launch_channel(Stable, "0.8.0+build-7"), Stable);// A release keeps a channel already in the file.- assert_eq!(first_launch_channel(Beta, "0.7.2"), Beta);+ assert_eq!(first_launch_channel(Nightly, "0.7.2"), Nightly);+ }++ #[test]+ fn beta_users_move_to_nightly_and_older_releases_still_read_the_file() {+ let dir = std::env::temp_dir().join(format!(+ "cua-app-core-settings-nightly-{}",+ std::process::id()+ ));+ let path = dir.join("settings.json");+ std::fs::create_dir_all(&dir).unwrap();+ // A file written by a release that had Beta: now Nightly, the rest kept.+ std::fs::write(&path, r#"{"updateChannel":"beta","menuBar":true}"#).unwrap();+ let s = load(&path);+ assert_eq!(s.update_channel, UpdateChannel::Nightly);+ assert!(s.menu_bar);+ // Saved as `beta`, so a release from before Nightly reads it (as+ // Beta, every other setting kept) instead of starting over.+ save(&path, &s).unwrap();+ let raw: serde_json::Value =+ serde_json::from_str(&std::fs::read_to_string(&path).unwrap()).unwrap();+ assert_eq!(raw["updateChannel"], "beta");+ #[derive(serde::Deserialize)]+ #[serde(rename_all = "camelCase")]+ #[allow(dead_code)]+ enum OldChannel {+ Stable,+ Beta,+ }+ #[derive(serde::Deserialize)]+ #[serde(rename_all = "camelCase")]+ struct OldSettings {+ update_channel: OldChannel,+ menu_bar: bool,+ }+ let old: OldSettings = serde_json::from_value(raw).unwrap();+ assert!(matches!(old.update_channel, OldChannel::Beta) && old.menu_bar);+ // A file a Nightly-aware build wrote by hand still loads.+ std::fs::write(&path, r#"{"updateChannel":"nightly","menuBar":true}"#).unwrap();+ assert_eq!(load(&path).update_channel, UpdateChannel::Nightly);+ // Stable stays `stable`.+ save(+ &path,+ &AppSettings {+ update_channel: UpdateChannel::Stable,+ ..s+ },+ )+ .unwrap();+ assert_eq!(load(&path).update_channel, UpdateChannel::Stable);+ let _ = std::fs::remove_dir_all(dir);}#[test]diff --git a/libs/cua/crates/cua-spaces-ffi/src/app_core.rs b/libs/cua/crates/cua-spaces-ffi/src/app_core.rsindex d6c711c468..4318382c0a 100644--- a/libs/cua/crates/cua-spaces-ffi/src/app_core.rs+++ b/libs/cua/crates/cua-spaces-ffi/src/app_core.rs@@ -1063,6 +1063,14 @@ pub fn app_about_allowed_channels(channel: AppUpdateChannel) -> Vec<String> {core::about::allowed_channels(channel)}+/// The appcast a Sparkle updater on `channel` reads, from the app's own+/// `SUFeedURL` (`stable_feed`): the nightly appcast for Nightly; `None`+/// keeps `SUFeedURL` (for Nightly: this feed has no nightly next to it).+#[uniffi::export]+pub fn app_about_feed_url(channel: AppUpdateChannel, stable_feed: String) -> Option<String> {+ core::about::feed_url(channel, &stable_feed)+}+/// What this launch does (refresh after an update; the version to record).#[uniffi::export]pub fn app_about_after_launch(input: AppLaunchInput) -> AppLaunchPlan {@@ -2297,7 +2305,7 @@ pub fn app_settings_resolve_new_ui(settings: AppSettings, version: String) -> Ap}/// The update channel of an install's first launch, from the file's-/// `channel`: Beta for a prerelease, else unchanged.+/// `channel`: Nightly for a prerelease, else unchanged.#[uniffi::export]pub fn app_settings_first_launch_channel(channel: AppUpdateChannel,diff --git a/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs b/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rsindex ded9a336b2..2434733e24 100644--- a/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs+++ b/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs@@ -6583,14 +6583,17 @@ pub struct AppDriveMountFrame {pub arrived: Vec<f64>,}-/// Which releases the updater offers.+/// Which builds the updater offers.pub type AppUpdateChannel = core::about::UpdateChannel;#[uniffi::remote(Enum)]pub enum AppUpdateChannel {/// Releases (the default).Stable,- /// Releases and prereleases (`X.Y.Z-suffix`).- Beta,+ /// A build of main every night (`X.Y.Z-nightly.YYYYMMDD[+sha]`), from+ /// its own feed. It replaced the Beta channel, so `beta` (an older+ /// build's word, and what the settings file still stores, see+ /// [`crate::settings::save`]) reads as Nightly.+ Nightly,}/// What the About pane shows.@@ -6662,12 +6665,21 @@ pub struct AppAboutUpdates {pub auto_install: bool,/// It can be used (only with automatic checks).pub auto_install_enabled: bool,- /// "Update to:".+ /// "Updates".pub channel_label: String,- /// Stable, Beta.+ /// Stable, Nightly.pub channels: Vec<AppSettingsOption>,- /// The channel picker's tooltip.+ /// What the chosen channel gets, in a line.pub channel_help: String,+ /// A word about the version running on this channel: a nightly build+ /// back on Stable stays until the next stable release passes it;+ /// `None`: nothing to say.+ pub channel_note: Option<String>,+ /// "Download Stable": the way back to Stable right now+ /// ([`DOWNLOAD_URL`]); `None` when no way back is needed.+ pub download_label: Option<String>,+ /// Where [`AboutUpdates::download_label`] goes.+ pub download_url: Option<String>,/// "Check Now" (or "Checking…").pub check_label: String,/// Check Now can be used.diff --git a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swiftindex f496aea3c0..e0756d688f 100644--- a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift+++ b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift@@ -3213,17 +3213,32 @@ public struct AppAboutUpdates: Equatable, Hashable {*/public var autoInstallEnabled: Bool/**- * "Update to:".+ * "Updates".*/public var channelLabel: String/**- * Stable, Beta.+ * Stable, Nightly.*/public var channels: [AppSettingsOption]/**- * The channel picker's tooltip.+ * What the chosen channel gets, in a line.*/public var channelHelp: String+ /**+ * A word about the version running on this channel: a nightly build+ * back on Stable stays until the next stable release passes it;+ * `None`: nothing to say.+ */+ public var channelNote: String?+ /**+ * "Download Stable": the way back to Stable right now+ * ([`DOWNLOAD_URL`]); `None` when no way back is needed.+ */+ public var downloadLabel: String?+ /**+ * Where [`AboutUpdates::download_label`] goes.+ */+ public var downloadUrl: String?/*** "Check Now" (or "Checking…").*/@@ -3256,14 +3271,26 @@ public struct AppAboutUpdates: Equatable, Hashable {* It can be used (only with automatic checks).*/autoInstallEnabled: Bool,/**- * "Update to:".+ * "Updates".*/channelLabel: String,/**- * Stable, Beta.+ * Stable, Nightly.*/channels: [AppSettingsOption],/**- * The channel picker's tooltip.+ * What the chosen channel gets, in a line.*/channelHelp: String,+ /**+ * A word about the version running on this channel: a nightly build+ * back on Stable stays until the next stable release passes it;+ * `None`: nothing to say.+ */channelNote: String?,+ /**+ * "Download Stable": the way back to Stable right now+ * ([`DOWNLOAD_URL`]); `None` when no way back is needed.+ */downloadLabel: String?,+ /**+ * Where [`AboutUpdates::download_label`] goes.+ */downloadUrl: String?,/*** "Check Now" (or "Checking…").*/checkLabel: String,@@ -3281,6 +3308,9 @@ public struct AppAboutUpdates: Equatable, Hashable {self.channelLabel = channelLabelself.channels = channelsself.channelHelp = channelHelp+ self.channelNote = channelNote+ self.downloadLabel = downloadLabel+ self.downloadUrl = downloadUrlself.checkLabel = checkLabelself.checkEnabled = checkEnabledself.lastCheck = lastCheck@@ -3310,6 +3340,9 @@ public struct FfiConverterTypeAppAboutUpdates: FfiConverterRustBuffer {channelLabel: FfiConverterString.read(from: &buf),channels: FfiConverterSequenceTypeAppSettingsOption.read(from: &buf),channelHelp: FfiConverterString.read(from: &buf),+ channelNote: FfiConverterOptionString.read(from: &buf),+ downloadLabel: FfiConverterOptionString.read(from: &buf),+ downloadUrl: FfiConverterOptionString.read(from: &buf),checkLabel: FfiConverterString.read(from: &buf),checkEnabled: FfiConverterBool.read(from: &buf),lastCheck: FfiConverterString.read(from: &buf)@@ -3325,6 +3358,9 @@ public struct FfiConverterTypeAppAboutUpdates: FfiConverterRustBuffer {FfiConverterString.write(value.channelLabel, into: &buf)FfiConverterSequenceTypeAppSettingsOption.write(value.channels, into: &buf)FfiConverterString.write(value.channelHelp, into: &buf)+ FfiConverterOptionString.write(value.channelNote, into: &buf)+ FfiConverterOptionString.write(value.downloadLabel, into: &buf)+ FfiConverterOptionString.write(value.downloadUrl, into: &buf)FfiConverterString.write(value.checkLabel, into: &buf)FfiConverterBool.write(value.checkEnabled, into: &buf)FfiConverterString.write(value.lastCheck, into: &buf)@@ -66772,9 +66808,12 @@ public enum AppUpdateChannel: Equatable, Hashable {*/case stable/**- * Releases and prereleases (`X.Y.Z-suffix`).+ * A build of main every night (`X.Y.Z-nightly.YYYYMMDD[+sha]`), from+ * its own feed. It replaced the Beta channel, so `beta` (an older+ * build's word, and what the settings file still stores, see+ * [`crate::settings::save`]) reads as Nightly.*/- case beta+ case nightly@@ -66798,7 +66837,7 @@ public struct FfiConverterTypeAppUpdateChannel: FfiConverterRustBuffer {case 1: return .stable- case 2: return .beta+ case 2: return .nightlydefault: throw UniffiInternalError.unexpectedEnumCase}@@ -66812,7 +66851,7 @@ public struct FfiConverterTypeAppUpdateChannel: FfiConverterRustBuffer {writeInt(&buf, Int32(1))- case .beta:+ case .nightly:writeInt(&buf, Int32(2))}@@ -78547,6 +78586,19 @@ public func appAboutAllowedChannels(channel: AppUpdateChannel) -> [String] {)})}+/**+ * The appcast a Sparkle updater on `channel` reads, from the app's own+ * `SUFeedURL` (`stable_feed`): the nightly appcast for Nightly; `None`+ * keeps `SUFeedURL` (for Nightly: this feed has no nightly next to it).+ */+public func appAboutFeedUrl(channel: AppUpdateChannel, stableFeed: String) -> String? {+ return try! FfiConverterOptionString.lift(try! rustCall() {+ uniffi_cua_spaces_ffi_fn_func_app_about_feed_url(+ FfiConverterTypeAppUpdateChannel_lower(channel),+ FfiConverterString.lower(stableFeed),$0+ )+})+}/*** The About input from JSON (parity flows).*/@@ -80831,7 +80883,7 @@ public func appSettingsDefaults() -> AppSettings {}/*** The update channel of an install's first launch, from the file's- * `channel`: Beta for a prerelease, else unchanged.+ * `channel`: Nightly for a prerelease, else unchanged.*/public func appSettingsFirstLaunchChannel(channel: AppUpdateChannel, version: String) -> AppUpdateChannel {return try! FfiConverterTypeAppUpdateChannel_lift(try! rustCall() {@@ -82334,6 +82386,9 @@ private let initializationResult: InitializationResult = {if (uniffi_cua_spaces_ffi_checksum_func_app_about_allowed_channels() != 59781) {return InitializationResult.apiChecksumMismatch}+ if (uniffi_cua_spaces_ffi_checksum_func_app_about_feed_url() != 25239) {+ return InitializationResult.apiChecksumMismatch+ }if (uniffi_cua_spaces_ffi_checksum_func_app_about_input_from_json() != 570) {return InitializationResult.apiChecksumMismatch}@@ -82967,7 +83022,7 @@ private let initializationResult: InitializationResult = {if (uniffi_cua_spaces_ffi_checksum_func_app_settings_defaults() != 47096) {return InitializationResult.apiChecksumMismatch}- if (uniffi_cua_spaces_ffi_checksum_func_app_settings_first_launch_channel() != 11279) {+ if (uniffi_cua_spaces_ffi_checksum_func_app_settings_first_launch_channel() != 29109) {return InitializationResult.apiChecksumMismatch}if (uniffi_cua_spaces_ffi_checksum_func_app_settings_input_from_json() != 15437) {diff --git a/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.h b/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.hindex 14fbb53f07..ca6b35a9c6 100644--- a/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.h+++ b/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.h@@ -675,6 +675,11 @@ RustBuffer uniffi_cua_spaces_ffi_fn_func_app_about_after_launch(RustBuffer inputRustBuffer uniffi_cua_spaces_ffi_fn_func_app_about_allowed_channels(RustBuffer channel, RustCallStatus *_Nonnull out_status);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_ABOUT_FEED_URL+#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_ABOUT_FEED_URL+RustBuffer uniffi_cua_spaces_ffi_fn_func_app_about_feed_url(RustBuffer channel, RustBuffer stable_feed, RustCallStatus *_Nonnull out_status+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_ABOUT_INPUT_FROM_JSON#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_ABOUT_INPUT_FROM_JSONRustBuffer uniffi_cua_spaces_ffi_fn_func_app_about_input_from_json(RustBuffer json, RustCallStatus *_Nonnull out_status@@ -2676,6 +2681,12 @@ uint16_t uniffi_cua_spaces_ffi_checksum_func_app_about_after_launch(void#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_ABOUT_ALLOWED_CHANNELSuint16_t uniffi_cua_spaces_ffi_checksum_func_app_about_allowed_channels(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_ABOUT_FEED_URL+#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_ABOUT_FEED_URL+uint16_t uniffi_cua_spaces_ffi_checksum_func_app_about_feed_url(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_ABOUT_INPUT_FROM_JSON