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
Machines: two sharing switches, a desktop row in the Spaces list, running Spaces first, and a failed create cleans up (#6090)
dduponte9b4ce4339f4
diff --git a/apps/cua-spaces-desktop/src/bridge/host-setup.ts b/apps/cua-spaces-desktop/src/bridge/host-setup.tsindex 661a15790c..75622179c4 100644--- a/apps/cua-spaces-desktop/src/bridge/host-setup.ts+++ b/apps/cua-spaces-desktop/src/bridge/host-setup.ts@@ -61,7 +61,7 @@ export function settingsPaneUrl(url: string, platform: NodeJS.Platform): string}export function hostSetupMethods({ model, platform, system }: BridgeContext): Handlers {- const unavailable = () => Failure.unsupported(`${platform === "darwin" ? "This Mac" : platform === "win32" ? "This PC" : "This computer"} can't be set up for access in this build`);+ const unavailable = () => Failure.unsupported(`${platform === "darwin" ? "This Mac" : platform === "win32" ? "This PC" : "This machine"} can't be set up for access in this build`);return {"host.setUp": async (args) => {if (!model.host.host) throw unavailable();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 736aa21d2b..9da84baf1a 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@@ -26871,9 +26871,9 @@ export type AppHostSetupRequest = {*/allow?: Array<string>,/**- * What the machine is for: `desktop` (share this desktop, and- * provide Spaces on a new relay setup; the default) or `spare` (only- * run Spaces for your other devices).+ * What the machine is for: `spare` (the default: other machines+ * create Spaces here, its desktop stays private) or `desktop` (also+ * let other machines control this desktop).*/profile?: string,/**@@ -26881,10 +26881,9 @@ export type AppHostSetupRequest = {*/shareDesktop?: boolean,/**- * Create Spaces for your other devices (overrides the profile).- * `None` with the desktop profile: on for a new relay setup; a- * machine set up before keeps its setting (the host decides,- * `cua_host::default_provide_spaces`).+ * Let other machines create Spaces here (overrides the profile).+ * `None`: on for a new relay setup; a machine set up before keeps+ * its setting (the host decides, `cua_host::default_provide_spaces`).*/provideSpaces?: boolean}@@ -28860,7 +28859,7 @@ export type AppListView = {empty: boolean,/*** One quiet line where the Spaces go while the list is not complete- * ("Reaching 6 computers…"), below what is known so far.+ * ("Reaching 6 machines…"), below what is known so far.*/reachingLine?: string}@@ -29969,7 +29968,8 @@ export type AppMachinesViewToggle = {*/id: string,/**- * "Provide Spaces", "Share this desktop".+ * "Let other machines create Spaces here", "Let other machines control+ * this desktop".*/label: string,/**@@ -30339,7 +30339,8 @@ export type AppMachinesViewMachine = {*/noticeAction?: AppHostAction,/**- * Provide Spaces, then Share this desktop.+ * Create Spaces here, then control this desktop (This Mac: the+ * desktop switch only).*/toggles: Array<AppMachinesViewToggle>,/**@@ -30771,7 +30772,7 @@ export type AppMachinesViewRelay = {*/ownerEmail?: string,/**- * It creates Spaces for your devices (`None`: it did not say).+ * It lets your other machines create Spaces (`None`: it did not say).*/providesSpaces?: boolean}diff --git a/apps/cua-spaces-desktop/test/agents.test.ts b/apps/cua-spaces-desktop/test/agents.test.tsindex e9e2f42cdf..ad6eed441f 100644--- a/apps/cua-spaces-desktop/test/agents.test.ts+++ b/apps/cua-spaces-desktop/test/agents.test.ts@@ -162,7 +162,7 @@ describe.skipIf(!built)("agents", () => {await p.send(new A.Select({ name: "ada" }));expect(p.view(now).detail?.memory.map((l) => l.text)).toEqual(["hermes/MEMORY.md"]);await p.send(new A.AllowComputer({ machine: "relay:0123" }));- expect(p.view(now).detail?.access.map((l) => l.text)).toEqual(["This computer"]);+ expect(p.view(now).detail?.access.map((l) => l.text)).toEqual(["This machine"]);await p.send(new A.Resume({ name: "ada" }));expect(daemon.calls).toContain("agent_resume");expect(p.view(now).rows[0]!.state).toBe("Running");diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostModel.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostModel.swiftindex c6a5079e8b..20cfa86250 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostModel.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostModel.swift@@ -22,7 +22,7 @@ public protocol HostRunning: AnyObject, Sendable {func resumeSignedIn(account: String) async throws -> HostStatusfunc remove() async throws/// Changes what this machine shares: its desktop, and Spaces for your- /// other devices.+ /// other machines.func configure(change: HostSettingsChange) async throws -> HostStatus/// Moves the host service from the old LaunchAgent into this app, as/// its own login item ("Cua Spaces"), keeping this machine's id,diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostSetupFailure.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostSetupFailure.swiftindex 8241143871..6f16c34972 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostSetupFailure.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/HostSetupFailure.swift@@ -140,7 +140,7 @@ public struct HostSetupFailure: Equatable, Sendable {"Your Cua account isn\u{2019}t signed in on this Mac. Sign in, then try again.")case .service:return ("Couldn\u{2019}t start the Cua host service",- "macOS didn\u{2019}t start the service your other devices connect to. Try again; "+ "macOS didn\u{2019}t start the service your other machines connect to. Try again; "+ "if it keeps failing, restart this Mac.")case .other:return ("Couldn\u{2019}t set up this Mac for access",diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Resources/Localizable.xcstrings b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Resources/Localizable.xcstringsindex 4dc703340c..aa856db1fe 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Resources/Localizable.xcstrings+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Resources/Localizable.xcstrings@@ -128,7 +128,7 @@"en": {"stringUnit": {"state": "translated",- "value": "My computers"+ "value": "My machines"}}}diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/NavigationCommands.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/NavigationCommands.swiftindex 4897d17d9f..87d3596c9a 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/NavigationCommands.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/NavigationCommands.swift@@ -44,7 +44,7 @@ struct NavTarget: Identifiable {@MainActor static func all(_ model: AppModel) -> [NavTarget] {[NavTarget(command: "nav.spaces", label: "Spaces", symbol: "square.grid.2x2"),- NavTarget(command: "nav.machines", label: "Computers", symbol: "server.rack"),+ NavTarget(command: "nav.machines", label: "Machines", symbol: "server.rack"),NavTarget(command: "nav.agents", label: "Agents", symbol: "person.2"),NavTarget(command: "nav.keyvault", label: model.chrome.keyvaultTitle, symbol: "key")]}diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/AgentsPagesTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/AgentsPagesTests.swiftindex b0564348a1..a434f9583b 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/AgentsPagesTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/AgentsPagesTests.swift@@ -91,7 +91,7 @@ struct AgentsPagesTests {await m.send(.select(name: "ada"))#expect(m.agentsView().detail?.memory.map(\.text) == ["hermes/MEMORY.md"])await m.send(.allowComputer(machine: "relay:0123"))- #expect(m.agentsView().detail?.access.map(\.text) == ["This computer"])+ #expect(m.agentsView().detail?.access.map(\.text) == ["This machine"])var posted: [AppSystemNote] = []var seen: UInt64 = 0diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/IncompleteListTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/IncompleteListTests.swiftindex 70dafc5591..efb5a4674e 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/IncompleteListTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/IncompleteListTests.swift@@ -40,7 +40,7 @@ struct IncompleteListTests {#expect(m.loaded)#expect(m.listIncomplete)#expect(m.listView.empty == false)- #expect(m.listView.reachingLine == "Reaching 6 computers…")+ #expect(m.listView.reachingLine == "Reaching 6 machines…")let answer = try #require(try await bridge.handle("spaces.list", [:]) as? [String: Any])#expect(answer["incomplete"] as? Bool == true)#expect(answer["reaching"] as? Int == 6)@@ -65,7 +65,7 @@ struct IncompleteListTests {await m.refresh()#expect(!m.spaces.isEmpty)#expect(m.listView.empty == false)- #expect(m.listView.reachingLine == "Reaching 1 computer…")+ #expect(m.listView.reachingLine == "Reaching 1 machine…")}@Test func aSpaceAnotherComputerIsCreatingReachesThePage() async throws {diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/LoginItemTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/LoginItemTests.swiftindex 01a0d1950e..fd919614f4 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/LoginItemTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/LoginItemTests.swift@@ -148,7 +148,7 @@ struct LoginItemTests {#expect(serving.calls == ["register", "unregister"])#expect(m.loginItemStatus == .notRegistered)let note = general(m).first { $0.id == "launch-at-login-note" }?.label- #expect(note == "This computer provides Spaces, which stop after a restart until you open Cua Spaces.")+ #expect(note == "This machine provides Spaces, which stop after a restart until you open Cua Spaces.")// Not serving and never chosen: left alone.let idle = FixtureLoginItem()diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachineAccessTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachineAccessTests.swiftindex 5459936189..a73d7abd55 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachineAccessTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachineAccessTests.swift@@ -245,7 +245,7 @@ struct MachineAccessTests {enrollment: .enrolled, hostSetUp: true, hostStatus: status)#expect(m.sidebar.thisMachine != nil)let mine = try #require(m.sidebar.sections.first { $0.title.code == "spaces.sidebar.section.my_computers" },- "no My computers for \(features) \(String(describing: error))")+ "no My machines for \(features) \(String(describing: error))")#expect(mine.rows.map(\.id) == [other])}}diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesPaletteTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesPaletteTests.swiftindex 0ea829129b..da55d7281d 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesPaletteTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesPaletteTests.swift@@ -92,7 +92,7 @@ struct MachinesPaletteTests {#expect(row.spacesLabel == "Desktop shared")}- /// A machine sharing its desktop and providing a Space reads "Desktop · 1 Space".+ /// A machine sharing its desktop and providing a Space reads "Desktop and 1 Space".@Test func aMachineSharingItsDesktopAndSpacesReadsDesktopAndCount() throws {let input = try appMachinesPageInputFromJson(json: """{"hostOs": "macos", "now": 1800000000, "spaces": [@@ -105,7 +105,7 @@ struct MachinesPaletteTests {""")let row = appMachinesPageRows(input: input)[1]#expect(row.spaces == 1)- #expect(row.spacesLabel == "Desktop · 1 Space")+ #expect(row.spacesLabel == "Desktop and 1 Space")}/// A machine providing only Spaces reads the plain count.@@ -140,11 +140,11 @@ struct MachinesPaletteTests {@Test func thePaletteRanksWithTheCore() {let entries = [AppPaletteEntry(group: "Actions", label: "New Space", hint: nil, keywords: "create add"),- AppPaletteEntry(group: "Go to", label: "Computers", hint: nil, keywords: "page"),+ AppPaletteEntry(group: "Go to", label: "Machines", hint: nil, keywords: "page"),AppPaletteEntry(group: "Spaces", label: "Stop builder", hint: "Running", keywords: nil),]#expect(appPaletteRank(entries: entries, query: "") == [0, 1, 2])- #expect(appPaletteRank(entries: entries, query: "comp") == [1])+ #expect(appPaletteRank(entries: entries, query: "mach") == [1])#expect(appPaletteRank(entries: entries, query: "stop run") == [2])}}diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesViewTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesViewTests.swiftindex 1fe579de1d..98f5405826 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesViewTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/MachinesViewTests.swift@@ -134,7 +134,7 @@ struct MachinesViewTests {view.groups.flatMap(\.ids).contains(id)})let me = view.machines.first { $0.current }- #expect(me?.toggles.map(\.label) == ["Let my other devices use this Mac"])+ #expect(me?.toggles.map(\.label) == ["Let other machines control this desktop"])#expect(me?.toggles.allSatisfy(\.editable) == true)#expect(view.summary.contains("online"))// Another machine's switches are read-only.diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ViewModelTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ViewModelTests.swiftindex 5f2544fdab..e1212d2574 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ViewModelTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/ViewModelTests.swift@@ -280,7 +280,7 @@ struct ViewModelTests {let model = makeModel(host: host)await model.refresh()#expect(model.spaces.contains { $0.id == "this-mac" })- #expect(model.sidebar.thisMachine?.name == "This computer")+ #expect(model.sidebar.thisMachine?.name == "This Mac")#expect(model.sidebar.thisMachine?.detail == "Set up for access")#expect(!model.sidebar.sections.flatMap(\.rows).contains { $0.id == "this-mac" })model.select("this-mac")@@ -300,7 +300,7 @@ struct ViewModelTests {#expect(h.panel.actions.map(\.id) == [.setUp])h.computerName = { "Ada’s MacBook Pro" }await h.run(.setUp)- #expect(h.formView?.title == "Set up this computer")+ #expect(h.formView?.title == "Set up this machine")// Name starts as what the system calls this computer.#expect(h.formView?.fields.first?.value == "Ada’s MacBook Pro")h.send(.setName(name: "Studio"))@@ -1232,7 +1232,7 @@ struct ViewModelTests {#expect(detail.confirm.removeLabel == "Remove from List")let other = model.detail(theirs).confirm#expect(!other.confirmEnabled)- #expect(other.disabledReason == "Created on another device: delete it there, or remove it from this list.")+ #expect(other.disabledReason == "Created on another machine: delete it there, or remove it from this list.")model.delete(mine)model.delete(theirs, removeOnly: true)diff --git a/apps/cua-spaces-web/e2e/settings-tab-layout.spec.ts b/apps/cua-spaces-web/e2e/settings-tab-layout.spec.tsindex 392231d623..a507e5ea16 100644--- a/apps/cua-spaces-web/e2e/settings-tab-layout.spec.ts+++ b/apps/cua-spaces-web/e2e/settings-tab-layout.spec.ts@@ -14,7 +14,7 @@ const TABS = [["Account", "/settings"],["General", "/settings/general"],["Connectors", "/settings/connectors"],- ["Trusted devices", "/settings/devices"],+ ["Trusted machines", "/settings/devices"],["Advanced", "/settings/advanced"],["About", "/settings/about"],] as const;diff --git a/apps/cua-spaces-web/src/__tests__/agents-detail-tabs.test.tsx b/apps/cua-spaces-web/src/__tests__/agents-detail-tabs.test.tsxindex 2ad58796ab..3d28c34428 100644--- a/apps/cua-spaces-web/src/__tests__/agents-detail-tabs.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/agents-detail-tabs.test.tsx@@ -20,7 +20,7 @@ describe.skipIf(!wasmBuilt)("Agents, a persistent agent's detail", () => {it("shows Memory, adds a routine and lists Access with its audit", { timeout: 20_000 }, async () => {await mountApp("/agents/all?agent=ada", { failsCreates: false, listsGhost: false });await waitFor(() => expect(tab("memory")).not.toBeNull(), { timeout: 8000 });- expect([...document.querySelectorAll("[data-agent-tab]")].map((t) => t.textContent)).toEqual(["Conversation", "Memory", "Routines", "Access to this computer"]);+ expect([...document.querySelectorAll("[data-agent-tab]")].map((t) => t.textContent)).toEqual(["Conversation", "Memory", "Routines", "Access to this machine"]);expect(tab("run")!.getAttribute("aria-selected")).toBe("true");fireEvent.click(tab("memory")!);@@ -45,7 +45,7 @@ describe.skipIf(!wasmBuilt)("Agents, a persistent agent's detail", () => {fireEvent.click(tab("access")!);const access = await waitFor(() => panel("access")!);- expect(within(access).getByText("This computer")).toBeTruthy();+ expect(within(access).getByText("This machine")).toBeTruthy();expect(within(access).getByRole("button", { name: "Revoke" })).toBeTruthy();expect(within(access).getByText("Audit")).toBeTruthy();expect(within(access).getByText("Used relay:this-mac")).toBeTruthy();diff --git a/apps/cua-spaces-web/src/__tests__/desktop-row.test.tsx b/apps/cua-spaces-web/src/__tests__/desktop-row.test.tsxnew file mode 100644index 0000000000..cc5ed4d9c6--- /dev/null+++ b/apps/cua-spaces-web/src/__tests__/desktop-row.test.tsx@@ -0,0 +1,152 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++// This Mac's desktop is a normal row of the Spaces list: "Not sharing" while its+// switch is off, "Sharing" while it is on, both with the "Desktop" tag. Hover+// shows Hide instead of power; "Show hidden" in the list's overflow brings it+// back. It never counts as a Space (the empty state, the count, "N running"),+// and Home's strip lists running Spaces first. Its page has no stream: it says+// whether the desktop is shared and holds the switch.++import { act, cleanup, fireEvent, screen, waitFor } from "@testing-library/react";+import { afterEach, beforeEach, describe, expect, it } from "vitest";++import { setFlagOverride } from "@/bridge";+import { wasmBuilt } from "@/bridge/__tests__/testCore";+import { resetHiddenDesktops } from "@/lib/hidden-desktops";+import { mountApp, stubBrowserApis } from "./app-harness";++stubBrowserApis();+beforeEach(() => {+ localStorage.clear();+ resetHiddenDesktops();+ setFlagOverride("spaces_ask_first_home", true);+});+afterEach(cleanup);++/** This Mac's roster row: reachable while its desktop is shared. */+const thisMac = (shared: boolean) => ({ id: "this-mac", name: "This Mac", provider: "local", spacesdVersion: "", features: [], reachable: shared, os: "macos" });++const withDesktop = (shared: boolean, only = false) => ({+ failsCreates: false,+ listsGhost: false,+ answer: (op: string, out: unknown) => {+ if (op === "host.status") return { ...(out as object), shareDesktop: shared };+ if (op === "machines.list") return (out as { current?: boolean; host?: object }[]).map((r) => (r.current && r.host ? { ...r, host: { ...r.host, shareDesktop: shared } } : r));+ return op === "spaces.list" ? (only ? [thisMac(shared)] : [...(out as unknown[]), thisMac(shared)]) : out;+ },+});++const row = () => document.querySelector<HTMLElement>('[data-space-id="this-mac"]');+const tile = () => row()?.parentElement ?? null;++describe.skipIf(!wasmBuilt)("This Mac's desktop row", () => {+ it("reads Not sharing with a Desktop tag, Hide in place of power, and Show hidden brings it back", async () => {+ await mountApp("/spaces", withDesktop(false));+ await waitFor(() => expect(row()).not.toBeNull());+ expect(row()!.getAttribute("data-state")).toBe("stopped");+ expect(row()!.textContent).toContain("Not sharing");+ expect(row()!.querySelector("[data-desktop-tag]")?.textContent).toBe("Desktop");+ expect(tile()!.querySelector("[data-tile-power]")).toBeNull();+ expect(tile()!.querySelector("[data-select]")).toBeNull();++ await act(async () => void fireEvent.click(tile()!.querySelector("[data-tile-hide]")!));+ await waitFor(() => expect(row()).toBeNull());+ await act(async () => void fireEvent.pointerDown(document.querySelector("[data-toolbar-menu='overflow']")!, { button: 0 }));+ await act(async () => void fireEvent.click(document.querySelector("[data-toolbar-menu='overflow']")!));+ const show = await waitFor(() => {+ const el = document.querySelector<HTMLElement>("[data-show-hidden]");+ expect(el).not.toBeNull();+ return el!;+ });+ await act(async () => void fireEvent.click(show));+ await waitFor(() => expect(row()).not.toBeNull());+ });++ it("never counts as a Space: the count and the running number stay the same with it listed", async () => {+ const summary = () => document.querySelector("main header p, header p")?.textContent ?? "";+ await mountApp("/spaces", { failsCreates: false, listsGhost: false });+ const without = await waitFor(() => {+ expect(summary()).toMatch(/\d+ Spaces? on [1-9]/);+ return summary();+ });+ cleanup();+ await mountApp("/spaces", withDesktop(false));+ await waitFor(() => expect(row()).not.toBeNull());+ await waitFor(() => expect(summary()).toBe(without));+ });++ it("with no other Space and not sharing, the Spaces page is the normal empty state", async () => {+ await mountApp("/spaces", withDesktop(false, true));+ await waitFor(() => expect(document.querySelector("[data-empty-home]")).not.toBeNull());+ expect(row()).toBeNull();+ expect(document.querySelector("[data-space-list], [data-tile-picture]")).toBeNull();+ });++ it("with no other Space and sharing, the list holds the desktop row, running", async () => {+ await mountApp("/spaces", withDesktop(true, true));+ await waitFor(() => expect(row()).not.toBeNull());+ expect(row()!.getAttribute("data-state")).toBe("running");+ expect(row()!.textContent).toContain("Sharing");+ expect(document.querySelector("[data-empty-home]")).toBeNull();+ });++ it("its page is a Space's page with the share prompt where the stream would be, and the chat beside it", async () => {+ const actions: string[] = [];+ await mountApp("/spaces/this-mac", {+ ...withDesktop(false),+ intercept: (op, args) => {+ if (op === "host.action") {+ actions.push((args as { action: string }).action);+ return null;+ }+ return undefined;+ },+ });+ const stage = await waitFor(() => {+ const el = document.querySelector<HTMLElement>("[data-this-mac-desktop]");+ expect(el).not.toBeNull();+ return el!;+ });+ // The same page as any Space: header, call layout, thread and composer.+ expect(document.querySelector("[data-call-layout]")).not.toBeNull();+ expect(document.querySelector("textarea")).not.toBeNull();+ expect(stage.getAttribute("data-this-mac-desktop")).toBe("off");+ expect(stage.textContent).toContain("You aren't sharing your desktop as a Space");+ expect(document.querySelector("[data-stream-surface], video, canvas")).toBeNull();+ expect(document.body.textContent).not.toContain("\u00b7");++ // Writing while not sharing lights the prompt and keeps the draft.+ const box = document.querySelector<HTMLTextAreaElement>("textarea")!;+ await act(async () => void fireEvent.change(box, { target: { value: "look at my screen" } }));+ await act(async () => void fireEvent.keyDown(box, { key: "Enter" }));+ await waitFor(() => expect(document.querySelector("[data-this-mac-desktop][data-nudge]")).not.toBeNull());+ expect(document.querySelector<HTMLTextAreaElement>("textarea")!.value).toBe("look at my screen");++ // The button turns sharing on.+ await act(async () => void fireEvent.click(document.querySelector("[data-desktop-share-button]")!));+ await waitFor(() => expect(actions).toContain("share-desktop"));+ });+});++describe.skipIf(!wasmBuilt)("Home's Your Spaces", () => {+ it("lists running Spaces first, even when the list holds them last", async () => {+ await mountApp("/home", {+ failsCreates: false,+ listsGhost: false,+ // The host lists them in the opposite order: the running ones come last.+ answer: (op, out) => (op === "spaces.list" ? [...(out as unknown[])].reverse() : out),+ });+ const states = await waitFor(() => {+ const tiles = [...document.querySelectorAll<HTMLElement>("[data-home-spaces] [data-space-id]")];+ expect(tiles.length).toBeGreaterThan(0);+ return tiles.map((t) => t.getAttribute("data-state"));+ });+ const firstOther = states.findIndex((s) => s !== "running");+ expect(states[0]).toBe("running");+ if (firstOther >= 0) expect(states.slice(firstOther).every((s) => s !== "running")).toBe(true);+ // The sidebar names the page for what it lists.+ expect(screen.getAllByText("Machines").length).toBeGreaterThan(0);+ expect(screen.queryByText("Computers")).toBeNull();+ });+});diff --git a/apps/cua-spaces-web/src/__tests__/first-run.test.tsx b/apps/cua-spaces-web/src/__tests__/first-run.test.tsxindex 3da2b87fbe..6127ae7792 100644--- a/apps/cua-spaces-web/src/__tests__/first-run.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/first-run.test.tsx@@ -128,7 +128,7 @@ const noAgents = (rows: AgentSetupRow[]) => rows.map((r) => ({ ...r, installed:describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("asks once, naming the apps found, and connects nothing until Set up", async () => {const calls = await mount();- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toBe("Let your 6 coding apps use Cua?"));// The apps found here, most preferred first; nothing connected by itself, no per-app buttons or file paths.@@ -153,18 +153,18 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("Not now moves on and sets up nothing, and Cua never sets up later installs on its own", async () => {const calls = await mount();- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toMatch(ASK));click("[data-first-run-secondary]");- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));expect(calls.some((c) => c.op === "agents.configure")).toBe(false);expect(connectedAppsState().auto).toBe(false);});it("says plainly which app needs a hand, with Try again and the text to paste", { timeout: 30_000 }, async () => {await mount({ demo: { agentsReadOnly: ["cursor"] }, agents: (rows) => rows.map((r) => ({ ...r, installed: ["codex", "cursor"].includes(r.agent) })) });- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toBe("Let OpenAI Codex and Cursor use Cua?"));click("[data-first-run-set-up]");@@ -185,9 +185,9 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {expect(document.querySelector("[data-onboarding-primary]")!.textContent).toBe("Continue");});- it("walks Welcome, the question, Connect your devices and Try it, connecting only what is asked", async () => {+ it("walks Welcome, the question, Connect your machines and Try it, connecting only what is asked", async () => {const calls = await mount({ agents: onlyCodex });- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toBe("Let OpenAI Codex use Cua?"));click("[data-first-run-set-up]");@@ -196,8 +196,8 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {expect(readFirstRun().picked).toEqual(["codex"]);expect(calls.filter((c) => c.op === "agents.connect")).toHaveLength(1);click("[data-onboarding-primary]");- await waitFor(() => expect(heading()).toBe("Add your other computers."));- expect(document.querySelector("[data-first-run-devices]")!.textContent).toMatch(/Your other computers.*Your cloud/);+ await waitFor(() => expect(heading()).toBe("Add your other machines."));+ expect(document.querySelector("[data-first-run-devices]")!.textContent).toMatch(/Your other machines.*Your cloud/);expect(document.body.textContent).not.toMatch(/phone/i);click("[data-first-run-secondary]");await waitFor(() => expect(heading()).toBe("Try it in OpenAI Codex."));@@ -224,11 +224,11 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {.flatMap((c) => (c.args as { signals: { type: string; page: string; action: string; choice: string }[] }).signals).filter((s) => s.type === "onboarding-page" && s.action.startsWith("step_")).map((s) => `${s.page} ${s.action}${s.choice === "none" ? "" : ` ${s.choice}`}`);- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toMatch(ASK));click("[data-first-run-secondary]");- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));click("[data-first-run-secondary]");await waitFor(() => expect(document.querySelector("[data-step]")?.getAttribute("data-step")).toBe("setup"));click("[data-onboarding-later]");@@ -260,7 +260,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {},answer: (op, out) => (op === "settings.get" ? { ...(out as object), telemetry: { ...(out as { telemetry: object }).telemetry, enabled: false } } : out),});- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toMatch(ASK));await new Promise((r) => setTimeout(r, 50));@@ -269,7 +269,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("Back works from every step after Welcome, all the way to Welcome, keeping what was picked", async () => {const calls = await mount({ agents: onlyCodex });- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));expect(document.querySelector("[data-first-run-back]")).toBeNull();click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toMatch(ASK));@@ -277,17 +277,17 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {await waitFor(() => expect(readFirstRun().picked).toEqual(["codex"]));await waitFor(() => expect(heading()).toBe("OpenAI Codex can use Cua."));click("[data-onboarding-primary]");- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));click("[data-first-run-secondary]");await waitFor(() => expect(heading()).toBe("Try it in OpenAI Codex."));// Try it → Connect your devices → Pick your agent → Welcome.click("[data-first-run-back]");- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));click("[data-first-run-back]");await waitFor(() => expect(heading()).toMatch(ASK));expect(document.querySelector<HTMLElement>('[data-first-run-agent="codex"]')!.dataset.connected).toBe("true");click("[data-first-run-back]");- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));// Going back only navigates: nothing was connected again or undone.expect(readFirstRun().picked).toEqual(["codex"]);expect(calls.filter((c) => c.op === "agents.connect")).toHaveLength(1);@@ -296,7 +296,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("Back sits above the heading, apart from the choices; Tab goes primary, secondary, Back; Esc goes back", async () => {writeFirstRun({ step: "devices" });await mount();- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));const step = document.querySelector<HTMLElement>('[data-first-run="devices"]')!;const back = step.querySelector<HTMLElement>("[data-first-run-back]")!;// Drawn first (above the heading), but last in the page's order.@@ -310,10 +310,10 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {fireEvent.keyDown(window, { key: "Escape" });await waitFor(() => expect(heading()).toMatch(ASK));fireEvent.keyDown(window, { key: "Escape" });- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));// Welcome has no Back, so Esc stays.fireEvent.keyDown(window, { key: "Escape" });- expect(heading()).toBe("Your computers, shared by your team and its agents.");+ expect(heading()).toBe("Your machines, shared by your team and its agents.");});it("shows no sign-ins or keys: those live in Settings, Connectors", async () => {@@ -327,7 +327,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("Sign in starts the one sign-in; Not now skips it", async () => {writeFirstRun({ step: "devices" });const calls = await mount();- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));expect(document.body.textContent).toMatch(/You can sign in later\./);click('[data-first-run-devices-primary="sign-in"]');await waitFor(() => expect(calls.some((c) => c.op === "session.signIn")).toBe(true));@@ -335,7 +335,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("a disk-image install offers the Cua CLI after Pick your agent: the exact file, then Install only when pressed", async () => {const calls = await mount({ cli: "missing" });- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toMatch(ASK));// The install plan is read: the run has the CLI's screen.@@ -354,7 +354,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {expect(document.querySelector("[data-first-run-cli-done]")!.textContent).toMatch(/cua spaces ls/);await waitFor(() => expect(document.querySelector('[data-first-run-cli-primary="continue"]')!.textContent).toBe("Continue"));click('[data-first-run-cli-primary="continue"]');- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));// Back shows the result again.click("[data-first-run-back]");await waitFor(() => expect(heading()).toBe("Cua is ready in Terminal."));@@ -362,7 +362,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("Not now leaves the CLI as it is; with the CLI already installed there is no such screen", async () => {const calls = await mount({ cli: "missing" });- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toMatch(ASK));// The install plan is read: the run has the CLI's screen.@@ -370,18 +370,18 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {click("[data-first-run-secondary]");await waitFor(() => expect(heading()).toBe("Use Cua from the Terminal."));click("[data-first-run-secondary]");- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));expect(calls.some((c) => c.op === "cli.install")).toBe(false);cleanup();localStorage.clear();resetSavedOnboardingCache();resetFirstRunCache();await mount();- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toMatch(ASK));click("[data-first-run-secondary]");- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));});it("a signed-in Mac that shares its screen asks for two permissions in its own words, and Allow opens the guide", async () => {@@ -470,7 +470,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {it("with no agent: install one or use the CLI, then a one-click first Space", async () => {const calls = await mount({ agents: noAgents, local: (l) => ({ ...l, backends: ["docker"], macosImage: null, hostArch: "amd64" }) });- await waitFor(() => expect(heading()).toBe("Your computers, shared by your team and its agents."));+ await waitFor(() => expect(heading()).toBe("Your machines, shared by your team and its agents."));click("[data-onboarding-primary]");await waitFor(() => expect(heading()).toBe("We didn\u2019t find a coding app yet."));expect(agents()).toEqual([]);@@ -480,7 +480,7 @@ describe.skipIf(!wasmBuilt)("the first run (real route, wasm core)", () => {expect(document.body.textContent).toMatch(/Spaces work without a coding app\./);expect(screen.getByRole("button", { name: "Check again" })).toBeTruthy();fireEvent.click(screen.getByRole("button", { name: "Continue without one" }));- await waitFor(() => expect(heading()).toBe("Add your other computers."));+ await waitFor(() => expect(heading()).toBe("Add your other machines."));click("[data-first-run-secondary]");await waitFor(() => expect(heading()).toBe("Try a first Space."));const linux = await waitFor(() => {diff --git a/apps/cua-spaces-web/src/__tests__/machines-page.test.tsx b/apps/cua-spaces-web/src/__tests__/machines-page.test.tsxindex 075fa131e6..d686284e9c 100644--- a/apps/cua-spaces-web/src/__tests__/machines-page.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/machines-page.test.tsx@@ -133,11 +133,17 @@ describe.skipIf(!wasmBuilt)("the Machines page (real routes, wasm core)", () =>let detail = await detailOf("Ada's MacBook Pro");const switches = () => [...detail.querySelectorAll<HTMLElement>("[data-machine-toggle] [role=switch]")];expect(switches().map((s) => s.getAttribute("aria-disabled") === "true" || s.hasAttribute("data-disabled"))).toEqual([false]);+ // One switch on this Mac's page: its desktop. "Let other machines create Spaces here" is a Settings row.+ const labels = () => [...detail.querySelectorAll("[data-machine-toggle]")].map((t) => t.textContent);+ expect(labels()).toEqual([expect.stringContaining("Let other machines control this desktop")]);+ expect(detail.textContent).not.toContain("devices");// Another Mac: read-only, and where to change it.select("studio");detail = await detailOf("cua's Mac Studio");expect(switches().every((s) => s.hasAttribute("data-disabled"))).toBe(true);+ // Every other machine shows both switches, read-only, in the owner's words.+ expect(labels()).toEqual([expect.stringContaining("Let other machines create Spaces here"), expect.stringContaining("Let other machines control this desktop")]);expect(detail.querySelector("[data-machine-toggles-note]")?.textContent).toBe("Change this on that Mac.");// No Space actions on a machine.expect(within(detail).queryByRole("button", { name: /^(Open|Start|Stop|Teleport)/ })).toBeNull();@@ -331,7 +337,7 @@ describe.skipIf(!wasmBuilt)("the Machines page (real routes, wasm core)", () =>await router.load();await screen.findByText(view.summary);const line = (id: string) => document.querySelector(`[data-machine-id="${id}"] [data-machine-line]`)?.textContent;- expect([line("solo"), line("both"), line("spaces")]).toEqual(["Desktop shared", "Desktop \u00b7 2 Spaces", "1 Space running"]);+ expect([line("solo"), line("both"), line("spaces")]).toEqual(["Desktop shared", "Desktop and 2 Spaces", "1 Space running"]);select("solo");const detail = await detailOf("solo");const rows = [...detail.querySelectorAll<HTMLElement>("[data-machine-spaces] [data-space-row]")];diff --git a/apps/cua-spaces-web/src/__tests__/native-parity.test.tsx b/apps/cua-spaces-web/src/__tests__/native-parity.test.tsxindex 8f45b60f82..ec3ef6c50d 100644--- a/apps/cua-spaces-web/src/__tests__/native-parity.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/native-parity.test.tsx@@ -64,8 +64,8 @@ describe.skipIf(!wasmBuilt)("as the SwiftUI app (real routes, wasm core)", () =>expect(status.getAttribute("data-this-device-status")).toBe("needs-enrollment");expect(document.querySelector("[data-this-device-name]")?.textContent).toBe("cua's Mac Studio");// One Enroll…: the row's. The line under it says what it is for.- expect(screen.getAllByRole("button", { name: /^Trust this computer/ })).toHaveLength(1);- expect(document.querySelector("[data-banner-text]")?.textContent).toMatch(/Trust this computer/);+ expect(screen.getAllByRole("button", { name: /^Trust this machine/ })).toHaveLength(1);+ expect(document.querySelector("[data-banner-text]")?.textContent).toMatch(/Trust this machine/);// "Enrolled", "Revoke" and "Re-verify" are the core's words; the page says them plainly.expect(document.body.textContent).not.toMatch(/enroll/i);// The relay's refusal is what "Needs enrollment" already says.diff --git a/apps/cua-spaces-web/src/__tests__/settings-advanced.test.tsx b/apps/cua-spaces-web/src/__tests__/settings-advanced.test.tsxindex c6493a0c06..622e70d694 100644--- a/apps/cua-spaces-web/src/__tests__/settings-advanced.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/settings-advanced.test.tsx@@ -35,7 +35,7 @@ describe.skipIf(!wasmBuilt)("account usage and self-hosting in Settings (real roreturn el as HTMLElement;});expect(usage.textContent).toContain("Time away from this computer");- expect(usage.textContent).toContain("away from the computer you're using");+ expect(usage.textContent).toContain("away from the machine you're using");expect(document.body.textContent).not.toMatch(/relay hours|remote hours/i);});diff --git a/apps/cua-spaces-web/src/__tests__/settings-sharing.test.tsx b/apps/cua-spaces-web/src/__tests__/settings-sharing.test.tsxnew file mode 100644index 0000000000..04894499bf--- /dev/null+++ b/apps/cua-spaces-web/src/__tests__/settings-sharing.test.tsx@@ -0,0 +1,43 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++// Settings, General, Sharing: "Let other machines create Spaces here" for this+// Mac, on by default. Turning it off and on again runs the host's own actions;+// there is no error and no command-line hint whichever way it is set.++import { act, cleanup, fireEvent, waitFor } from "@testing-library/react";+import { afterEach, describe, expect, it } from "vitest";++import { wasmBuilt } from "@/bridge/__tests__/testCore";+import { mountApp, stubBrowserApis } from "./app-harness";++stubBrowserApis();+afterEach(cleanup);++describe.skipIf(!wasmBuilt)("Settings, Sharing", () => {+ it("has the one switch, on by default, and flips it with the host's actions", async () => {+ const actions: string[] = [];+ await mountApp("/settings/general", {+ failsCreates: false,+ listsGhost: false,+ intercept: (op, args) => {+ if (op === "host.action") {+ actions.push((args as { action: string }).action);+ return null;+ }+ return undefined;+ },+ });+ const sw = await waitFor(() => {+ const el = document.querySelector<HTMLElement>("#share-spaces");+ expect(el).not.toBeNull();+ return el!;+ });+ expect(document.body.textContent).toContain("Let other machines create Spaces here");+ expect(document.body.textContent).not.toMatch(/cua host config|nothing to share/);+ const on = (sw as HTMLInputElement).checked || sw.getAttribute("aria-checked") === "true" || sw.hasAttribute("data-checked");+ await act(async () => void fireEvent.click(sw));+ await waitFor(() => expect(actions.length).toBeGreaterThan(0));+ expect(actions[0]).toBe(on ? "stop-providing-spaces" : "provide-spaces");+ });+});diff --git a/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsx b/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsxindex 335ce103da..88f1319398 100644--- a/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/settings-tabs.test.tsx@@ -2,7 +2,7 @@// Copyright (c) 2026 Cua AI, Inc.// Settings' six tabs on the real routes and the wasm core: Account, General,-// Connectors, Trusted devices, Advanced, About. The old addresses+// Connectors, Trusted machines, Advanced, About. The old addresses// (Agents, Experiments) still land on the right tab, and what moved is where// the audit put it.@@ -25,17 +25,17 @@ const tab = (id: string) => document.querySelector<HTMLElement>(`[data-settings-const labels = () => [...document.querySelectorAll<HTMLElement>('nav[aria-label="Settings"] a')].map((a) => a.textContent);describe.skipIf(!wasmBuilt)("Settings tabs (real routes, wasm core)", () => {- it("has Account, General, Connectors, Trusted devices, Advanced and About, in that order", async () => {+ it("has Account, General, Connectors, Trusted machines, Advanced and About, in that order", async () => {await mountApp("/settings", host);await waitFor(() => expect(tab("account")).not.toBeNull());- expect(labels()).toEqual(["Account", "General", "Connectors", "Trusted devices", "Advanced", "About"]);+ expect(labels()).toEqual(["Account", "General", "Connectors", "Trusted machines", "Advanced", "About"]);});it.each([["/settings", "Account"],["/settings/general", "General"],["/settings/connectors", "Connectors"],- ["/settings/devices", "Trusted devices"],+ ["/settings/devices", "Trusted machines"],["/settings/advanced", "Advanced"],["/settings/about", "About"],])("marks only the tab for %s as selected (%s)", async (path, label) => {diff --git a/apps/cua-spaces-web/src/__tests__/space-detail-device.test.tsx b/apps/cua-spaces-web/src/__tests__/space-detail-device.test.tsxindex 4951189920..cf9a2cd612 100644--- a/apps/cua-spaces-web/src/__tests__/space-detail-device.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/space-detail-device.test.tsx@@ -18,7 +18,7 @@ stubBrowserApis();const NOTICE = {kind: "needs-enrollment",status: "Not enrolled",- text: "Enroll this Mac to connect to your other computers.",+ text: "Enroll this Mac to connect to your other machines.",actionLabel: "Enroll This Mac…",};@@ -42,14 +42,15 @@ function host(rows: unknown[], over: { access?: boolean; sharing?: boolean } = {}describe.skipIf(!wasmBuilt)("this machine's own desktop opened as a Space page (real routes, wasm core)", () => {- // Regression: the Computers page's "This computer · Desktop" row opened a+ // Regression: the Machines page's "This computer · Desktop" row opened a// Space page that said "Loading the desktop…" forever, "No windows: the// Space's window host is not up" and "Could not read this Space's agents":// nothing streams this machine's own screen here, and it is not a Space to- // ask for windows or agents. Its page now says why, with one action.- it("says why instead of loading forever, asks it for no windows or agents, and links to Computers", async () => {+ // ask for windows or agents. Its page now says whether the desktop is shared,+ // with the switch right there.+ it("says whether the desktop is shared instead of loading forever, and asks it for no windows or agents", async () => {// As the SwiftUI app sends This Mac while it shares its desktop (`spaceToRow`).- const thisMac = { id: "this-mac", name: "This computer", provider: "local", os: "macos", spacesdVersion: "", features: [], reachable: true, powerState: "running" };+ const thisMac = { id: "this-mac", name: "This Mac", provider: "local", os: "macos", spacesdVersion: "", features: [], reachable: true, powerState: "running" };const asked: string[] = [];const { router } = await mountApp("/spaces", {...host([thisMac]),@@ -60,12 +61,12 @@ describe.skipIf(!wasmBuilt)("this machine's own desktop opened as a Space page (},});await act(() => router.navigate({ to: "/spaces/$spaceId", params: { spaceId: "this-mac" } }));- const note = await waitFor(() => {- const n = document.querySelector("[data-machine-desktop-note]");+ const page = await waitFor(() => {+ const n = document.querySelector("[data-this-mac-desktop]");expect(n).not.toBeNull();return n!;});- expect(note.textContent).toContain("This is this Mac’s own screen");+ expect(page.textContent).toContain("You're sharing your desktop as a Space");expect(screen.queryByText("Loading the desktop…")).toBeNull();expect(document.querySelector("[data-stream-surface]")).toBeNull();expect(document.querySelector('[data-section="agents"]')).toBeNull();@@ -73,8 +74,6 @@ describe.skipIf(!wasmBuilt)("this machine's own desktop opened as a Space page (// Give the page's polls a chance to run: none asks This Mac.await new Promise((r) => setTimeout(r, 50));expect(asked.filter((op) => op === "spaces.windows" || op === "agents.runs")).toEqual([]);- fireEvent.click(screen.getByRole("link", { name: "Open Computers" }));- await waitFor(() => expect(router.state.location.pathname).toBe("/machines"));});});diff --git a/apps/cua-spaces-web/src/__tests__/spaces-list-incomplete.test.tsx b/apps/cua-spaces-web/src/__tests__/spaces-list-incomplete.test.tsxindex e3f573576e..46ab6f5b64 100644--- a/apps/cua-spaces-web/src/__tests__/spaces-list-incomplete.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/spaces-list-incomplete.test.tsx@@ -49,7 +49,7 @@ describe("the Spaces page while the list is incomplete", { timeout: 30_000 }, ()// This machine answered, 6 computers have not yet.status.current = { loaded: true, incomplete: true, reaching: 6, stale: false };act(() => emit({ type: "spaces.changed" }));- await waitFor(() => expect(reaching()).toBe("Reaching 6 computers…"), WAIT);+ await waitFor(() => expect(reaching()).toBe("Reaching 6 machines…"), WAIT);expect(emptyHome()).toBeNull();// Every computer answered and there is no Space: now it is empty.@@ -62,7 +62,7 @@ describe("the Spaces page while the list is incomplete", { timeout: 30_000 }, ()it("shows the Spaces known so far with the line under them", async () => {const status = { current: { loaded: true, incomplete: true, reaching: 1, stale: false } };await mount(status, false);- await waitFor(() => expect(reaching()).toBe("Reaching 1 computer…"), WAIT);+ await waitFor(() => expect(reaching()).toBe("Reaching 1 machine…"), WAIT);const grid = document.querySelector("ul.grid");expect(grid?.children.length).toBeGreaterThan(0);// The line follows the tiles, so they do not move when it goes.@@ -82,9 +82,9 @@ describe("listView", () => {// The core's decision, and the TypeScript stand-in without it, agree.const cases: [ListStatus, number, { empty: boolean; reachingLine: string | null }][] = [[{ loaded: false, incomplete: false, reaching: 0, stale: false }, 0, { empty: false, reachingLine: "Loading Spaces…" }],- [{ loaded: true, incomplete: true, reaching: 6, stale: false }, 0, { empty: false, reachingLine: "Reaching 6 computers…" }],- [{ loaded: true, incomplete: true, reaching: 1, stale: false }, 2, { empty: false, reachingLine: "Reaching 1 computer…" }],- [{ loaded: true, incomplete: true, reaching: 0, stale: false }, 0, { empty: false, reachingLine: "Reaching your computers…" }],+ [{ loaded: true, incomplete: true, reaching: 6, stale: false }, 0, { empty: false, reachingLine: "Reaching 6 machines…" }],+ [{ loaded: true, incomplete: true, reaching: 1, stale: false }, 2, { empty: false, reachingLine: "Reaching 1 machine…" }],+ [{ loaded: true, incomplete: true, reaching: 0, stale: false }, 0, { empty: false, reachingLine: "Reaching your machines…" }],[{ loaded: true, incomplete: false, reaching: 0, stale: false }, 0, { empty: true, reachingLine: null }],[{ loaded: true, incomplete: false, reaching: 0, stale: false }, 3, { empty: false, reachingLine: null }],];diff --git a/apps/cua-spaces-web/src/__tests__/spaces-page-rules.test.tsx b/apps/cua-spaces-web/src/__tests__/spaces-page-rules.test.tsxindex b45cec637c..eefd899ce4 100644--- a/apps/cua-spaces-web/src/__tests__/spaces-page-rules.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/spaces-page-rules.test.tsx@@ -93,8 +93,8 @@ describe("which Spaces, in which order", () => {it("grid by last used: running first, most recent first in each", () => {expect(names({})).toEqual(["alpha", "charlie", "bravo", "delta"]);});- it("list by last used: strictly by the column", () => {- expect(names({ view: "list" })).toEqual(["bravo", "delta", "alpha", "charlie"]);+ it("list by last used: the same order, running first", () => {+ expect(names({ view: "list" })).toEqual(["alpha", "charlie", "bravo", "delta"]);});it("name A to Z, size biggest first with unknown sizes last", () => {expect(names({ sort: "name" })).toEqual(["alpha", "bravo", "charlie", "delta"]);diff --git a/apps/cua-spaces-web/src/__tests__/spaces-page.test.tsx b/apps/cua-spaces-web/src/__tests__/spaces-page.test.tsxindex f40b2be630..aa8c221441 100644--- a/apps/cua-spaces-web/src/__tests__/spaces-page.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/spaces-page.test.tsx@@ -61,7 +61,7 @@ describe.skipIf(!wasmBuilt)("the Spaces page", () => {await pickMenu("sort", "Name");await waitFor(() => expect(router.state.location.search).toEqual({ on: "this-mac", sort: "name" }));await waitFor(() => expect(tiles()).toEqual(["local:agent-sandbox", "local:design-review"]));- await pickMenu("computer", "All computers");+ await pickMenu("computer", "All machines");await waitFor(() => expect(router.state.location.search).toEqual({ sort: "name" }));});diff --git a/apps/cua-spaces-web/src/__tests__/upsell.test.tsx b/apps/cua-spaces-web/src/__tests__/upsell.test.tsxindex 930b7ba98e..507bfd8f08 100644--- a/apps/cua-spaces-web/src/__tests__/upsell.test.tsx+++ b/apps/cua-spaces-web/src/__tests__/upsell.test.tsx@@ -68,7 +68,7 @@ describe.skipIf(!wasmBuilt)("in-app Pro and Teams prompts (real routes, wasm correturn el as HTMLElement;});expect(card.getAttribute("data-plan-card")).toBe("free");- expect(card.textContent).toBe("Free: 2 computers at once and 20 hours a month away from the computer you're using.");+ expect(card.textContent).toBe("Free: 2 machines at once and 20 hours a month away from the machine you're using.");// "Free plan" shows once, in the plan row.const tab = document.querySelector<HTMLElement>('[data-settings-tab="account"]')!;expect(tab.textContent).not.toContain("Free plan");@@ -92,7 +92,7 @@ describe.skipIf(!wasmBuilt)("in-app Pro and Teams prompts (real routes, wasm corexpect(sessions.getAttribute("aria-valuemax")).toBe("5");expect(sessions.hasAttribute("data-full")).toBe(true);const hours = document.querySelector('[data-usage-meter="Remote hours"]')!;- expect(document.body.textContent).toContain("Computers in use right now");+ expect(document.body.textContent).toContain("Machines in use right now");expect(document.body.textContent).toContain("Time away from this computer");expect(hours.getAttribute("aria-valuenow")).toBe("12");expect(hours.hasAttribute("data-full")).toBe(false);@@ -114,7 +114,7 @@ describe.skipIf(!wasmBuilt)("in-app Pro and Teams prompts (real routes, wasm corexpect(el).toBeTruthy();return el as HTMLElement;});- expect(card.textContent).toBe("Pro: 5 computers at once and 200 hours a month away from the computer you're using.");+ expect(card.textContent).toBe("Pro: 5 machines at once and 200 hours a month away from the machine you're using.");expect(document.querySelector("[data-plan-primary]")).toBeNull();expect(document.querySelector("[data-manage-account]")?.textContent).toBe("Manage account on the web");});@@ -169,7 +169,7 @@ describe.skipIf(!wasmBuilt)("in-app Pro and Teams prompts (real routes, wasm corit("never during a live session", async () => {const { router } = await mountApp("/machines", host(idle({ liveSessions: 1 })));await router.load();- await waitFor(() => expect(document.querySelector("[data-machine-row], [aria-label=Computers]")).toBeTruthy());+ await waitFor(() => expect(document.querySelector("[data-machine-row], [aria-label=Machines]")).toBeTruthy());await act(() => new Promise((r) => setTimeout(r, 50)));expect(document.querySelector("[data-upsell]")).toBeNull();});@@ -177,7 +177,7 @@ describe.skipIf(!wasmBuilt)("in-app Pro and Teams prompts (real routes, wasm corit("never during an agent run", async () => {const { router } = await mountApp("/machines", host(idle(), [], [], true));await router.load();- await waitFor(() => expect(document.querySelector("[aria-label=Computers]")).toBeTruthy());+ await waitFor(() => expect(document.querySelector("[aria-label=Machines]")).toBeTruthy());await act(() => new Promise((r) => setTimeout(r, 80)));expect(document.querySelector("[data-upsell]")).toBeNull();});diff --git a/apps/cua-spaces-web/src/bridge/__tests__/agent-detail.test.tsx b/apps/cua-spaces-web/src/bridge/__tests__/agent-detail.test.tsxindex 64724b7a13..28c05e1014 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/agent-detail.test.tsx+++ b/apps/cua-spaces-web/src/bridge/__tests__/agent-detail.test.tsx@@ -124,7 +124,7 @@ describe.skipIf(!wasmBuilt)("useAgentDetail with the core", () => {const got = mount(await testCore());await waitFor(() => expect(got.d?.view?.memory.length).toBeGreaterThan(0));const v = got.d!.view!;- expect(v.tabs.map((t) => t.label)).toEqual(["Memory", "Routines", "Access to this computer"]);+ expect(v.tabs.map((t) => t.label)).toEqual(["Memory", "Routines", "Access to this machine"]);expect(v.subtitle).toMatch(/^Home agents\/ada\/, saved /);expect(v.memory.map((l) => l.text)).toEqual(["MEMORY.md", "notes/review-checklist.md", "notes/open-questions.md"]);@@ -179,7 +179,7 @@ describe.skipIf(!wasmBuilt)("useAgentDetail with the core", () => {it("revokes and allows this computer, and shows the agent's audit", async () => {const got = mount(await testCore());await waitFor(() => expect(got.d?.view?.access.length).toBe(1));- expect(got.d!.view!.access[0]).toMatchObject({ text: "This computer", actionLabel: "Revoke" });+ expect(got.d!.view!.access[0]).toMatchObject({ text: "This machine", actionLabel: "Revoke" });expect(got.d!.view!.allowThisMachineLabel ?? null).toBeNull();// Ada's own lines only (Claw's refusal and Atlas's use are not hers).expect(got.d!.view!.audit.map((l) => l.text)).toEqual(["Used relay:this-mac", "Allowed relay:this-mac"]);@@ -187,13 +187,13 @@ describe.skipIf(!wasmBuilt)("useAgentDetail with the core", () => {act(() => got.d!.act({ type: "revoke-computer", machine: "relay:this-mac" }));await waitFor(() => expect(got.d!.view!.access).toEqual([]));await idle(got);- expect(got.d!.view!.accessEmpty).toBe("This agent cannot use your computers.");- expect(got.d!.view!.allowThisMachineLabel).toBe("Allow on this computer");+ expect(got.d!.view!.accessEmpty).toBe("This agent cannot use your machines.");+ expect(got.d!.view!.allowThisMachineLabel).toBe("Allow on this machine");expect(got.d!.thisMachine).toBe("relay:this-mac");expect(got.d!.view!.audit[0]!.text).toBe("Revoked relay:this-mac");act(() => got.d!.act({ type: "allow-computer", machine: got.d!.thisMachine! }));- await waitFor(() => expect(got.d!.view!.access.map((l) => l.text)).toEqual(["This computer"]));+ await waitFor(() => expect(got.d!.view!.access.map((l) => l.text)).toEqual(["This machine"]));});it("says why a change failed", async () => {diff --git a/apps/cua-spaces-web/src/bridge/__tests__/agent-keys-hosts.test.tsx b/apps/cua-spaces-web/src/bridge/__tests__/agent-keys-hosts.test.tsxindex e40c52f8ac..3923a8e602 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/agent-keys-hosts.test.tsx+++ b/apps/cua-spaces-web/src/bridge/__tests__/agent-keys-hosts.test.tsx@@ -25,8 +25,8 @@ const WORDS = {},// cua keeps no agent key in a file and has no vault on Linux: no store is named.linux: {- intro: "Agents in your Spaces need a provider key to run. Keys stay on this computer, and each one is only given to the agents that use it.",- help: "It's saved on this computer and won't be shown again.",+ intro: "Agents in your Spaces need a provider key to run. Keys stay on this machine, and each one is only given to the agents that use it.",+ help: "It's saved on this machine and won't be shown again.",},} as const;diff --git a/apps/cua-spaces-web/src/bridge/__tests__/checklist.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/checklist.test.tsindex 5bcb40f151..ff1baa130e 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/checklist.test.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/checklist.test.ts@@ -70,7 +70,7 @@ describe("the getting-started checklist", () => {const view = checklistView(core, { done: { teleport: true }, dismissed: false, shown: true, skipped: {} })!;expect(view).toMatchObject({ visible: true, complete: false, title: "Get started", progress: "1 of 5" });expect(view.rows.map((r) => [r.step, r.action, r.done])).toEqual([- ["add_machine", "Add computer", false],+ ["add_machine", "Add machine", false],["create_space", "Create", false],["teleport", "Teleport", true],["share", "Share", false],diff --git a/apps/cua-spaces-web/src/bridge/__tests__/demo-platform.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/demo-platform.test.tsindex c8474dc19a..475ec04f3f 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/demo-platform.test.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/demo-platform.test.ts@@ -42,7 +42,7 @@ describe("the demo host on Windows and Linux", () => {it("names this machine after the system it runs on", async () => {for (const [p, name] of [[demoPlatformOf("win32", "x64"), "This PC"],- [demoPlatformOf("linux", "x64"), "This computer"],+ [demoPlatformOf("linux", "x64"), "This machine"],] as const) {const a = demo(p);const here = (await a.call("machines.list", {})).find((m) => m.current)!;@@ -67,7 +67,7 @@ describe("the demo host on Windows and Linux", () => {const section = storageSection(core, await a.call("storage.get", {}), storageInitial(core)!)!;const words = JSON.stringify(section);expect(words).not.toMatch(MAC_WORDS);- expect(words).toContain(p.os === "windows" ? "This PC" : "This computer");+ expect(words).toContain(p.os === "windows" ? "This PC" : "This machine");if (p.os === "linux") expect(words).toContain("Mounted at");const env = wizardEnv(core, {@@ -78,7 +78,7 @@ describe("the demo host on Windows and Linux", () => {});let state = wizardInitial(core, env);const system = wizardView(core, state, env, p.os);- expect(system.placements.find((o) => o.id === "local")?.label).toBe(p.os === "windows" ? "This PC" : "This computer");+ expect(system.placements.find((o) => o.id === "local")?.label).toBe(p.os === "windows" ? "This PC" : "This machine");state = wizardReduce(core, wizardReduce(core, wizardReduce(core, state, { type: "next" }, env), { type: "next" }, env), { type: "next" }, env);const summary = wizardView(core, state, env, p.os).summary;expect(JSON.stringify(summary)).not.toMatch(MAC_WORDS);diff --git a/apps/cua-spaces-web/src/bridge/__tests__/detail.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/detail.test.tsindex 3733b1a789..0edf013ab0 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/detail.test.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/detail.test.ts@@ -179,7 +179,7 @@ describe("this computer on the relay (CUA-1527)", () => {it("lists the machine that is set up for access once, as This computer, with its Spaces", () => {const spaces = { spaces: [wkSpace("relay:space-16dec1e7810d08b6", "remote-from-wl", HOST), wkSpace(`relay:${HOST}`, "lg-x11")] };const rows = toMachineRows(spaces as never, { devices: null, signedIn: true, host: status } as never, "linux");- expect(rows.map((r) => r.name)).toEqual(["This computer"]);+ expect(rows.map((r) => r.name)).toEqual(["This machine"]);const machines = toMachines(rows, []);expect(machines).toHaveLength(1);});@@ -192,12 +192,12 @@ describe("this computer on the relay (CUA-1527)", () => {it("does not list a Space registered on the relay as a machine", () => {const rows = toMachineRows({ spaces: [wkSpace("relay:space-32179dffc4bd8902", "lin-local")] } as never, { devices: null, signedIn: true } as never, "linux");- expect(rows.map((r) => r.name)).toEqual(["This computer"]);+ expect(rows.map((r) => r.name)).toEqual(["This machine"]);});it("still lists another machine's Spaces under that machine", () => {const rows = toMachineRows({ spaces: [wkSpace("relay:space-aaaa", "job", "feedfacefeedfacefeedfacefeedface")] } as never, { devices: null, signedIn: true, host: status } as never, "linux");- expect(rows.map((r) => r.name)).toEqual(["This computer", "lg-x11"]);+ expect(rows.map((r) => r.name)).toEqual(["This machine", "lg-x11"]);});});@@ -337,6 +337,6 @@ describe("the Machines rows listed here for an older host (machinesView)", () =>[machine("solo"), machine("both"), machine("box"), machine("stopped", { notSharing: "stopped sharing" })],[desktop("solo"), desktop("both"), hosted("both", 1), hosted("box", 1), hosted("box", 2), desktop("stopped", { sdk: { features: [], reachable: false, error: "stopped sharing" } })],);- expect(labels).toEqual({ solo: "Desktop shared", both: "Desktop · 1 Space", box: "2 Spaces", stopped: "No Spaces" });+ expect(labels).toEqual({ solo: "Desktop shared", both: "Desktop and 1 Space", box: "2 Spaces", stopped: "No Spaces" });});});diff --git a/apps/cua-spaces-web/src/bridge/__tests__/friendly-errors.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/friendly-errors.test.tsindex f977db0d93..82b65c77eb 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/friendly-errors.test.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/friendly-errors.test.ts@@ -21,7 +21,7 @@ describe("plain host errors", () => {it("joins: a bad code is one plain line, and the raw text goes to the log", () => {const raw = "cua: unauthenticated: host setup failed at register: relay: pairing code is not valid";const text = plainJoinError(new Error(raw));- expect(text).toBe("That code didn't work. It may be used, expired or mistyped. Make a new one in Add a computer.");+ expect(text).toBe("That code didn't work. It may be used, expired or mistyped. Make a new one in Add a machine.");expect(warn).toHaveBeenCalledWith(expect.any(String), raw);});@@ -51,7 +51,7 @@ describe("plain host errors", () => {it("pairing: an unregistered computer is told to set up first", () => {const text = plainPairingError(new Error("not found: relay: no such device"));- expect(text).toBe("This computer isn't set up for access yet. Set it up first, then add computers.");+ expect(text).toBe("This machine isn't set up for access yet. Set it up first, then add machines.");});it("pairing: other failures keep a plain reason", () => {diff --git a/apps/cua-spaces-web/src/bridge/__tests__/onboarding.test.tsx b/apps/cua-spaces-web/src/bridge/__tests__/onboarding.test.tsxindex 0e2f26dce3..ae158f9688 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/onboarding.test.tsx+++ b/apps/cua-spaces-web/src/bridge/__tests__/onboarding.test.tsx@@ -63,11 +63,11 @@ describe.each([it("walks the web pages in the core's order, past the native-only ones", async () => {const core = await getCore();let s = onboardingInitial(core, null);- expect(onboardingView(core, s, "linux").dots.map((d) => d.label)).toEqual(["Welcome", "Sign in", "AI agents", "This computer", "Done"]);+ expect(onboardingView(core, s, "linux").dots.map((d) => d.label)).toEqual(["Welcome", "Sign in", "AI agents", "This machine", "Done"]);s = onboardingReduce(core, s, { type: "start" }, ctx);expect(s.step).toBe("signin");expect(onboardingView(core, s, "linux").canSkip).toBe(true);- expect(onboardingView(core, s, "linux").lede).toBe("Sign in to reach your computers and Spaces from any of your devices. You can skip this and sign in later.");+ expect(onboardingView(core, s, "linux").lede).toBe("Sign in to reach your machines and Spaces from any of your machines. You can skip this and sign in later.");s = onboardingReduce(core, s, { type: "signin-done" }, ctx);expect(s.step).toBe("agents");s = onboardingReduce(core, s, { type: "agents-done", configured: ["Codex"] }, ctx);@@ -86,8 +86,8 @@ describe.each([["signin", false, "Sign in"],["agents", true, null],]);- expect(v.summary.map((f) => f.label)).toEqual(["This computer"]);- expect(onboardingView(core, s, "windows").summary.map((f) => f.label)).toEqual(["This computer"]);+ expect(v.summary.map((f) => f.label)).toEqual(["This machine"]);+ expect(onboardingView(core, s, "windows").summary.map((f) => f.label)).toEqual(["This machine"]);s = onboardingReduce(core, s, { type: "signed-in", identity: "[email protected]" }, ctx);v = onboardingView(core, s, "linux");expect(v.title).toBe("You're all set");@@ -109,7 +109,7 @@ describe.each([const core = await getCore();const mac = { menuBar: false, os: "macos" as HostOs };let s = onboardingInitial(core, null);- expect(onboardingView(core, s, "macos").dots.map((d) => d.label)).toEqual(["Welcome", "Sign in", "AI agents", "Menu bar", "This computer", "Done"]);+ expect(onboardingView(core, s, "macos").dots.map((d) => d.label)).toEqual(["Welcome", "Sign in", "AI agents", "Menu bar", "This machine", "Done"]);s = onboardingReduce(core, s, { type: "start" }, mac);s = onboardingReduce(core, s, { type: "signin-done" }, mac);s = onboardingReduce(core, s, { type: "agents-done", configured: [] }, mac);@@ -130,7 +130,7 @@ describe.each([s = onboardingReduce(core, s, { type: "presentation-done" }, { ...mac, menuBar: true });s = onboardingReduce(core, s, { type: "mode-chosen", mode: "client" }, { ...mac, menuBar: true });v = onboardingView(core, s, "macos");- expect(v.summary.map((f) => f.label)).toEqual(["Shows in", "This computer"]);+ expect(v.summary.map((f) => f.label)).toEqual(["Shows in", "This machine"]);expect((v.todos ?? []).some((t) => t.id === "cli")).toBe(false);expect(v.summary.find((f) => f.label === "Shows in")?.value).toBe("Menu bar only");});diff --git a/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsx b/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsxindex d00f507add..e7dc3f397d 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsx+++ b/apps/cua-spaces-web/src/bridge/__tests__/settings.test.tsx@@ -96,7 +96,7 @@ describe.skipIf(!wasmBuilt)("Settings and Notifications through the core", () =>await waitFor(() => expect(hooks.login.data?.input.status).toBe("enabled"));await hooks.login.setLaunchAtLogin(false);await waitFor(() => expect(hooks.login.data?.input.status).toBe("notRegistered"));- expect(hooks.login.data?.rows?.[1]?.label).toBe("This computer runs persistent agents, which stop after a restart until you open Cua Spaces.");+ expect(hooks.login.data?.rows?.[1]?.label).toBe("This machine runs persistent agents, which stop after a restart until you open Cua Spaces.");});it("lists the account's devices, approves the waiting one by code and revokes another", async () => {diff --git a/apps/cua-spaces-web/src/bridge/__tests__/space-disk.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/space-disk.test.tsindex 645d2156f2..70cf082edb 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/space-disk.test.ts+++ b/apps/cua-spaces-web/src/bridge/__tests__/space-disk.test.ts@@ -14,7 +14,7 @@ const GB = 1024 ** 3;describe("spaceDiskBytes", () => {const snap = demoResources(demoSpaceRows(0), 0);- it("answers this Mac's Spaces and yours on other computers by this app's id, stopped ones too", () => {+ it("answers this Mac's Spaces and yours on other machines by this app's id, stopped ones too", () => {expect(spaceDiskBytes(snap, "local:design-review")).toBe(19 * GB);expect(spaceDiskBytes(snap, "local:agent-sandbox")).toBe(6 * GB);expect(spaceDiskBytes(snap, "relay:mac-mini/release-checks")).toBe(21 * GB);diff --git a/apps/cua-spaces-web/src/bridge/__tests__/volume.test.tsx b/apps/cua-spaces-web/src/bridge/__tests__/volume.test.tsxindex bd7ce47d30..1dcd4004c0 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/volume.test.tsx+++ b/apps/cua-spaces-web/src/bridge/__tests__/volume.test.tsx@@ -129,6 +129,6 @@ describe.skipIf(!wasmBuilt)("the first run's Cua Volume page", () => {act(() => probe.flow.send({ type: "mode-chosen", mode: "client" }));const volume = probe.flow.view?.todos?.find((t) => t.id === "volume");expect(volume?.done).toBe(true);- expect(volume?.note).toBe("Shared folder: files your agents can share across your computers. In Finder.");+ expect(volume?.note).toBe("Shared folder: files your agents can share across your machines. In Finder.");});});diff --git a/apps/cua-spaces-web/src/bridge/adapters/demo-agents.ts b/apps/cua-spaces-web/src/bridge/adapters/demo-agents.tsindex ec450a779d..5e0413cd1c 100644--- a/apps/cua-spaces-web/src/bridge/adapters/demo-agents.ts+++ b/apps/cua-spaces-web/src/bridge/adapters/demo-agents.ts@@ -241,7 +241,7 @@ I kept the structure and only changed the words. Three screens change:+ <h1>Welcome to Cua Spaces</h1>+ <p>Set up takes about a minute.</p>-- <p>Sign in to sync your Spaces across all your devices!</p>+- <p>Sign in to sync your Spaces across all your machines!</p>+ <p>Sign in to see your Spaces on every computer you use.</p>\`\`\`diff --git a/apps/cua-spaces-web/src/bridge/adapters/demo/settings.ts b/apps/cua-spaces-web/src/bridge/adapters/demo/settings.tsindex 2d22662b1f..12f608573c 100644--- a/apps/cua-spaces-web/src/bridge/adapters/demo/settings.ts+++ b/apps/cua-spaces-web/src/bridge/adapters/demo/settings.ts@@ -243,7 +243,7 @@ export function createDemoSettings(ctx: DemoSettingsContext): Handlers {"runtimes.browse": ({ kind }) => ({ path: DEMO_BROWSED[kind] ?? null }),"devices.get": () => {- if (!ctx.signedIn()) throw new HostError("Sign in to Cua to see your devices", "signed_out");+ if (!ctx.signedIn()) throw new HostError("Sign in to Cua to see your machines", "signed_out");return structuredClone(devices);},// Signing in again enrolls this device at once.diff --git a/apps/cua-spaces-web/src/bridge/adapters/tauri.ts b/apps/cua-spaces-web/src/bridge/adapters/tauri.tsindex 06915bf77d..5791674cad 100644--- a/apps/cua-spaces-web/src/bridge/adapters/tauri.ts+++ b/apps/cua-spaces-web/src/bridge/adapters/tauri.ts@@ -208,7 +208,7 @@ export function createTauriAdapter(win: HostWindow = globalThis.window as HostWiconst selfId = status?.machineId ?? "local";const self: MachineRow = {id: selfId,- name: status?.name ?? "This computer",+ name: status?.name ?? "This machine",via: "local",online: true,os: env?.platform ?? "macos",diff --git a/apps/cua-spaces-web/src/bridge/agent-detail.ts b/apps/cua-spaces-web/src/bridge/agent-detail.tsindex b5aff82dbb..d16b1ce5d3 100644--- a/apps/cua-spaces-web/src/bridge/agent-detail.ts+++ b/apps/cua-spaces-web/src/bridge/agent-detail.ts@@ -2,7 +2,7 @@// Copyright (c) 2026 Cua AI, Inc./**- * One persistent agent's Memory, Routines and Access to this computer, as+ * One persistent agent's Memory, Routines and Access to this machine, as* the SwiftUI app's Agents page draws them (`AgentsPageView`). Every word* and rule is the app core's (`agents.pageReduce` / `agents.pageView`,* `cua-spaces-app-core/src/persistent.rs`); this runs the command each@@ -87,7 +87,7 @@ export interface AgentDetailHook {error: string | null;/** The host can't read an agent's detail. */unsupported: boolean;- /** This machine's Space id, which "Allow on this computer" grants. */+ /** This machine's Space id, which "Allow on this machine" grants. */thisMachine: string | null;/** Sends a page action; runs the command the core asks for. */act(action: AgentsPageAction): void;diff --git a/apps/cua-spaces-web/src/bridge/agent-keys.ts b/apps/cua-spaces-web/src/bridge/agent-keys.tsindex 93db86263b..8f82c528c6 100644--- a/apps/cua-spaces-web/src/bridge/agent-keys.ts+++ b/apps/cua-spaces-web/src/bridge/agent-keys.ts@@ -84,7 +84,7 @@ export interface AgentKeyConfirm {export const agentKeysInputOf = (report: AgentKeysReport | undefined, error: Error | null): AgentKeysInput => ({keys: (report?.keys ?? []).map(({ provider, env, last4, addedMs }) => ({ provider, env, last4, addedMs })),- unavailable: report?.available === false ? (report.unavailable ?? "this computer can't keep keys") : null,+ unavailable: report?.available === false ? (report.unavailable ?? "this machine can't keep keys") : null,error: error ? error.message : null,});diff --git a/apps/cua-spaces-web/src/bridge/contracts/agents.ts b/apps/cua-spaces-web/src/bridge/contracts/agents.tsindex 85ef0973b1..212dabfb09 100644--- a/apps/cua-spaces-web/src/bridge/contracts/agents.ts+++ b/apps/cua-spaces-web/src/bridge/contracts/agents.ts@@ -334,7 +334,7 @@ export interface AgentDetailView {addRoutineLabel: string;access: AgentLineView[];accessEmpty: string;- /** `Allow on this computer` when this machine is set up and not granted. */+ /** `Allow on this machine` when this machine is set up and not granted. */allowThisMachineLabel?: string | null;audit: AgentLineView[];error?: string | null;diff --git a/apps/cua-spaces-web/src/bridge/derive.ts b/apps/cua-spaces-web/src/bridge/derive.tsindex f81f11d235..0ef65f9cb8 100644--- a/apps/cua-spaces-web/src/bridge/derive.ts+++ b/apps/cua-spaces-web/src/bridge/derive.ts@@ -370,7 +370,7 @@ export interface Machine {export function machineSpacesLabel(desktop: boolean, n: number): string {const count = n === 0 ? "No Spaces" : `${n} Space${n === 1 ? "" : "s"}`;if (!desktop) return count;- return n === 0 ? "Desktop shared" : `Desktop \u00b7 ${count}`;+ return n === 0 ? "Desktop shared" : `Desktop and ${count}`;}/** One Machines row as the core lists it, from the page's own machine@@ -620,20 +620,20 @@ export function hostPanelFromState(core: CoreClient, state: object | null, statu}function fallbackPanel(s: HostStatus | null): HostPanelView {- const base: HostPanelView = { title: "This computer", summary: "Checking…", configured: false, facts: [], clients: [], permissions: [], openSettingsLabel: "Open Settings", actions: [] };+ const base: HostPanelView = { title: "This machine", summary: "Checking…", configured: false, facts: [], clients: [], permissions: [], openSettingsLabel: "Open Settings", actions: [] };if (!s) return base;if (!s.configured) {- return { ...base, summary: "Your other devices can’t reach this computer yet.", intro: FALLBACK_INTRO, setupChoices: FALLBACK_CHOICES };+ return { ...base, summary: "Your other machines can’t reach this machine yet.", intro: FALLBACK_INTRO, setupChoices: FALLBACK_CHOICES };}const via = s.mode === "direct" ? "Direct" : "Relay";const summary = !s.service.running ? "Host service stopped" : !s.sharing ? "Not sharing" : `Sharing · ${via}`;- const access = s.mode === "direct" ? `Direct at ${s.directUrl || "this computer’s address"}` : s.relayUrl ? `Relay ${s.relayUrl}` : "Relay";+ const access = s.mode === "direct" ? `Direct at ${s.directUrl || "this machine’s address"}` : s.relayUrl ? `Relay ${s.relayUrl}` : "Relay";return {...base,summary,configured: true,facts: [- { label: "Name", value: s.name || "This computer" },+ { label: "Name", value: s.name || "This machine" },{ label: "Access", value: access },{ label: "Service", value: `${s.service.kind} · ${s.service.running ? "running" : s.service.installed ? "stopped" : "not installed"}` },],@@ -644,10 +644,10 @@ function fallbackPanel(s: HostStatus | null): HostPanelView {}const FALLBACK_INTRO =- "This is the computer you’re using now. Set it up so you, your teammates and your AI agents can use it from other devices. Cua connects them for you, with no network setup.";+ "This is the machine you’re using now. Set it up so you, your teammates and your AI agents can use it from other machines. Cua connects them for you, with no network setup.";const FALLBACK_CHOICES: HostSetupChoice[] = [- { id: "desktop", label: "Let my other devices use this computer", buttonLabel: "Set Up…" },- { id: "spare", label: "Run Spaces here and keep its screen private", buttonLabel: "Set Up…" },+ { id: "desktop", label: "Let other machines create Spaces and control this desktop", buttonLabel: "Set Up…" },+ { id: "spare", label: "Let other machines create Spaces here", buttonLabel: "Set Up…" },];/** What "Add a machine" explains: the core's words for host setup, as the@@ -879,7 +879,7 @@ function fallbackListView(i: { loaded: boolean; incomplete: boolean; reaching: n: !i.incomplete? null: i.reaching === 0- ? "Reaching your computers…"- : `Reaching ${i.reaching} computer${i.reaching === 1 ? "" : "s"}…`;+ ? "Reaching your machines…"+ : `Reaching ${i.reaching} machine${i.reaching === 1 ? "" : "s"}…`;return { empty: i.loaded && !i.incomplete && i.count === 0, reachingLine };}diff --git a/apps/cua-spaces-web/src/bridge/first-run.ts b/apps/cua-spaces-web/src/bridge/first-run.tsindex 2d2ca3e9c8..6bd9eb647e 100644--- a/apps/cua-spaces-web/src/bridge/first-run.ts+++ b/apps/cua-spaces-web/src/bridge/first-run.ts@@ -156,7 +156,7 @@ const rank = (id: string) => {/** Without the core: the screens in their plainest state. Not the* product's behaviour; the demo and tests without wasm use it. */function fallbackView(input: FirstRunInput): FirstRunView {- const place = input.hostOs === "macos" ? "this Mac" : input.hostOs === "windows" ? "this PC" : "this computer";+ const place = input.hostOs === "macos" ? "this Mac" : input.hostOs === "windows" ? "this PC" : "this machine";const Place = `${place[0]!.toUpperCase()}${place.slice(1)}`;const found = (input.agents ?? []).filter((a) => a.installed || a.configured).sort((a, b) => rank(a.agent) - rank(b.agent));const connected = found.filter((a) => a.configured || (input.picked ?? []).includes(a.agent));@@ -202,7 +202,7 @@ function fallbackView(input: FirstRunInput): FirstRunView {};}case "welcome":- return { ...base, welcome: { title: "Your computers, shared by your team and its agents.", lede: `Run agents in Spaces on ${place}, or on any computer your team connects.`, primary: { id: "start", label: "Get started" } } };+ return { ...base, welcome: { title: "Your machines, shared by your team and its agents.", lede: `Run agents in Spaces on ${place}, or on any computer your team connects.`, primary: { id: "start", label: "Get started" } } };case "connect":return {...base,@@ -225,10 +225,10 @@ function fallbackView(input: FirstRunInput): FirstRunView {return {...base,devices: {- title: input.signedIn ? `${Place} is in your account.` : "Add your other computers.",- lede: `Sign in to Cua here and on your other computers. Then they can all use ${place}'s Spaces.`,+ title: input.signedIn ? `${Place} is in your account.` : "Add your other machines.",+ lede: `Sign in to Cua here and on your other machines. Then they can all use ${place}'s Spaces.`,rows: [- { title: "Your other computers", note: "Sign in on each one" },+ { title: "Your other machines", note: "Sign in on each one" },{ title: "Your cloud", note: "Hetzner, AWS, Google Cloud or Modal" },],status: null,diff --git a/apps/cua-spaces-web/src/bridge/friendly-errors.ts b/apps/cua-spaces-web/src/bridge/friendly-errors.tsindex 14680a8f5a..a04f06f8cb 100644--- a/apps/cua-spaces-web/src/bridge/friendly-errors.ts+++ b/apps/cua-spaces-web/src/bridge/friendly-errors.ts@@ -47,10 +47,10 @@ export function plainJoinError(e: unknown): string {const throttled = plainThrottleError(raw);if (throttled) return throttled;if (/pairing code|unauthenticated|not valid|expired|revoked|already used|invalid code/i.test(raw)) {- return "That code didn't work. It may be used, expired or mistyped. Make a new one in Add a computer.";+ return "That code didn't work. It may be used, expired or mistyped. Make a new one in Add a machine.";}if (/timed out/i.test(raw)) return "This took too long. Check the internet connection and try again.";- if (/could not start|no bundled cua/i.test(raw)) return "Couldn't set this computer up. Update Cua Spaces and try again.";+ if (/could not start|no bundled cua/i.test(raw)) return "Couldn't set this machine up. Update Cua Spaces and try again.";if (/network|connect|dns|unreachable|offline/i.test(raw)) return "Couldn't reach Cua. Check the internet connection and try again.";return stripInternalPrefixes(raw) || "Couldn't join with that code.";}@@ -62,9 +62,9 @@ export function plainPairingError(e: unknown): string {const throttled = plainThrottleError(raw);if (throttled) return throttled;if (/no such device|not enrolled|not registered|unknown device/i.test(raw)) {- return "This computer isn't set up for access yet. Set it up first, then add computers.";+ return "This machine isn't set up for access yet. Set it up first, then add machines.";}- if (/unauthenticated|unauthori[sz]ed|\b40[13]\b/i.test(raw)) return "Sign in again to add a computer.";+ if (/unauthenticated|unauthori[sz]ed|\b40[13]\b/i.test(raw)) return "Sign in again to add a machine.";if (/network|connect|dns|unreachable|offline|timed out/i.test(raw)) return "Couldn't reach Cua. Check the internet connection.";const rest = stripInternalPrefixes(raw).replace(/\.$/, "");return rest ? `Couldn't make a link: ${rest}.` : "Couldn't make a link.";diff --git a/apps/cua-spaces-web/src/bridge/host-os.ts b/apps/cua-spaces-web/src/bridge/host-os.tsindex 9212ed772c..0596dc88eb 100644--- a/apps/cua-spaces-web/src/bridge/host-os.ts+++ b/apps/cua-spaces-web/src/bridge/host-os.ts@@ -32,4 +32,4 @@ export function hostOs(win: HostWindow | undefined = globalThis.window as HostWi}/** What the app calls the computer it runs on. */-export const THIS_MACHINE: Record<HostOs, string> = { macos: "This Mac", windows: "This PC", linux: "This computer" };+export const THIS_MACHINE: Record<HostOs, string> = { macos: "This Mac", windows: "This PC", linux: "This machine" };diff --git a/apps/cua-spaces-web/src/bridge/index.ts b/apps/cua-spaces-web/src/bridge/index.tsindex 58ac315ea4..b379a3cf05 100644--- a/apps/cua-spaces-web/src/bridge/index.ts+++ b/apps/cua-spaces-web/src/bridge/index.ts@@ -38,7 +38,7 @@ export { createAdapter, createDemoAdapter, createElectronAdapter, createTauriAdaexport { detectMode } from "./detect";export { loadCore, type CoreClient, type CoreParity, type CoreStatus, type ParityFlow } from "./core";export type { Machine, HostSetupGuide, KeyvaultAppGroup, KeyvaultViews } from "./derive";-export { harnessName, listView, machineIdOf } from "./derive";+export { harnessName, listView, machineIdOf, sharesDesktop } from "./derive";export type {AgentRunSummary,AgentState,diff --git a/apps/cua-spaces-web/src/bridge/join.ts b/apps/cua-spaces-web/src/bridge/join.tsindex ad0e9f94ab..6d54ed32d1 100644--- a/apps/cua-spaces-web/src/bridge/join.ts+++ b/apps/cua-spaces-web/src/bridge/join.ts@@ -28,7 +28,7 @@ export interface JoinHook {/** What the page says for a failure: the host's own words, or a plain line. */export function joinFailureText(e: unknown): string {- if (isUnsupported(e)) return "This version of Cua Spaces can't join with a code. Update the app, or run the install command on this computer.";+ if (isUnsupported(e)) return "This version of Cua Spaces can't join with a code. Update the app, or run the install command on this machine.";return plainJoinError(e);}diff --git a/apps/cua-spaces-web/src/bridge/onboarding.ts b/apps/cua-spaces-web/src/bridge/onboarding.tsindex 92e2e67071..c41a9900cb 100644--- a/apps/cua-spaces-web/src/bridge/onboarding.ts+++ b/apps/cua-spaces-web/src/bridge/onboarding.ts@@ -199,7 +199,7 @@ const LABELS: Record<OnboardingStep, string> = {agents: "AI agents",presentation: "Menu bar",drive: "Cua Volume",- mode: "This computer",+ mode: "This machine",done: "Done",};@@ -243,7 +243,7 @@ function fallbackTodos(s: OnboardingFlowState): OnboardingTodo[] {{id: "signin",title: "Account",- note: s.identity ? `Signed in as ${s.identity}.` : "Reach your computers from any device.",+ note: s.identity ? `Signed in as ${s.identity}.` : "Reach your machines from any machine.",done: Boolean(s.identity),optional: false,action: s.identity ? null : "Sign in",@@ -267,9 +267,9 @@ function thisComputer(os: HostOs): string {function fallbackView(s: OnboardingFlowState, os: HostOs): OnboardingView {const pages: Partial<Record<OnboardingStep, [string, string, string]>> = {welcome: ["Welcome to Cua Spaces", "Computers for you and your AI agents. Setup takes about a minute.", "Get started"],- signin: ["Sign in", "Sign in to reach your computers and Spaces from any of your devices. You can skip this and sign in later.", "Continue"],+ signin: ["Sign in", "Sign in to reach your machines and Spaces from any of your machines. You can skip this and sign in later.", "Continue"],presentation: ["Where should Cua Spaces show up?", "You can change this in Settings.", "Continue"],- mode: [`How do you want to use ${thisComputer(os)}?`, "Use it only to open your other computers, or let your other devices reach it too. You can change this later.", "Continue"],+ mode: [`How do you want to use ${thisComputer(os)}?`, "Use it only to open your other machines, or let your other machines reach it too. You can change this later.", "Continue"],done: ["You're all set", os === "macos" ? "Cua Spaces is in your menu bar." : "Cua Spaces is in your system tray.", "Start using Cua Spaces"],};const todos = s.step === "done" ? fallbackTodos(s) : [];@@ -301,15 +301,15 @@ function fallbackView(s: OnboardingFlowState, os: HostOs): OnboardingView {s.step === "done"? [{ label: "Shows in", value: s.menuBar ? "Menu bar only" : "Notch and menu bar" },- { label: "This computer", value: s.mode === "host" ? "Your other devices can reach it" : "Opens your other computers" },+ { label: "This machine", value: s.mode === "host" ? "Your other machines can reach it" : "Opens your other machines" },]: [],todos,choices:s.step === "mode"? [- { mode: "client", label: `Just use ${thisComputer(os)} to open my other computers`, preselected: pre === "client" },- { mode: "host", label: `Let my other devices reach ${thisComputer(os)}`, preselected: pre === "host" },+ { mode: "client", label: `Just use ${thisComputer(os)} to open my other machines`, preselected: pre === "client" },+ { mode: "host", label: `Let my other machines reach ${thisComputer(os)}`, preselected: pre === "host" },]: [],presentations:diff --git a/apps/cua-spaces-web/src/bridge/ops/agent-detail.ts b/apps/cua-spaces-web/src/bridge/ops/agent-detail.tsindex 649f4f90e9..b36650ed3b 100644--- a/apps/cua-spaces-web/src/bridge/ops/agent-detail.ts+++ b/apps/cua-spaces-web/src/bridge/ops/agent-detail.ts@@ -2,7 +2,7 @@// Copyright (c) 2026 Cua AI, Inc./**- * One persistent agent's Memory, Routines and Access to this computer: the+ * One persistent agent's Memory, Routines and Access to this machine: the* commands the app core's Agents page asks for (`AgentsRequest` in* `cua-spaces-app-core/src/persistent.rs`), one operation each. Every one is* a daemon Spaces tool the SwiftUI app's `PersistentModel.send` alreadydiff --git a/apps/cua-spaces-web/src/bridge/pairing.ts b/apps/cua-spaces-web/src/bridge/pairing.tsindex 155c277213..44de4d4a51 100644--- a/apps/cua-spaces-web/src/bridge/pairing.ts+++ b/apps/cua-spaces-web/src/bridge/pairing.ts@@ -58,7 +58,7 @@ export type PlanFailureKind = "machines" | "seats" | "other";/** The cap in a plan error's text: team computers, seats, or another. */export function planFailureKind(raw: string): PlanFailureKind {- if (/machine_limit|team_machines|computers?\b/i.test(raw)) return "machines";+ if (/machine_limit|team_machines|machines?\b/i.test(raw)) return "machines";if (/add_seats|\bseats?\b/i.test(raw)) return "seats";return "other";}@@ -70,7 +70,7 @@ export function planFailure(raw: string): { text: string; upgradeUrl: string | nif (/feature_required/.test(raw)) {const what =feature === "team_machines"- ? "Team computers need the Teams plan."+ ? "Team machines need the Teams plan.": feature === "team_roles"? "Admin roles need the Teams plan.": feature === "device_approval"@@ -79,7 +79,7 @@ export function planFailure(raw: string): { text: string; upgradeUrl: string | nreturn { text: `${what} Ask the team owner to upgrade.`, upgradeUrl: null };}if (/add_seats/.test(raw)) return { text: "Your team has no free seats. Ask the team owner to add seats.", upgradeUrl: null };- if (/machine_limit/.test(raw)) return { text: "Your team has as many computers as it has seats. Ask the team owner to add seats.", upgradeUrl: null };+ if (/machine_limit/.test(raw)) return { text: "Your team has as many machines as it has seats. Ask the team owner to add seats.", upgradeUrl: null };return { text: raw, upgradeUrl: null };}diff --git a/apps/cua-spaces-web/src/bridge/this-machine.ts b/apps/cua-spaces-web/src/bridge/this-machine.tsindex 9fbf9863b2..bd3a63ffc4 100644--- a/apps/cua-spaces-web/src/bridge/this-machine.ts+++ b/apps/cua-spaces-web/src/bridge/this-machine.ts@@ -135,7 +135,7 @@ export class ThisMachineStore {/** Sets this computer up with the form's defaults and its own name, in* one step (the first run's "Set up"). Resolves to whether it worked. */- async quickSetUp(identity: string | null, profile = "desktop"): Promise<boolean> {+ async quickSetUp(identity: string | null, profile = "spare"): Promise<boolean> {let form = hostFormInitial(this.core);form = hostFormReduce(this.core, form, { type: "set-profile", profile });this.failedRequest = null;@@ -231,6 +231,8 @@ export interface ThisMachineHook extends ThisMachineState {send(action: HostFormAction): void;/** Resolves to whether setup worked. */submit(): Promise<boolean>;+ /** Sets this machine up with the defaults (other machines can create Spaces here; its desktop stays private). */+ quickSetUp(): Promise<boolean>;/** Sends the failed setup's request again. */retrySetUp(): Promise<boolean>;run(action: HostActionId): Promise<void>;@@ -257,6 +259,7 @@ export function useThisMachine(identity: string | null): ThisMachineHook {closeForm: () => tm?.closeForm(),send: (a) => tm?.send(a),submit: () => tm?.submit(who) ?? Promise.resolve(false),+ quickSetUp: () => tm?.quickSetUp(who) ?? Promise.resolve(false),retrySetUp: () => tm?.retrySetUp() ?? Promise.resolve(false),run: (a) => tm?.run(a) ?? Promise.resolve(),retry: () => tm?.retry() ?? Promise.resolve(),diff --git a/apps/cua-spaces-web/src/components/__tests__/add-computer-sheet.test.tsx b/apps/cua-spaces-web/src/components/__tests__/add-computer-sheet.test.tsxindex ffe260ba0f..e1bf8e2a1e 100644--- a/apps/cua-spaces-web/src/components/__tests__/add-computer-sheet.test.tsx+++ b/apps/cua-spaces-web/src/components/__tests__/add-computer-sheet.test.tsx@@ -41,7 +41,7 @@ function Harness(props: { team?: string | null; initialView?: AddView; initialCoconst { data: machines = [] } = useMachines();return (<>- <ul aria-label="Computers">+ <ul aria-label="Machines">{machines.map((m) => (<li key={m.id}>{m.name}</li>))}@@ -77,7 +77,7 @@ describe("Add a computer: the methods", () => {expect([...document.querySelectorAll("[data-add-method]")].map((b) => b.textContent)).toEqual(["Sign in there", "Open a link", "Scan a QR code", "Run a command", "Enter a code"]);expect(METHODS[0]!.view).toBe("signin");expect(prompt().readOnly).toBe(true);- expect(prompt().value).toMatch(/^Add this computer to my Cua Spaces: https:\/\/cua\.ai\/add\/K7QM-4XPB-[0-9A-Z]{4}$/);+ expect(prompt().value).toMatch(/^Add this machine to my Cua Spaces: https:\/\/cua\.ai\/add\/K7QM-4XPB-[0-9A-Z]{4}$/);expect(screen.getByLabelText("Copy prompt")).toBeTruthy();expect(screen.getByText("Enter it")).toBeTruthy();// No desktop-or-private choice, no by-hand steps on the sheet.@@ -85,7 +85,7 @@ describe("Add a computer: the methods", () => {expect(calls).toEqual(["devices.createPairingCode"].concat(calls.slice(1)));});- it("Sign in there: the install link and this account, then waits for any new computer", async () => {+ it("Sign in there: the install link and this account, then waits for any new machine", async () => {let extra = false;const { adapter } = host({}, (base) => ({...neverUsed(base),@@ -100,18 +100,18 @@ describe("Add a computer: the methods", () => {expect(view()).toBe("signin");expect(screen.getByText("https://cua.ai/install")).toBeTruthy();expect(document.querySelector("[data-add-signin]")?.textContent).toMatch(/sign in as ada@example\.com/);- expect(status()).toBe("Waiting for a new computer…");+ expect(status()).toBe("Waiting for a new machine…");// No code here, so no menu.expect(document.querySelector("[data-add-more]")).toBeNull();// The computers known on opening are read first (they are not new).- await waitFor(() => expect(document.querySelectorAll('ul[aria-label="Computers"] li').length).toBeGreaterThan(0));+ await waitFor(() => expect(document.querySelectorAll('ul[aria-label="Machines"] li').length).toBeGreaterThan(0));// The other computer signs in: it shows up, and the sheet says so.extra = true;await waitFor(() => expect(status()).toBe("Added: Office Mac"), { timeout: 4000 });expect(document.querySelector("[data-add-done]")?.className).toContain("bg-primary");});- it("computers listed in the first moments after opening are the account's own, not new", async () => {+ it("machines listed in the first moments after opening are the account's own, not new", async () => {let late = false;const { adapter } = host({}, (base) => ({...neverUsed(base),@@ -124,7 +124,7 @@ describe("Add a computer: the methods", () => {fireEvent.click(method("signin"));late = true;await act(() => new Promise((r) => setTimeout(r, 600)));- expect(status()).toBe("Waiting for a new computer…");+ expect(status()).toBe("Waiting for a new machine…");});it("Open a link: the one-time link to copy", async () => {@@ -134,7 +134,7 @@ describe("Add a computer: the methods", () => {fireEvent.click(method("link"));expect(document.querySelector("[data-add-link] code")?.textContent).toMatch(/^https:\/\/cua\.ai\/add\/K7QM-4XPB-[0-9A-Z]{4}$/);expect(screen.getByLabelText("Copy link")).toBeTruthy();- expect(status()).toBe("Waiting for the computer…");+ expect(status()).toBe("Waiting for the machine…");});it("Scan a QR code: the same link, big", async () => {@@ -175,24 +175,24 @@ describe("Add a computer: the methods", () => {});describe("Add a computer: states", () => {- it("waits, then says which computer was added, however it was added", async () => {+ it("waits, then says which machine was added, however it was added", async () => {const { adapter, calls } = host();await mount(adapter);await waitFor(() => expect(phase()).toBe("used"), { timeout: 3000 });expect(calls.filter((c) => c === "devices.pairingCodes").length).toBeGreaterThanOrEqual(3);await waitFor(() => expect(status()).toBe("Added: Office PC"));- await waitFor(() => expect(document.querySelector('ul[aria-label="Computers"]')?.textContent).toContain("Office PC"));+ await waitFor(() => expect(document.querySelector('ul[aria-label="Machines"]')?.textContent).toContain("Office PC"));expect(screen.getByText("Done")).toBeTruthy();expect(screen.queryByText("Cancel")).toBeNull();});- it("names the computer once it is listed, when the code was used before that", async () => {+ it("names the machine once it is listed, when the code was used before that", async () => {let hide = true;const { adapter } = host({}, (base) => ({"machines.list": async () => ((await base.call("machines.list", {})) as { id: string }[]).filter((r) => !hide || r.id !== "m_pair_demo"),}));await mount(adapter);- await waitFor(() => expect(status()).toBe("Added: the computer"), { timeout: 3000 });+ await waitFor(() => expect(status()).toBe("Added: the machine"), { timeout: 3000 });hide = false;await waitFor(() => expect(status()).toBe("Added: Office PC"));});@@ -279,7 +279,7 @@ describe("Add a computer: without a code", () => {});it("not enrolled: This Mac can't make codes yet", async () => {- const notice = { kind: "needs-enrollment", status: "Needs enrollment", text: "Enroll this Mac to open your computers.", actionLabel: "Enroll This Mac…" };+ const notice = { kind: "needs-enrollment", status: "Needs enrollment", text: "Enroll this Mac to open your machines.", actionLabel: "Enroll This Mac…" };const { adapter, calls } = host({},{@@ -313,7 +313,7 @@ describe("Add a computer: without a code", () => {});await mount(flaky);await waitFor(() => expect(phase()).toBe("error"));- expect(document.querySelector("[data-add-code-error]")?.textContent).toMatch(/This computer isn't set up for access yet\./);+ expect(document.querySelector("[data-add-code-error]")?.textContent).toMatch(/This machine isn't set up for access yet\./);expect(document.body.textContent).not.toMatch(/relay: no such device|not found:/);fail = false;fireEvent.click(document.querySelector("[data-add-retry]")!);@@ -334,7 +334,7 @@ describe("Add a computer: for a team", () => {currentTeamId,});- it("offers only teams on the Teams plan this account owns or runs, and adds the computer for it", async () => {+ it("offers only teams on the Teams plan this account owns or runs, and adds the machine for it", async () => {const shared: Record<string, unknown>[] = [];const made: unknown[] = [];const { adapter } = host({}, (base) => ({@@ -375,7 +375,7 @@ describe("Add a computer: for a team", () => {const opened: unknown[] = [];const { adapter } = host({}, {"teams.list": teams(acme),- "sharing.share": () => Promise.reject(new Error("Team computers need the Teams plan. https://app.cua.ai/buy/teams")),+ "sharing.share": () => Promise.reject(new Error("Team machines need the Teams plan. https://app.cua.ai/buy/teams")),"session.openExternal": (args) => {opened.push(args.url);return Promise.resolve(undefined);@@ -384,13 +384,13 @@ describe("Add a computer: for a team", () => {await mount(adapter);await waitFor(() => expect(document.querySelector('[data-pairing-team="failed"]')).toBeTruthy(), { timeout: 3000 });const text = document.querySelector("[data-pairing-added]")?.textContent ?? "";- expect(text).toContain("Added: Office PC. It isn't on Acme yet. Team computers need the Teams plan.");+ expect(text).toContain("Added: Office PC. It isn't on Acme yet. Team machines need the Teams plan.");expect(text).not.toContain("https://");fireEvent.click(document.querySelector("[data-pairing-upgrade]")!);await waitFor(() => expect(opened).toEqual(["https://app.cua.ai/buy/teams"]));});- it("finishing setup while the computer joins the team", async () => {+ it("finishing setup while the machine joins the team", async () => {let finish: () => void = () => {};const { adapter } = host({}, {"teams.list": teams(acme),@@ -403,8 +403,8 @@ describe("Add a computer: for a team", () => {});});-describe("Have a code? Enter it (this computer joins)", () => {- it("opens from the footer, waits for a whole code, then adds this computer", async () => {+describe("Have a code? Enter it (this machine joins)", () => {+ it("opens from the footer, waits for a whole code, then adds this machine", async () => {const joined: Record<string, unknown>[] = [];const { adapter } = host({}, (base) => ({...neverUsed(base),@@ -417,13 +417,13 @@ describe("Have a code? Enter it (this computer joins)", () => {fireEvent.click(document.querySelector("[data-add-enter]")!);expect(view()).toBe("enter");const submit = document.querySelector<HTMLButtonElement>("[data-join-submit]")!;- expect(submit.textContent).toBe("Add this computer");+ expect(submit.textContent).toBe("Add this machine");fireEvent.change(screen.getByLabelText("Code"), { target: { value: "k7qm 4xpb" } });expect(submit.disabled).toBe(true);fireEvent.change(screen.getByLabelText("Code"), { target: { value: "https://cua.ai/add/k7qm-4xpb-2rhd?relay=https://relay.example.com" } });expect(submit.disabled).toBe(false);fireEvent.click(submit);- await waitFor(() => expect(document.querySelector("[data-join-joined]")?.textContent).toBe("Added this computer"));+ await waitFor(() => expect(document.querySelector("[data-join-joined]")?.textContent).toBe("Added this machine"));expect(joined[0]).toMatchObject({ code: "K7QM4XPB2RHD", relay: "https://relay.example.com" });});@@ -447,9 +447,9 @@ describe("Have a code? Enter it (this computer joins)", () => {describe("agentPrompt and expiresInText", () => {it("words the prompt as one line with the add link", () => {- expect(agentPrompt("K7QM-4XPB-2RHD")).toBe("Add this computer to my Cua Spaces: https://cua.ai/add/K7QM-4XPB-2RHD");+ expect(agentPrompt("K7QM-4XPB-2RHD")).toBe("Add this machine to my Cua Spaces: https://cua.ai/add/K7QM-4XPB-2RHD");expect(agentPrompt("K7QM-4XPB-2RHD", "https://cua.ai/add/K7QM-4XPB-2RHD?relay=https%3A%2F%2Fr.example")).toBe(- "Add this computer to my Cua Spaces: https://cua.ai/add/K7QM-4XPB-2RHD?relay=https%3A%2F%2Fr.example",+ "Add this machine to my Cua Spaces: https://cua.ai/add/K7QM-4XPB-2RHD?relay=https%3A%2F%2Fr.example",);});it("rounds minutes up, and counts seconds in the last minute", () => {diff --git a/apps/cua-spaces-web/src/components/__tests__/this-machine.test.tsx b/apps/cua-spaces-web/src/components/__tests__/this-machine.test.tsxindex 055f33c2df..7f638f0ead 100644--- a/apps/cua-spaces-web/src/components/__tests__/this-machine.test.tsx+++ b/apps/cua-spaces-web/src/components/__tests__/this-machine.test.tsx@@ -143,7 +143,7 @@ describe("a failed This machine button", () => {let failing = true;const { adapter, actions } = host(() =>failing- ? new HostError("macOS didn’t start the service your other devices connect to.", "failed", {+ ? new HostError("macOS didn’t start the service your other machines connect to.", "failed", {title: "Couldn’t start the Cua host service",details: "launchctl bootstrap failed: 5",actionLabel: "Retry",@@ -178,7 +178,7 @@ describe("a failed This machine button", () => {const form: HostSetupFormView = {title: "Set Up for Access",- lede: "Your other devices reach this Mac through the Cua relay.",+ lede: "Your other machines reach this Mac through the Cua relay.",fields: [],advancedLabel: "Advanced",advancedOpen: false,diff --git a/apps/cua-spaces-web/src/components/add-computer-sheet.tsx b/apps/cua-spaces-web/src/components/add-computer-sheet.tsxindex c709f49677..c1a6340eec 100644--- a/apps/cua-spaces-web/src/components/add-computer-sheet.tsx+++ b/apps/cua-spaces-web/src/components/add-computer-sheet.tsx@@ -62,7 +62,7 @@ export const METHODS: readonly { view: Exclude<AddView, "pick" | "enter">; label];const TITLES: Record<AddView, string> = {- pick: "Add a computer",+ pick: "Add a machine",signin: "Sign in there",link: "Open a link",qr: "Scan a QR code",@@ -78,7 +78,7 @@ const TITLES: Record<AddView, string> = {* add link for the code.*/export function agentPrompt(code: string, url: string | null = null): string {- return `Add this computer to my Cua Spaces: ${url ?? `https://cua.ai/add/${code}`}`;+ return `Add this machine to my Cua Spaces: ${url ?? `https://cua.ai/add/${code}`}`;}/**@@ -181,7 +181,7 @@ export function AddComputerSheet({// The hook's functions are new on every render.}, [waiting, newComputerPollMs]);- const added = pairing.phase === "used" ? (usedName ?? arrived?.name ?? "the computer") : (arrived?.name ?? null);+ const added = pairing.phase === "used" ? (usedName ?? arrived?.name ?? "the machine") : (arrived?.name ?? null);const forTeam = chosenTeam && pairing.phase === "used" ? teamName(chosenTeam) : null;const close = () => onOpenChange(false);@@ -254,7 +254,7 @@ function computerIds(list: readonly Machine[]): Set<string> {/** "This Mac" on a Mac, else "This computer". */function thisComputerName(list: readonly Machine[]): string {- return list.find((m) => m.current)?.os === "macos" ? "This Mac" : "This computer";+ return list.find((m) => m.current)?.os === "macos" ? "This Mac" : "This machine";}/* ---- The first page: the methods -------------------------------------------------- */@@ -263,8 +263,8 @@ function Pick({ pairing, noCode, onPick }: { pairing: PairingHook; noCode: booleconst code = pairing.code?.code ?? null;return (<>- <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Any Mac, Linux or Windows computer you own can run Spaces for you.</DialogDescription>- <nav aria-label="Ways to add a computer" className="mt-3" data-add-methods="">+ <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Any Mac, Linux or Windows machine you own can run Spaces for you.</DialogDescription>+ <nav aria-label="Ways to add a machine" className="mt-3" data-add-methods=""><GroupedSection>{METHODS.map((m) => {const off = m.code && noCode;@@ -298,7 +298,7 @@ function Pick({ pairing, noCode, onPick }: { pairing: PairingHook; noCode: boole<div className="mt-5" data-add-prompt=""><div className="flex items-center justify-between"><label htmlFor="add-agent-prompt" className="text-[13px] font-medium">- Or paste this into an agent on that computer+ Or paste this into an agent on that machine</label><CopyButton text={code ? agentPrompt(code, pairing.code?.url ?? null) : ""} label="Copy prompt" disabled={!code || pairing.phase !== "ready"} /></div>@@ -322,7 +322,7 @@ function SignInThere({ identity, done }: { identity: string | null; done: booleareturn (<div data-add-signin=""><DialogDescription className="mt-1 text-[13px] text-muted-foreground">- On the other computer, open this link, install Cua Spaces and sign in{identity ? ` as ${identity}` : " with this account"}. It shows up here.+ On the other machine, open this link, install Cua Spaces and sign in{identity ? ` as ${identity}` : " with this account"}. It shows up here.</DialogDescription><CopyLine text={INSTALL_URL} label="Copy link" dim={done} /></div>@@ -343,7 +343,7 @@ function CodeMethod({ view, pairing, noCode, done }: { view: AddView; pairing: P? "Your Cua relay can't make codes yet. Use Sign in there instead.": pairing.error? `${pairing.error.message} Use Sign in there instead.`- : "This computer can't make a code. Use Sign in there instead."}+ : "This machine can't make a code. Use Sign in there instead."}</p>);}@@ -358,7 +358,7 @@ function CodeMethod({ view, pairing, noCode, done }: { view: AddView; pairing: Pif (view === "link") {return (<div data-add-link="">- <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Open this link on the other computer. It shows the command that installs Cua Spaces and adds the computer here.</DialogDescription>+ <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Open this link on the other machine. It shows the command that installs Cua Spaces and adds the machine here.</DialogDescription>{code.url ? <CopyLine text={code.url} label="Copy link" dim={dim} /> : null}</div>);@@ -366,7 +366,7 @@ function CodeMethod({ view, pairing, noCode, done }: { view: AddView; pairing: Pif (view === "qr") {return (<div data-add-qr="">- <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Scan it with the other computer's camera to open the same one-time link.</DialogDescription>+ <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Scan it with the other machine's camera to open the same one-time link.</DialogDescription>{code.url ? (<div className={cn("mt-4 flex justify-center", dim && "opacity-45")}><QrCode text={code.url} size={208} />@@ -379,8 +379,8 @@ function CodeMethod({ view, pairing, noCode, done }: { view: AddView; pairing: Pconst command = shell === "sh" ? code.installSh : code.installPowershell;return (<div data-add-command="">- <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Run this on the other computer. It installs Cua Spaces and adds the computer here.</DialogDescription>- <Segmented className="mt-3" aria-label="The other computer's system" value={shell} options={SHELLS} onValueChange={setShell} disabled={done} />+ <DialogDescription className="mt-1 text-[13px] text-muted-foreground">Run this on the other machine. It installs Cua Spaces and adds the machine here.</DialogDescription>+ <Segmented className="mt-3" aria-label="The other machine's system" value={shell} options={SHELLS} onValueChange={setShell} disabled={done} />{command ? <CopyLine text={command} label="Copy command" mono dim={dim} /> : null}</div>);@@ -388,7 +388,7 @@ function CodeMethod({ view, pairing, noCode, done }: { view: AddView; pairing: P// Enter a code: for a computer that already has Cua Spaces.return (<div data-add-code="">- <DialogDescription className="mt-1 text-[13px] text-muted-foreground">On the computer that has Cua Spaces, choose Add a computer, then Have a code? Enter it, and type:</DialogDescription>+ <DialogDescription className="mt-1 text-[13px] text-muted-foreground">On the machine that has Cua Spaces, choose Add a machine, then Have a code? Enter it, and type:</DialogDescription><div className={cn("mt-4 flex items-center justify-between gap-4", dim && "opacity-45")} data-pairing-code=""><code className="font-mono text-[28px] font-medium tracking-[0.08em] tabular-nums">{code.code}</code><CopyButton text={code.code ?? ""} label="Copy code" disabled={dim} />@@ -447,7 +447,7 @@ function Footer({? null: limit === "seats" || /no free seats/.test(failedText)? "seats"- : limit === "machines" || /as many computers as it has seats/.test(failedText)+ : limit === "machines" || /as many machines as it has seats/.test(failedText)? "machines": null;const asCard = cards && cardReason !== null;@@ -547,7 +547,7 @@ function Footer({</Status>) : (<Status kind="wait" data={{ "data-pairing-waiting": "" }}>- {view === "signin" ? "Waiting for a new computer…" : "Waiting for the computer…"}+ {view === "signin" ? "Waiting for a new machine…" : "Waiting for the machine…"}</Status>)}{usesCode && pairing.code && pairing.phase === "ready" ? (@@ -629,7 +629,7 @@ function EnterCode({Enter a code</DialogTitle><DialogDescription className="mt-1 text-[13px] text-muted-foreground">- From Add a computer on your other device. This computer joins that account. Only use a code you made or got from someone you trust.+ From Add a machine on your other device. This machine joins that account. Only use a code you made or got from someone you trust.</DialogDescription>{relay ? (<p className="mt-2 text-xs text-muted-foreground" data-join-relay="">@@ -658,7 +658,7 @@ function EnterCode({{joined ? (<><Status kind="ok" data={{ "data-join-joined": "" }}>- Added this computer+ Added this machine</Status><Button type="button" onClick={onDone}>Done@@ -667,7 +667,7 @@ function EnterCode({) : busy ? (<><Status kind="wait" data={{ "data-join-busy": "" }}>- Setting this computer up…+ Setting this machine up…</Status><Button type="button" variant="secondary" disabled>Cancel@@ -680,7 +680,7 @@ function EnterCode({</Button><span className="flex-1" /><Button type="submit" disabled={!ready} data-join-submit="">- Add this computer+ Add this machine</Button></>)}diff --git a/apps/cua-spaces-web/src/components/agents/agent-panels.tsx b/apps/cua-spaces-web/src/components/agents/agent-panels.tsxindex b69b164076..c7c2047212 100644--- a/apps/cua-spaces-web/src/components/agents/agent-panels.tsx+++ b/apps/cua-spaces-web/src/components/agents/agent-panels.tsx@@ -12,7 +12,7 @@ import { Switch } from "@/components/ui/switch";const WEEKDAYS = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"] as const;/**- * A persistent agent's Memory, Routines and Access to this computer, as the+ * A persistent agent's Memory, Routines and Access to this machine, as the* SwiftUI app's Agents page draws them (`AgentsViews.swift`). Every word in* the lists and buttons is the app core's (`AgentDetailView`).*/diff --git a/apps/cua-spaces-web/src/components/ask-first/home-sections.tsx b/apps/cua-spaces-web/src/components/ask-first/home-sections.tsxindex c4b922e998..690933b200 100644--- a/apps/cua-spaces-web/src/components/ask-first/home-sections.tsx+++ b/apps/cua-spaces-web/src/components/ask-first/home-sections.tsx@@ -14,7 +14,7 @@ import { useMemo, type KeyboardEvent, type MouseEvent } from "react";import { spaceDiskBytes, useMachines, useResources, useSpaces, useSpaceThumbnail, type AgentChat } from "@/bridge";import { BulkConfirmDialog, useBulkRemove } from "@/components/spaces/bulk-remove";-import type { SpaceItem } from "@/components/spaces/model";+import { desktopOf, type SpaceItem } from "@/components/spaces/model";import { SpaceMoreMenu, type MenuActions } from "@/components/spaces/space-menu";import { SpaceTile } from "@/components/spaces/space-tile";import { AgentTile } from "@/components/space-thread/avatar";@@ -23,7 +23,9 @@ import { GroupedSection } from "@/components/ui/grouped";import { toastError } from "@/components/ui/toast";import { useAttemptAction } from "@/hooks/use-agent-attempts";import { accessOf, isMine } from "@/lib/space-access";-import { machineName, realSpaces, spaceState } from "@/lib/spaces";+import { useListedSpaces } from "@/components/spaces/listed";+import { hideDesktop } from "@/lib/hidden-desktops";+import { machineName, orderSpaces, spaceState } from "@/lib/spaces";import { cn } from "@/lib/utils";/** Agents shown on Home before See all. */@@ -126,31 +128,34 @@ export function YourSpaces() {const { data, startSpace, stopSpace } = useSpaces();const { data: machines = [] } = useMachines();const resources = useResources();- const spaces = realSpaces(data ?? []);+ // Running Spaces first, then the most recently used; This Mac's unshared desktop never counts.+ const { listed, counted } = useListedSpaces(data);+ const spaces = useMemo(() => orderSpaces(listed), [listed]);const items = useMemo(() =>spaces.map((space): SpaceItem => {const machine = machineName(machines, space);const mine = isMine(space);- return { space, state: spaceState(space), access: accessOf(space, machine), mine, bytes: mine ? spaceDiskBytes(resources, space.id) : null, machine };+ return { space, state: spaceState(space), access: accessOf(space, machine), mine, bytes: mine ? spaceDiskBytes(resources, space.id) : null, machine, desktop: desktopOf(space) };}),[spaces, machines, resources],);const present = useMemo(() => new Set(spaces.map((s) => s.id)), [spaces]);const bulk = useBulkRemove(present, () => {});- if (spaces.length === 0) return null;- const running = items.filter((it) => it.state === "running").length;+ if (counted.length === 0) return null;+ const running = items.filter((it) => it.state === "running" && it.desktop !== "off").length;const actions: MenuActions = {+ hide: (it) => hideDesktop(it.space.id),power: (it, on) => void (on ? startSpace : stopSpace)(it.space.id).catch(toastError(`Couldn't turn ${on ? "on" : "off"} ${it.space.name}`)),remove: (it) => bulk.ask([it]),};return (<section data-home-spaces="">- <SectionHead title="Your Spaces" note={running ? `${running} running` : null} to="/spaces" all={`See all ${spaces.length}`} />+ <SectionHead title="Your Spaces" note={running ? `${running} running` : null} to="/spaces" all={`See all ${counted.length}`} /><ul className="grid grid-cols-2 gap-5 md:grid-cols-4">{items.slice(0, HOME_SPACES).map((it) => (<li key={it.space.id}>- <SpaceTile item={it} more={<SpaceMoreMenu item={it} actions={actions} />} />+ <SpaceTile item={it} hide={it.desktop ? () => actions.hide?.(it) : undefined} more={it.desktop ? undefined : <SpaceMoreMenu item={it} actions={actions} />} /></li>))}</ul>diff --git a/apps/cua-spaces-web/src/components/ask-first/home.tsx b/apps/cua-spaces-web/src/components/ask-first/home.tsxindex 77092bff74..936da41093 100644--- a/apps/cua-spaces-web/src/components/ask-first/home.tsx+++ b/apps/cua-spaces-web/src/components/ask-first/home.tsx@@ -12,7 +12,8 @@ import { OsIcon } from "@/components/os-icon";import { SpaceCanvas } from "@/components/space-canvas";import { Button } from "@/components/ui/button";import { currentWhere, mostUsedAgent, orderTasks, startErrorView, SUGGESTIONS, taskState, TASK_STATE_TEXT, taskTitle, useAskTasks, type AskTask, type TaskState } from "@/lib/ask-first";-import { realSpaces, spaceState } from "@/lib/spaces";+import { useListedSpaces } from "@/components/spaces/listed";+import { orderSpaces, realSpaces, spaceState } from "@/lib/spaces";import { cn } from "@/lib/utils";import { agentName, AppMark, AskBox, TASK_AGENTS, type TaskWhere } from "./ask-box";@@ -44,6 +45,7 @@ export function StateDot({ state }: { state: TaskState }) {export function AskFirstHome() {const tasks = useAskTasks();const { data: spaces } = useSpaces();+ const listed = useListedSpaces(spaces);const { data: agents, agentSetup } = useAgents();const { kinds, spaces: pickable } = useWhereOptions();const { start } = useStartTask();@@ -88,7 +90,7 @@ export function AskFirstHome() {// or tasks whose Spaces are gone), Home is the welcome again.const attempts = useAgentAttempts();const { chats } = useAgentChats(attempts);- const first = redesign ? !chats?.length && realSpaces(spaces ?? []).length === 0 : tasks.length === 0;+ const first = redesign ? !chats?.length && listed.counted.length === 0 : tasks.length === 0;return (<div className="h-full overflow-y-auto [scrollbar-gutter:stable]" data-ask-first-home="">@@ -145,7 +147,7 @@ export function AskFirstHome() {<YourSpacesRow /></>) : !first && realSpaces(spaces ?? []).length > 0 ? (- <YourSpaces spaces={realSpaces(spaces ?? [])} />+ <YourSpaces spaces={orderSpaces(realSpaces(spaces ?? []))} />) : null}</div>{pick.dialog}diff --git a/apps/cua-spaces-web/src/components/ask-first/task-view.tsx b/apps/cua-spaces-web/src/components/ask-first/task-view.tsxindex d10f449e36..c66991556e 100644--- a/apps/cua-spaces-web/src/components/ask-first/task-view.tsx+++ b/apps/cua-spaces-web/src/components/ask-first/task-view.tsx@@ -311,7 +311,7 @@ export function StartFailed({ error, name, agent, host, onRetry }: { error: stri<div className="mt-3 flex flex-wrap items-center gap-2">{view.action === "set-up-host" ? (<Button className="h-10 px-4" render={<Link to="/machines" />}>- Open Computers+ Open Machines</Button>) : null}{view.action === "add-key" ? (diff --git a/apps/cua-spaces-web/src/components/desktop-switch.tsx b/apps/cua-spaces-web/src/components/desktop-switch.tsxnew file mode 100644index 0000000000..a9db4de5b6--- /dev/null+++ b/apps/cua-spaces-web/src/components/desktop-switch.tsx@@ -0,0 +1,62 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++import { useNavigate } from "@tanstack/react-router";+import { useState } from "react";++import { useMachines, useSession, useThisMachine, type MachinesViewToggle } from "@/bridge";+import { SettingRow } from "@/components/ui/grouped";+import { Switch } from "@/components/ui/switch";+import { toast } from "@/components/ui/toast";+import { showDesktop } from "@/lib/hidden-desktops";++const errorText = (e: unknown) => (e instanceof Error ? e.message : String(e));++/**+ * This Mac's "Let other machines control this desktop" switch, as the machine page draws it+ * (the core's `machines.view` toggle), for the page of its desktop row. Turning it on also+ * brings a hidden desktop row back. Before this Mac is set up, it opens the setup on Machines.+ */+export function useDesktopSwitch(): { toggle: MachinesViewToggle | undefined; busy: boolean; flip: () => void } {+ const { view } = useMachines();+ const { data: session } = useSession();+ const host = useThisMachine(session?.identity ?? null);+ const navigate = useNavigate();+ const [busy, setBusy] = useState(false);+ const toggle = view?.machines.find((m) => m.current)?.toggles.find((t) => t.id === "desktop");+ const flip = () => {+ if (!toggle) return;+ if (toggle.setup) {+ host.openForm(toggle.setup);+ void navigate({ to: "/machines" });+ return;+ }+ const turningOn = !toggle.on;+ setBusy(true);+ void (async () => {+ try {+ for (const a of toggle.actions) await host.run(a);+ if (turningOn) showDesktop("this-mac");+ } catch (e) {+ toast(`Couldn't change ${toggle.label}`, { description: errorText(e), type: "error" });+ } finally {+ setBusy(false);+ }+ })();+ };+ return { toggle, busy: busy || host.busy, flip };+}++/** The switch with its label, as a row of a grouped section. */+export function DesktopSwitchRow() {+ const { toggle, busy, flip } = useDesktopSwitch();+ if (!toggle) return null;+ return (+ <SettingRow+ data-desktop-switch=""+ label={toggle.label}+ labelId="desktop-switch-label"+ control={<Switch checked={toggle.on} disabled={!toggle.editable || !toggle.enabled || busy} aria-labelledby="desktop-switch-label" onCheckedChange={flip} />}+ />+ );+}diff --git a/apps/cua-spaces-web/src/components/settings/account-tab.tsx b/apps/cua-spaces-web/src/components/settings/account-tab.tsxindex 65200b8cae..4e9042bcc7 100644--- a/apps/cua-spaces-web/src/components/settings/account-tab.tsx+++ b/apps/cua-spaces-web/src/components/settings/account-tab.tsx@@ -60,9 +60,9 @@ function UsageBar({ id, label, text, used, limit }: { id: string; label: string;/** What the plan gives, in one line, from the limits the relay reports. */function allowanceLine(plan: string, usage: RelayUsage): string | null {- const { liveSessionsLimit: computers, hoursLimit: away } = usage;- if (!computers || !away) return null;- return `${plan}: ${computers} computers at once and ${hours(away)} hours a month away from the computer you're using.`;+ const { liveSessionsLimit: machines, hoursLimit: away } = usage;+ if (!machines || !away) return null;+ return `${plan}: ${machines} machines at once and ${hours(away)} hours a month away from the machine you're using.`;}/**@@ -134,7 +134,7 @@ export function AccountTab() {/><UsageBarid="Live sessions"- label="Computers in use right now"+ label="Machines in use right now"text={`${usage.liveSessions} of ${usage.liveSessionsLimit ?? 0}`}used={usage.liveSessions}limit={usage.liveSessionsLimit}diff --git a/apps/cua-spaces-web/src/components/settings/general-tab.tsx b/apps/cua-spaces-web/src/components/settings/general-tab.tsxindex 08c010da03..5e7739e2b1 100644--- a/apps/cua-spaces-web/src/components/settings/general-tab.tsx+++ b/apps/cua-spaces-web/src/components/settings/general-tab.tsx@@ -4,7 +4,7 @@import { MonitorIcon, MoonIcon, SunIcon } from "lucide-react";import { useEffect, useState } from "react";-import { chooseSettings, useBridge, useLoginItem, useSession, useSettings, useTips, type GlobalShortcut, type SettingsRow as CoreRow } from "@/bridge";+import { chooseSettings, useBridge, useLoginItem, useMachines, useSession, useSettings, useThisMachine, useTips, type GlobalShortcut, type SettingsRow as CoreRow } from "@/bridge";import { SettingsGroup, SettingsRow } from "@/components/settings-group";import { CoreSettingsRow } from "@/components/settings/core-section";import { Button } from "@/components/ui/button";@@ -36,7 +36,7 @@ export const showCuaIn = (row: CoreRow): CoreRow => ({/*** Settings, General: the few things a person sets every day. Start at login,* where Cua lives (Mac), appearance, the shortcut (Mac) and usage data.- * Everything else moved: Advanced, Connectors, Trusted devices, the Volume+ * Everything else moved: Advanced, Connectors, Trusted machines, the Volume* and Keyvault pages.*/export function GeneralTab() {@@ -123,10 +123,56 @@ export function GeneralTab() {/>) : null}</SettingsGroup>+ <SharingGroup /></div>);}+/** What the switch says before this Mac is set up (the core's words once it is). */+const SPACES_SWITCH = "Let other machines create Spaces here";+const SPACES_HELP = "Your other machines can create Spaces here.";++/**+ * Sharing, for this Mac: "Let other machines create Spaces here", on by default. Before this Mac is set+ * up, turning it on sets it up with the defaults (its desktop stays private; that switch is on its page+ * under Machines). With both switches off this Mac simply is not shared, with no error.+ */+function SharingGroup() {+ const { data: machines } = useMachines();+ const { data: session } = useSession();+ const host = useThisMachine(session?.identity ?? null);+ const panel = machines?.find((m) => m.current && !m.device)?.panel;+ if (!panel) return null;+ const toggle = panel.toggles?.find((t) => t.id === "spaces");+ const resume = panel.actions.some((a) => a.id === "resume-sharing" && a.enabled);+ const on = panel.configured && Boolean(toggle?.on);+ const flip = (next: boolean) => {+ void (async () => {+ try {+ if (!panel.configured) {+ if (next && !(await host.quickSetUp())) throw new Error(host.setupError?.message ?? "Couldn't set this Mac up.");+ return;+ }+ if (!toggle) return;+ await host.run(toggle.action);+ if (next && resume) await host.run("resume-sharing");+ } catch (e) {+ fail("Couldn't change sharing")(e);+ }+ })();+ };+ return (+ <SettingsGroup title="Sharing">+ <SettingsRow+ label={toggle?.label ?? SPACES_SWITCH}+ description={toggle?.help ?? SPACES_HELP}+ htmlFor="share-spaces"+ control={<Switch id="share-spaces" data-setting-row="share-spaces" checked={on} disabled={host.busy || (panel.configured && !toggle?.enabled)} onCheckedChange={flip} />}+ />+ </SettingsGroup>+ );+}+/** Launch at login as the app core lays it out; the switch shows what the system reports, never what was asked. */function LaunchAtLogin() {const { data, setLaunchAtLogin, openLoginItems } = useLoginItem();diff --git a/apps/cua-spaces-web/src/components/settings/screen-permissions-section.tsx b/apps/cua-spaces-web/src/components/settings/screen-permissions-section.tsxindex fe9f40b47f..d5a804d867 100644--- a/apps/cua-spaces-web/src/components/settings/screen-permissions-section.tsx+++ b/apps/cua-spaces-web/src/components/settings/screen-permissions-section.tsx@@ -9,7 +9,7 @@ import { Button } from "@/components/ui/button";import { toastError } from "@/components/ui/toast";/**- * Settings, Trusted devices, "Let others use this computer": the first run's "Share this Mac's screen" rows+ * Settings, Trusted machines, "Let others use this machine": the first run's "Share this Mac's screen" rows* (Screen Recording, Accessibility), for whoever chose "Not now" there.* Only on a Mac that is set up and shares its screen. Allow opens the app's* guide to the System Settings pane; a check shows once it is granted.@@ -18,9 +18,9 @@ export function ScreenPermissionsSection() {const perms = useScreenPermissions();if (!perms) return null;const { view } = perms;- const place = view.rows.map((r) => /^See (.+)\u2019?'?s screen$/.exec(r.title)?.[1]).find(Boolean) ?? "this computer";+ const place = view.rows.map((r) => /^See (.+)\u2019?'?s screen$/.exec(r.title)?.[1]).find(Boolean) ?? "this machine";return (- <SettingsGroup title="Let others use this computer">+ <SettingsGroup title="Let others use this machine">{view.rows.map((r) => (<SettingsRowkey={r.id}diff --git a/apps/cua-spaces-web/src/components/shell/command-palette.tsx b/apps/cua-spaces-web/src/components/shell/command-palette.tsxindex 9ccbf90318..43974f7fcd 100644--- a/apps/cua-spaces-web/src/components/shell/command-palette.tsx+++ b/apps/cua-spaces-web/src/components/shell/command-palette.tsx@@ -25,7 +25,7 @@ import { Dialog, DialogPopup, DialogTitle } from "@/components/ui/dialog";import { Kbd, Shortcut } from "@/components/ui/kbd";import { toast, toastError } from "@/components/ui/toast";import { filterCommands, type PaletteCommand } from "@/lib/commands";-import { machineName, osLabel, paletteKeywords, realSpaces, spaceState } from "@/lib/spaces";+import { machineName, orderSpaces, osLabel, paletteKeywords, realSpaces, spaceState } from "@/lib/spaces";import { bindingFor } from "@/lib/keybindings";import { SETTINGS_TABS } from "@/lib/settings-tabs";import { useTheme } from "@/lib/theme";@@ -134,7 +134,7 @@ function PaletteBody({ onClose }: { onClose: () => void }) {icon: icon(n.icon),run: () => void navigate({ to: n.to }),})),- // Each Settings tab, so Cmd+K finds "Connectors" or "Trusted devices" by name.+ // Each Settings tab, so Cmd+K finds "Connectors" or "Trusted machines" by name....SETTINGS_TABS.filter((t) => t.to !== "/settings").map((t) => ({id: `settings:${t.to}`,group: "Go to",@@ -144,7 +144,7 @@ function PaletteBody({ onClose }: { onClose: () => void }) {run: () => void navigate({ to: t.to }),})),{ id: "nav:onboarding", group: "Go to", label: "Onboarding", keywords: "welcome setup", icon: icon(SparklesIcon), run: () => void navigate({ to: "/onboarding" }) },- ...realSpaces(spaces).flatMap((s): Command[] => {+ ...orderSpaces(realSpaces(spaces)).flatMap((s): Command[] => {const state = spaceState(s);const meta = { group: "Spaces", hint: osLabel(s), keywords: paletteKeywords(s, state, machineName(machines, s)), icon: <OsIcon os={s.os} className="size-3.5 text-muted-foreground" /> };const out: Command[] = [{ ...meta, id: `space:open:${s.id}`, label: `Open ${s.name}`, run: () => openSpace(s.id) }];diff --git a/apps/cua-spaces-web/src/components/shell/nav.ts b/apps/cua-spaces-web/src/components/shell/nav.tsindex 62f4dd9f09..5deae3b27c 100644--- a/apps/cua-spaces-web/src/components/shell/nav.ts+++ b/apps/cua-spaces-web/src/components/shell/nav.ts@@ -16,7 +16,7 @@ export interface NavItem {export const NAV_ITEMS: NavItem[] = [{ to: "/spaces", label: "Spaces", icon: LayoutGridIcon, command: "nav.spaces" },- { to: "/machines", label: "Computers", icon: ServerIcon, command: "nav.machines" },+ { to: "/machines", label: "Machines", icon: ServerIcon, command: "nav.machines" },{ to: "/agents", label: "Agents", icon: BotIcon, command: "nav.agents" },{ to: "/keyvault", label: "Keyvault", icon: KeyRoundIcon, command: "nav.keyvault" },{ to: "/notifications", label: "Notifications", icon: BellIcon },diff --git a/apps/cua-spaces-web/src/components/shell/sidebar.tsx b/apps/cua-spaces-web/src/components/shell/sidebar.tsxindex 6418edb09d..1566a9bb5f 100644--- a/apps/cua-spaces-web/src/components/shell/sidebar.tsx+++ b/apps/cua-spaces-web/src/components/shell/sidebar.tsx@@ -14,7 +14,8 @@ import { CuaKey } from "@/components/cua-key";import { Button } from "@/components/ui/button";import { toast } from "@/components/ui/toast";import { bindingFor } from "@/lib/keybindings";-import { realSpaces, spaceState } from "@/lib/spaces";+import { useListedSpaces } from "@/components/spaces/listed";+import { spaceState } from "@/lib/spaces";import { cn } from "@/lib/utils";import { SIDEBAR_DEFAULT, useUiStore } from "@/stores/ui";import { Shortcut } from "@/components/ui/kbd";@@ -31,7 +32,8 @@ export function Sidebar() {const notifications = useNotifications();// No count before the list was read (not "0" while the daemon starts); while computers still answer, the// Spaces known so far.- const spacesCount = spaces && listStatus.loaded ? realSpaces(spaces).length : undefined;+ const { counted } = useListedSpaces(spaces);+ const spacesCount = spaces && listStatus.loaded ? counted.length : undefined;const counts: Partial<Record<string, number>> = { "/spaces": spacesCount, "/machines": machines?.length };const navItems = useNavItems();const unread = notifications.data?.unread ?? 0;diff --git a/apps/cua-spaces-web/src/components/space-detail/this-mac-desktop.tsx b/apps/cua-spaces-web/src/components/space-detail/this-mac-desktop.tsxnew file mode 100644index 0000000000..425c214b44--- /dev/null+++ b/apps/cua-spaces-web/src/components/space-detail/this-mac-desktop.tsx@@ -0,0 +1,108 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++import { MonitorIcon } from "lucide-react";+import { useMemo, useState, type ReactNode } from "react";++import type { SpaceFact, SpaceThread } from "@/bridge";+import { useDesktopSwitch } from "@/components/desktop-switch";+import { SpaceCall } from "@/components/space-thread/space-call";+import { Button } from "@/components/ui/button";+import { thisComputerText } from "@/lib/host-labels";+import { cn } from "@/lib/utils";++/** Said when a message is written while the desktop is not shared, and kept in the box. */+export const NOT_SHARING_CHAT = "Share this desktop to chat here.";++/**+ * The stage of This Mac's desktop page. It is never a stream (the screen in front of you would only+ * mirror itself): while the desktop is not shared it says so, with one button that turns sharing on;+ * while it is, it says that instead. `nudge` lights it when someone writes without sharing.+ */+export function DesktopStage({ shared, nudge }: { shared: boolean; nudge?: boolean }) {+ const { toggle, busy, flip } = useDesktopSwitch();+ const here = thisComputerText();+ return (+ <div+ data-this-mac-desktop={shared ? "shared" : "off"}+ data-nudge={nudge ? "" : undefined}+ className={cn("flex h-full min-h-48 flex-col items-center justify-center gap-3 rounded-lg bg-tile px-6 text-center", nudge && "ring-2 ring-brand")}+ >+ <MonitorIcon className="size-6 text-muted-foreground/50" aria-hidden />+ <div>+ <h2 className="text-[15px] font-semibold">{shared ? "You're sharing your desktop as a Space" : "You aren't sharing your desktop as a Space"}</h2>+ <p className="mt-1 text-[13px] text-muted-foreground">+ {shared ? `Your other machines can see and control the screen of ${here}. It isn't shown here.` : `Turn this on to see and control the screen of ${here} from your other machines.`}+ </p>+ </div>+ {toggle ? (+ <Button variant={shared ? "outline" : "default"} disabled={!toggle.editable || !toggle.enabled || busy} onClick={flip} data-desktop-share-button="">+ {shared ? "Stop sharing" : "Share this desktop"}+ </Button>+ ) : null}+ </div>+ );+}++/**+ * This Mac's desktop row opened: a Space's page as any other (the header, the thread with its composer,+ * the rail), with the prompt where the stream would be. The thread has no daemon behind it: writing+ * while the desktop is not shared lights the prompt and keeps the draft.+ */+export function ThisMacCall({+ spaceName,+ shared,+ header,+ facts,+ more,+ identity,+}: {+ spaceName: string;+ shared: boolean;+ header: ReactNode;+ facts: readonly SpaceFact[];+ more: ReactNode;+ identity: string | null;+}) {+ const [nudge, setNudge] = useState(0);+ const thread = useMemo<SpaceThread>(+ () => ({+ status: "ready",+ items: [],+ entries: [],+ members: [],+ shares: [],+ me: "me",+ role: null,+ error: null,+ hasMoreBefore: false,+ loadEarlier: async () => {},+ // Not shared: the prompt lights up and the draft stays in the box.+ post: async () => {+ setNudge((n) => n + 1);+ throw new Error(shared ? "Chat isn't available on this Mac's own desktop yet." : NOT_SHARING_CHAT);+ },+ answer: async () => {},+ setRights: async () => {},+ removeAgent: null,+ }),+ [shared],+ );+ return (+ <SpaceCall+ spaceId="this-mac"+ spaceName={spaceName}+ identity={identity}+ header={header}+ stage={<DesktopStage shared={shared} nudge={nudge > 0 && !shared} key={nudge} />}+ thread={thread}+ // The composer posts straight to this thread (no summon behind it).+ creating+ facts={facts}+ more={more}+ windows={[]}+ desktop={null}+ onStream={() => {}}+ />+ );+}diff --git a/apps/cua-spaces-web/src/components/spaces/listed.ts b/apps/cua-spaces-web/src/components/spaces/listed.tsnew file mode 100644index 0000000000..9e035251a0--- /dev/null+++ b/apps/cua-spaces-web/src/components/spaces/listed.ts@@ -0,0 +1,27 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++import { useMemo } from "react";++import { sharesDesktop, useBridge, type Space } from "@/bridge";+import { useHiddenDesktops } from "@/lib/hidden-desktops";+import { countedSpaces, listedSpaces } from "@/lib/spaces";++/**+ * What the Spaces list, Home's strip and the sidebar show from the roster: your Spaces and the+ * machines' desktops that are shared, plus This Mac's desktop ("Not sharing") once something else is+ * listed. `counted` leaves that unshared desktop out (the count, "N running", the empty state);+ * `hiddenCount` is how many desktop rows "Show hidden" brings back.+ */+export function useListedSpaces(all: readonly Space[] | undefined): { listed: Space[]; counted: Space[]; hiddenCount: number } {+ const hidden = useHiddenDesktops();+ const { core } = useBridge();+ return useMemo(() => {+ const roster = all ?? [];+ // Another machine's desktop shows only while it shares it and answers.+ const shares = (s: Space) => sharesDesktop(core, s) !== false && s.sdk?.reachable !== false;+ const listed = listedSpaces(roster, hidden, shares);+ const all_ = listedSpaces(roster, new Set(), shares);+ return { listed, counted: countedSpaces(listed), hiddenCount: all_.length - listed.length };+ }, [all, hidden, core]);+}diff --git a/apps/cua-spaces-web/src/components/spaces/model.ts b/apps/cua-spaces-web/src/components/spaces/model.tsindex 7324a09101..57fe683e2d 100644--- a/apps/cua-spaces-web/src/components/spaces/model.ts+++ b/apps/cua-spaces-web/src/components/spaces/model.ts@@ -2,7 +2,7 @@// Copyright (c) 2026 Cua AI, Inc.import type { Space, SpaceAccess } from "@/bridge";-import type { SpaceState } from "@/lib/spaces";+import { isMachineDesktop, isUnsharedDesktop, type SpaceState } from "@/lib/spaces";/** One Space as the Spaces page draws it (a tile or a list row). */export interface SpaceItem {@@ -15,4 +15,18 @@ export interface SpaceItem {bytes: number | null;/** The computer it runs on, by name (filter box and fallbacks). */machine: string;+ /** A machine's own desktop, listed beside the Spaces: `shared` while it is shared, `off` ("Not sharing") on This Mac while its switch is off. */+ desktop?: "shared" | "off";+}++/** How a list row is drawn as a desktop (`undefined`: a Space). */+export function desktopOf(space: Space): SpaceItem["desktop"] {+ if (!isMachineDesktop(space)) return undefined;+ return isUnsharedDesktop(space) ? "off" : "shared";+}++/** What a desktop row says in place of the core's state word: "Not sharing", or "Sharing" for This Mac's own (another machine's says "Running"). */+export function desktopWord(item: Pick<SpaceItem, "desktop" | "space">): string | undefined {+ if (item.desktop === "off") return "Not sharing";+ return item.desktop === "shared" && item.space.id === "this-mac" ? "Sharing" : undefined;}diff --git a/apps/cua-spaces-web/src/components/spaces/selection.tsx b/apps/cua-spaces-web/src/components/spaces/selection.tsxindex b0abc89acd..e8d9325946 100644--- a/apps/cua-spaces-web/src/components/spaces/selection.tsx+++ b/apps/cua-spaces-web/src/components/spaces/selection.tsx@@ -19,6 +19,7 @@ import type { SpaceItem } from "./model";/** It can be ticked: yours to delete, or someone else's to leave; not while it goes. */export function selectable(item: SpaceItem): boolean {+ if (item.desktop) return false;if (item.state === "deleting" || item.state === "creating") return false;return item.mine ? item.access.canDelete && canDelete(item.space) : item.access.canLeave;}@@ -132,6 +133,8 @@ export function SelectBox({onPicture?: boolean;className?: string;}) {+ // A machine's desktop is not a Space to delete: no checkbox (an empty cell keeps the columns).+ if (item.desktop) return <span className="block size-4" aria-hidden />;const on = picked ?? selection.has(item.space.id);const can = selectable(item);const why = can || on ? null : unselectableReason(item);diff --git a/apps/cua-spaces-web/src/components/spaces/space-list.tsx b/apps/cua-spaces-web/src/components/spaces/space-list.tsxindex 0a8cf81fa7..11fe190a9a 100644--- a/apps/cua-spaces-web/src/components/spaces/space-list.tsx+++ b/apps/cua-spaces-web/src/components/spaces/space-list.tsx@@ -9,18 +9,19 @@*/import { Link, useNavigate } from "@tanstack/react-router";-import { ArrowDownIcon, ArrowUpIcon, LoaderCircleIcon } from "lucide-react";+import { ArrowDownIcon, ArrowUpIcon, EyeOffIcon, LoaderCircleIcon } from "lucide-react";import type { MouseEvent, ReactNode, RefObject } from "react";import { OsIcon } from "@/components/os-icon";import { StateLabel } from "@/components/state-dot";+import { DesktopTag } from "@/components/spaces/space-tile";import { useWindowedRows } from "@/hooks/use-windowed-rows";import { lastUsedText, sizeCell, type SpacesSort } from "@/lib/spaces-page";import { WINDOW_FROM } from "@/lib/windowing";import { cn } from "@/lib/utils";import { PeopleStack, SpaceMark } from "./avatars";-import type { SpaceItem } from "./model";+import { desktopWord, type SpaceItem } from "./model";export interface SpaceListProps {items: SpaceItem[];@@ -39,12 +40,14 @@ export interface SpaceListProps {/** The row's "⋯" (on hover) and right-click menu. */menu?: (item: SpaceItem, children: ReactNode) => ReactNode;more?: (item: SpaceItem) => ReactNode;+ /** A machine's desktop row: Hide, in place of the "⋯", on hover. */+ hide?: (item: SpaceItem) => void;}/** A list row's height (`h-10`), and nothing between rows. */const ROW_PITCH = 40;-export function SpaceList({ items, sort, onSort, now, selection, menu, more }: SpaceListProps) {+export function SpaceList({ items, sort, onSort, now, selection, menu, more, hide }: SpaceListProps) {// A long list draws only the rows on screen (`lib/windowing.ts`).const windowed = useWindowedRows({ enabled: items.length >= WINDOW_FROM, rows: items.length, perRow: 1, gap: 0, estimatePitch: () => ROW_PITCH });const { start: from, end: to } = windowed.window;@@ -69,14 +72,14 @@ export function SpaceList({ items, sort, onSort, now, selection, menu, more }: S{selection ? <span role="columnheader">{selection.header}</span> : null}<span role="columnheader">{head("name", "Name")}</span><span role="columnheader">{head(null, "Status")}</span>- <span role="columnheader">{head(null, "Computer")}</span>+ <span role="columnheader">{head(null, "Machine")}</span><span role="columnheader">{head("size", "Size", true)}</span><span role="columnheader">{head("used", "Last used")}</span><span /></div><div role="rowgroup" ref={windowed.ref as RefObject<HTMLDivElement>} style={windowed.style}>{items.slice(from, to).map((item) => {- const row = <ListRow key={item.space.id} item={item} cols={cols} now={now} selection={selection} more={more?.(item)} />;+ const row = <ListRow key={item.space.id} item={item} cols={cols} now={now} selection={selection} more={item.desktop ? undefined : more?.(item)} hide={item.desktop ? () => hide?.(item) : undefined} />;return menu ? <div key={item.space.id}>{menu(item, row)}</div> : row;})}</div>@@ -84,7 +87,7 @@ export function SpaceList({ items, sort, onSort, now, selection, menu, more }: S);}-function ListRow({ item, cols, now, selection, more }: { item: SpaceItem; cols: string; now: number; selection: SpaceListProps["selection"]; more?: ReactNode }) {+function ListRow({ item, cols, now, selection, more, hide }: { item: SpaceItem; cols: string; now: number; selection: SpaceListProps["selection"]; more?: ReactNode; hide?: () => void }) {const { space, state, access } = item;const navigate = useNavigate();const selected = selection?.selected(item) ?? false;@@ -123,6 +126,7 @@ function ListRow({ item, cols, now, selection, more }: { item: SpaceItem; cols:>{space.name}</Link>+ {item.desktop ? <DesktopTag /> : null}<PeopleStack access={access} /></span><span role="cell" className="flex min-w-0 items-center">@@ -131,7 +135,7 @@ function ListRow({ item, cols, now, selection, more }: { item: SpaceItem; cols:<LoaderCircleIcon className="size-3 animate-spin" aria-hidden /> Deleting</span>) : (- <StateLabel state={state} space={space} />+ <StateLabel state={item.desktop === "off" ? "stopped" : state} space={space} word={desktopWord(item)} />)}</span><span role="cell" className="truncate text-xs text-muted-foreground">@@ -144,7 +148,20 @@ function ListRow({ item, cols, now, selection, more }: { item: SpaceItem; cols:{lastUsedText(space.lastUsedAt, now)}</span><span role="cell" className="flex justify-end" onClick={(e) => e.stopPropagation()}>- {more}+ {hide ? (+ <button+ type="button"+ data-row-hide=""+ title="Hide"+ aria-label={`Hide ${space.name}`}+ onClick={hide}+ className="flex size-7 shrink-0 cursor-default items-center justify-center rounded-lg text-muted-foreground opacity-0 outline-none group-hover/row:opacity-100 hover:bg-tile hover:text-foreground focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/60"+ >+ <EyeOffIcon className="size-4" aria-hidden />+ </button>+ ) : (+ more+ )}</span></div>);diff --git a/apps/cua-spaces-web/src/components/spaces/space-menu.tsx b/apps/cua-spaces-web/src/components/spaces/space-menu.tsxindex 91593bcb8a..084a06c6e7 100644--- a/apps/cua-spaces-web/src/components/spaces/space-menu.tsx+++ b/apps/cua-spaces-web/src/components/spaces/space-menu.tsx@@ -46,6 +46,8 @@ export interface MenuActions {power: (item: SpaceItem, on: boolean) => void;/** Ask to delete or leave it (the bulk confirm, with one Space). */remove: (item: SpaceItem) => void;+ /** Hide a machine's desktop row from the list (Hide on its hover). */+ hide?: (item: SpaceItem) => void;}/** The menu's items, each with what it does. */@@ -55,7 +57,8 @@ export function useSpaceMenu(item: SpaceItem, actions: MenuActions): (SpaceMenuIconst share = useShareSheet();const teleport = useTeleport();const { data: session } = useSession();- if (core.status !== "ready") return [];+ // A machine's desktop is not a Space: no delete, power or share menu; Hide is its hover button.+ if (core.status !== "ready" || item.desktop) return [];const items = spaceMenu(core, menuInput(item));const run = (id: SpaceMenuItem["id"]) => {switch (id) {diff --git a/apps/cua-spaces-web/src/components/spaces/space-tile.tsx b/apps/cua-spaces-web/src/components/spaces/space-tile.tsxindex a7e347add2..d4441c10e6 100644--- a/apps/cua-spaces-web/src/components/spaces/space-tile.tsx+++ b/apps/cua-spaces-web/src/components/spaces/space-tile.tsx@@ -15,7 +15,7 @@*/import { Link } from "@tanstack/react-router";-import { ArrowDownCircleIcon, KeyRoundIcon, LoaderCircleIcon, PowerIcon } from "lucide-react";+import { ArrowDownCircleIcon, EyeOffIcon, KeyRoundIcon, LoaderCircleIcon, PowerIcon } from "lucide-react";import { useEffect, useRef, useState, type DragEvent, type MouseEvent, type ReactNode } from "react";import { useBridge, useSpaceFiles, useSpaces, useSpaceThumbnail, useTips, useWindowDropTarget, type Space, type SpaceAccess } from "@/bridge";@@ -25,11 +25,11 @@ import { toast, toastError } from "@/components/ui/toast";import { useTileVideo } from "@/components/video/tile-video";import { useInView } from "@/hooks/use-in-view";import { creatingLine } from "@/lib/host-labels";-import { createError, createProgress, powerButton, powerError, type PowerButton } from "@/lib/spaces";+import { createError, createProgress, osLabel, powerButton, powerError, type PowerButton } from "@/lib/spaces";import { cn } from "@/lib/utils";import { PeopleStack, SpaceMark } from "./avatars";-import type { SpaceItem } from "./model";+import { desktopWord, type SpaceItem } from "./model";export interface SpaceTileProps {item: SpaceItem;@@ -43,6 +43,8 @@ export interface SpaceTileProps {topLeft?: ReactNode;/** After the text, on hover (the "⋯" menu). */more?: ReactNode;+ /** A machine's desktop: Hide, in place of the power button, on hover. */+ hide?: () => void;/** A click on the tile; call `preventDefault` to keep it from opening. */onClick?: (e: MouseEvent) => void;}@@ -56,16 +58,17 @@ export interface SpaceTileProps {*/export const TILE_CELL = "-m-1 p-1 [content-visibility:auto] [contain-intrinsic-size:auto_240px]";-export function SpaceTile({ item, accessKey, selected = false, busy = false, topLeft, more, onClick }: SpaceTileProps) {+export function SpaceTile({ item, accessKey, selected = false, busy = false, topLeft, more, hide, onClick }: SpaceTileProps) {const { space, state, access } = item;- const drop = useTileDrop(space, state === "running");+ const drop = useTileDrop(space, state === "running" && item.desktop !== "off");// A real window dragged over this tile (the host hit-tests the tiles' boxes and says which; macOS only).const windowOver = useWindowDropTarget() === space.id;const creating = state === "creating";const { core } = useBridge();// Shown wherever the Space has power at all; disabled, with why, where you may not use it.- const power = powerButton(core, space);+ const power = item.desktop ? null : powerButton(core, space);const hasPower = power !== null;+ const hasAction = hasPower || Boolean(hide);return (<divclassName={cn("group/tile relative", (busy || state === "deleting") && "opacity-60")}@@ -93,16 +96,18 @@ export function SpaceTile({ item, accessKey, selected = false, busy = false, top<p data-space-name="" className="min-w-0 flex-1 truncate text-[13px] leading-5 font-semibold">{space.name}</p>+ {item.desktop ? <DesktopTag /> : null}{/* The state, in the core's words ("Running", "Suspended", "Turning off…"), flush right; the hover "⋯" takes its place. */}<StateLabel- state={state}+ state={item.desktop === "off" ? "stopped" : state}space={space}+ word={desktopWord(item)}className="shrink-0 group-has-[[data-space-more]]/tile:group-hover/tile:invisible group-has-[[data-space-more]]/tile:group-focus-within/tile:invisible group-has-[[data-popup-open]]/tile:invisible"/></div>{/* Where it runs ("This Mac", "Sam's Mac mini", "QA team"); while being created, the core's pending line. */}<p className="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground">- <span className="truncate">{creating && space.detail ? creatingLine(space.detail) : access.place || item.machine}</span>+ <span className="truncate">{creating && space.detail ? creatingLine(space.detail) : item.desktop && (access.place || item.machine) === space.name ? osLabel(space) : access.place || item.machine}</span><PeopleStack access={access} /></p>{/* Downloading: how far, how fast, how long is left. */}@@ -145,7 +150,7 @@ export function SpaceTile({ item, accessKey, selected = false, busy = false, toptitle="A Keyvault sign-in is live in this Space. Open Access."className={cn("ml-auto inline-flex h-6 items-center gap-1 rounded-md bg-black/55 px-1.5 text-[11px] font-medium text-white/90 outline-none backdrop-blur-sm transition-[margin] hover:text-white focus-visible:ring-2 focus-visible:ring-ring/60",- hasPower && "group-hover/tile:mr-7 group-focus-within/tile:mr-7",+ hasAction && "group-hover/tile:mr-7 group-focus-within/tile:mr-7",)}><KeyRoundIcon className="size-3" /> Signed in@@ -155,6 +160,10 @@ export function SpaceTile({ item, accessKey, selected = false, busy = false, top<div className="absolute right-0 top-0"><TilePower space={space} button={power} denied={access.canPower ? null : cantPower(access)} /></div>+ ) : hide ? (+ <div className="absolute right-0 top-0">+ <TileHide name={space.name} onHide={hide} />+ </div>) : null}</div>{more ? <div className="absolute top-[calc(100%-2.75rem)] right-0 z-10">{more}</div> : null}@@ -162,6 +171,32 @@ export function SpaceTile({ item, accessKey, selected = false, busy = false, top);}+/** The "Desktop" tag beside a machine's own desktop in the list. */+export function DesktopTag() {+ return (+ <span data-desktop-tag="" className="shrink-0 text-xs text-muted-foreground">+ Desktop+ </span>+ );+}++/** Hide, on a desktop's hover where a Space has its power button: the row leaves the list until "Show hidden". */+function TileHide({ name, onHide }: { name: string; onHide: () => void }) {+ return (+ <button+ type="button"+ data-tile-hide=""+ data-video-hole=""+ title="Hide"+ aria-label={`Hide ${name}`}+ onClick={onHide}+ className="inline-flex size-6 items-center justify-center rounded-lg bg-black/55 text-white/90 opacity-0 outline-none backdrop-blur-sm group-focus-within/tile:opacity-100 group-hover/tile:opacity-100 hover:bg-black/70 hover:text-white focus-visible:ring-2 focus-visible:ring-ring/60"+ >+ <EyeOffIcon className="size-3" aria-hidden />+ </button>+ );+}+/** The picture: its latest capture (dimmed while off) or its OS mark, live video over it while it runs. */function Picture({ item, ring, busy }: { item: SpaceItem; ring: boolean; busy: boolean }) {const { space, state } = item;diff --git a/apps/cua-spaces-web/src/components/spaces/spaces-toolbar.tsx b/apps/cua-spaces-web/src/components/spaces/spaces-toolbar.tsxindex a1fd6e05dd..9cfe2ad409 100644--- a/apps/cua-spaces-web/src/components/spaces/spaces-toolbar.tsx+++ b/apps/cua-spaces-web/src/components/spaces/spaces-toolbar.tsx@@ -10,7 +10,7 @@import { Menu as MenuPrimitive } from "@base-ui/react/menu";import { Toggle } from "@base-ui/react/toggle";import { ToggleGroup } from "@base-ui/react/toggle-group";-import { ArrowUpDownIcon, CheckIcon, ChevronDownIcon, LayoutGridIcon, ListIcon, SearchIcon } from "lucide-react";+import { ArrowUpDownIcon, CheckIcon, ChevronDownIcon, LayoutGridIcon, ListIcon, MoreHorizontalIcon, SearchIcon } from "lucide-react";import type { ReactNode } from "react";import type { SpaceFilter } from "@/lib/spaces";@@ -59,11 +59,13 @@ export interface ToolbarProps {onQuery: (query: string) => void;/** Before the menus (Select stopped). */lead?: ReactNode;+ /** Desktop rows hidden from the list: the overflow's "Show hidden". */+ hidden?: { count: number; onShow: () => void };}export function SpacesToolbar(p: ToolbarProps) {- const computers = [{ value: "", label: "All computers" }, ...p.computers];- const computer = computers.find((c) => c.value === (p.on ?? "")) ?? { value: p.on ?? "", label: "All computers" };+ const computers = [{ value: "", label: "All machines" }, ...p.computers];+ const computer = computers.find((c) => c.value === (p.on ?? "")) ?? { value: p.on ?? "", label: "All machines" };return (<div data-spaces-toolbar="" className="mb-5 flex min-h-9 flex-wrap items-center gap-x-2 gap-y-2"><Chips value={p.state} onChange={p.onState} />@@ -117,11 +119,36 @@ export function SpacesToolbar(p: ToolbarProps) {className="h-7 w-full rounded-lg bg-tile pr-2 pl-8 text-xs outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring/60 [&::-webkit-search-cancel-button]:hidden"/></div>+ {p.hidden ? <Overflow hidden={p.hidden} /> : null}</div></div>);}+/** The list's overflow: "Show hidden", while a desktop row is hidden. */+function Overflow({ hidden }: { hidden: { count: number; onShow: () => void } }) {+ return (+ <MenuPrimitive.Root>+ <MenuPrimitive.Trigger+ aria-label="More"+ data-toolbar-menu="overflow"+ className="ml-1 flex size-7 cursor-default items-center justify-center rounded-lg text-muted-foreground outline-none hover:bg-tile hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/60 data-popup-open:bg-tile data-popup-open:text-foreground"+ >+ <MoreHorizontalIcon className="size-4" />+ </MenuPrimitive.Trigger>+ <MenuPrimitive.Portal>+ <MenuPrimitive.Positioner sideOffset={4} align="end" className="z-50 outline-none">+ <MenuPrimitive.Popup data-toolbar-popup="overflow" className={MENU_POPUP}>+ <MenuPrimitive.Item data-show-hidden="" onClick={hidden.onShow} className={MENU_ITEM}>+ Show hidden+ </MenuPrimitive.Item>+ </MenuPrimitive.Popup>+ </MenuPrimitive.Positioner>+ </MenuPrimitive.Portal>+ </MenuPrimitive.Root>+ );+}+/** The state chips: rounded rectangles in the one radius; the chosen one inverted. */function Chips({ value, onChange }: { value: SpaceFilter; onChange: (v: SpaceFilter) => void }) {return (diff --git a/apps/cua-spaces-web/src/components/state-dot.tsx b/apps/cua-spaces-web/src/components/state-dot.tsxindex d942c59d49..e3873d5ecc 100644--- a/apps/cua-spaces-web/src/components/state-dot.tsx+++ b/apps/cua-spaces-web/src/components/state-dot.tsx@@ -19,9 +19,9 @@ const DOT: Record<SpaceState, string> = {* "Suspended", "Stopped", "Turning on…") when `space` is given, else this* page's word for the state.*/-export function StateLabel({ state, space, className }: { state: SpaceState; space?: Space; className?: string }) {+export function StateLabel({ state, space, word: given, className }: { state: SpaceState; space?: Space; /** This word in place of the core's ("Not sharing" on a desktop). */ word?: string; className?: string }) {const { core } = useBridge();- const word = space ? (core.tryCall<string>("sidebar.statusText", { space }) ?? STATE_LABEL[state]) : STATE_LABEL[state];+ const word = given ?? (space ? (core.tryCall<string>("sidebar.statusText", { space }) ?? STATE_LABEL[state]) : STATE_LABEL[state]);return (<span data-state-label={state} className={cn("inline-flex items-center gap-1.5 text-xs text-muted-foreground", className)}><span className={cn("size-1.5 rounded-full", DOT[state])} aria-hidden />diff --git a/apps/cua-spaces-web/src/components/video/tile-video.ts b/apps/cua-spaces-web/src/components/video/tile-video.tsindex d0194a4724..0d3a3cbba4 100644--- a/apps/cua-spaces-web/src/components/video/tile-video.ts+++ b/apps/cua-spaces-web/src/components/video/tile-video.ts@@ -17,6 +17,8 @@ const TILE_RADIUS = 8;*/export function canStreamTile(space: Space): boolean {if (spaceState(space) !== "running") return false;+ // This Mac's own desktop is never streamed here: it would only mirror itself.+ if (space.id === "this-mac") return false;const sdk = space.sdk;return !sdk || (sdk.reachable && sdk.features.includes("desktop_stream"));}diff --git a/apps/cua-spaces-web/src/components/video/webcodecs-slots.test.tsx b/apps/cua-spaces-web/src/components/video/webcodecs-slots.test.tsxindex bb9a037159..53bbb407bd 100644--- a/apps/cua-spaces-web/src/components/video/webcodecs-slots.test.tsx+++ b/apps/cua-spaces-web/src/components/video/webcodecs-slots.test.tsx@@ -422,7 +422,7 @@ describe("<StreamSurface> in the Electron shell", () => {});// The SwiftUI app's DetailApprovalTests: the open detail follows this device's approval.- const NOTICE: MachineAccessNotice = { kind: "needs-enrollment", status: "Not enrolled", text: "Enroll this Mac to connect to your other computers.", actionLabel: "Enroll This Mac…" };+ const NOTICE: MachineAccessNotice = { kind: "needs-enrollment", status: "Not enrolled", text: "Enroll this Mac to connect to your other machines.", actionLabel: "Enroll This Mac…" };const withAccess = () => {const adapter = createDemoAdapter({ latencyMs: 1 });const ui = (access: MachineAccessNotice | null) => (diff --git a/apps/cua-spaces-web/src/legacy/__tests__/add-machine-dialog.test.tsx b/apps/cua-spaces-web/src/legacy/__tests__/add-machine-dialog.test.tsxindex 07512a39fd..443ca11151 100644--- a/apps/cua-spaces-web/src/legacy/__tests__/add-machine-dialog.test.tsx+++ b/apps/cua-spaces-web/src/legacy/__tests__/add-machine-dialog.test.tsx@@ -251,7 +251,7 @@ describe("Add a computer by link or QR code", () => {});await mount(flaky);await waitFor(() => expect(phase()).toBe("error"));- expect(screen.getByText(/This computer isn't set up for access yet\. Set it up first, then add computers\./)).toBeTruthy();+ expect(screen.getByText(/This machine isn't set up for access yet\. Set it up first, then add machines\./)).toBeTruthy();expect(document.body.textContent).not.toMatch(/relay: no such device|not found:/);fail = false;fireEvent.click(screen.getByText("Try again"));diff --git a/apps/cua-spaces-web/src/legacy/__tests__/agents-detail-tabs.test.tsx b/apps/cua-spaces-web/src/legacy/__tests__/agents-detail-tabs.test.tsxindex 1562e435c8..45309d7fd2 100644--- a/apps/cua-spaces-web/src/legacy/__tests__/agents-detail-tabs.test.tsx+++ b/apps/cua-spaces-web/src/legacy/__tests__/agents-detail-tabs.test.tsx@@ -24,7 +24,7 @@ describe.skipIf(!wasmBuilt)("Agents, a persistent agent's detail", () => {it("shows Memory, adds a routine and lists Access with its audit", { timeout: 20_000 }, async () => {await mountApp("/agents?agent=ada", { failsCreates: false, listsGhost: false });await waitFor(() => expect(tab("memory")).not.toBeNull(), { timeout: 8000 });- expect([...document.querySelectorAll("[data-agent-tab]")].map((t) => t.textContent)).toEqual(["Conversation", "Memory", "Routines", "Access to this computer"]);+ expect([...document.querySelectorAll("[data-agent-tab]")].map((t) => t.textContent)).toEqual(["Conversation", "Memory", "Routines", "Access to this machine"]);expect(tab("run")!.getAttribute("aria-selected")).toBe("true");fireEvent.click(tab("memory")!);@@ -49,7 +49,7 @@ describe.skipIf(!wasmBuilt)("Agents, a persistent agent's detail", () => {fireEvent.click(tab("access")!);const access = await waitFor(() => panel("access")!);- expect(within(access).getByText("This computer")).toBeTruthy();+ expect(within(access).getByText("This machine")).toBeTruthy();expect(within(access).getByRole("button", { name: "Revoke" })).toBeTruthy();expect(within(access).getByText("Audit")).toBeTruthy();expect(within(access).getByText("Used relay:this-mac")).toBeTruthy();diff --git a/apps/cua-spaces-web/src/legacy/__tests__/join-with-code-dialog.test.tsx b/apps/cua-spaces-web/src/legacy/__tests__/join-with-code-dialog.test.tsxindex 193d891a2c..6ed5bcdc03 100644--- a/apps/cua-spaces-web/src/legacy/__tests__/join-with-code-dialog.test.tsx+++ b/apps/cua-spaces-web/src/legacy/__tests__/join-with-code-dialog.test.tsx@@ -90,7 +90,7 @@ describe("Join with a code", () => {fireEvent.click(join());await waitFor(() => expect(state()).toBe("failed"));expect(document.querySelector("[data-join-error]")?.textContent).toBe(- "That code didn't work. It may be used, expired or mistyped. Make a new one in Add a computer.",+ "That code didn't work. It may be used, expired or mistyped. Make a new one in Add a machine.",);expect(field().disabled).toBe(false);fireEvent.click(join());diff --git a/apps/cua-spaces-web/src/legacy/__tests__/spaces-list-incomplete.test.tsx b/apps/cua-spaces-web/src/legacy/__tests__/spaces-list-incomplete.test.tsxindex 666309f60c..57ad096f3a 100644--- a/apps/cua-spaces-web/src/legacy/__tests__/spaces-list-incomplete.test.tsx+++ b/apps/cua-spaces-web/src/legacy/__tests__/spaces-list-incomplete.test.tsx@@ -53,7 +53,7 @@ describe("the Spaces page while the list is incomplete", { timeout: 30_000 }, ()// This machine answered, 6 computers have not yet.status.current = { loaded: true, incomplete: true, reaching: 6, stale: false };act(() => emit({ type: "spaces.changed" }));- await waitFor(() => expect(reaching()).toBe("Reaching 6 computers…"), WAIT);+ await waitFor(() => expect(reaching()).toBe("Reaching 6 machines…"), WAIT);expect(emptyHome()).toBeNull();// Every computer answered and there is no Space: now it is empty.@@ -66,7 +66,7 @@ describe("the Spaces page while the list is incomplete", { timeout: 30_000 }, ()it("shows the Spaces known so far with the line under them", async () => {const status = { current: { loaded: true, incomplete: true, reaching: 1, stale: false } };await mount(status, false);- await waitFor(() => expect(reaching()).toBe("Reaching 1 computer…"), WAIT);+ await waitFor(() => expect(reaching()).toBe("Reaching 1 machine…"), WAIT);const grid = document.querySelector("ul.grid");expect(grid?.children.length).toBeGreaterThan(0);// The line follows the tiles, so they do not move when it goes.@@ -86,9 +86,9 @@ describe("listView", () => {// The core's decision, and the TypeScript stand-in without it, agree.const cases: [ListStatus, number, { empty: boolean; reachingLine: string | null }][] = [[{ loaded: false, incomplete: false, reaching: 0, stale: false }, 0, { empty: false, reachingLine: "Loading Spaces…" }],- [{ loaded: true, incomplete: true, reaching: 6, stale: false }, 0, { empty: false, reachingLine: "Reaching 6 computers…" }],- [{ loaded: true, incomplete: true, reaching: 1, stale: false }, 2, { empty: false, reachingLine: "Reaching 1 computer…" }],- [{ loaded: true, incomplete: true, reaching: 0, stale: false }, 0, { empty: false, reachingLine: "Reaching your computers…" }],+ [{ loaded: true, incomplete: true, reaching: 6, stale: false }, 0, { empty: false, reachingLine: "Reaching 6 machines…" }],+ [{ loaded: true, incomplete: true, reaching: 1, stale: false }, 2, { empty: false, reachingLine: "Reaching 1 machine…" }],+ [{ loaded: true, incomplete: true, reaching: 0, stale: false }, 0, { empty: false, reachingLine: "Reaching your machines…" }],[{ loaded: true, incomplete: false, reaching: 0, stale: false }, 0, { empty: true, reachingLine: null }],[{ loaded: true, incomplete: false, reaching: 0, stale: false }, 3, { empty: false, reachingLine: null }],];diff --git a/apps/cua-spaces-web/src/lib/ask-first.ts b/apps/cua-spaces-web/src/lib/ask-first.tsindex dba8097e03..c7cb29cb37 100644--- a/apps/cua-spaces-web/src/lib/ask-first.ts+++ b/apps/cua-spaces-web/src/lib/ask-first.ts@@ -18,7 +18,7 @@ import type { AgentRunStatus, HostStatus, Space, SpaceOs, TranscriptItem } fromimport type { DataAdapter } from "@/bridge/adapter";import { threadOpAvailable } from "@/bridge/ops/thread";-import { isMachineDesktop, spaceState } from "./spaces";+import { isMachineDesktop, orderSpaces, spaceState } from "./spaces";export type TaskEnding = "kept" | "thrown";@@ -229,7 +229,7 @@ export interface NewKind {/** The Spaces you already have that a job can use: running ones, not a machine's own desktop (this Mac has its own row). */export function pickableSpaces(spaces: readonly Space[] | undefined): Space[] {- return (spaces ?? []).filter((s) => !isMachineDesktop(s) && spaceState(s) === "running");+ return orderSpaces((spaces ?? []).filter((s) => !isMachineDesktop(s) && spaceState(s) === "running"));}/** Where a job runs unless you pick: a new Linux computer on this Mac (or the first kind this Mac can make). */@@ -314,7 +314,7 @@ export function startErrorView(raw: string, agent: string): StartErrorView {if (e.includes("isn't shared"))return {title: "This Mac isn't set up for tasks yet",- body: "Turn on sharing for this Mac on the Computers page, then try again. Or pick another computer.",+ body: "Turn on sharing for this Mac on the Machines page, then try again. Or pick another machine.",action: "set-up-host",retry: true,};diff --git a/apps/cua-spaces-web/src/lib/devices.test.ts b/apps/cua-spaces-web/src/lib/devices.test.tsindex 0be1de8f8b..d3ea09a636 100644--- a/apps/cua-spaces-web/src/lib/devices.test.ts+++ b/apps/cua-spaces-web/src/lib/devices.test.ts@@ -17,7 +17,7 @@ describe("devicesPageState", () => {});describe("shellDevicesBanner", () => {- const banner = { tone: "warning" as const, text: "Enroll this device within 3 days to keep reaching your computers.", action: "enroll" as const, actionLabel: "Enroll…" };+ const banner = { tone: "warning" as const, text: "Enroll this device within 3 days to keep reaching your machines.", action: "enroll" as const, actionLabel: "Enroll…" };const read = (input: { devices?: { id: string; state: string }[]; readError?: string | null }) => ({ input, view: { banner } });it("shows the core's bar once signed in and read", () => {diff --git a/apps/cua-spaces-web/src/lib/hidden-desktops.ts b/apps/cua-spaces-web/src/lib/hidden-desktops.tsnew file mode 100644index 0000000000..71ead5a54c--- /dev/null+++ b/apps/cua-spaces-web/src/lib/hidden-desktops.ts@@ -0,0 +1,70 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++/**+ * The desktop rows a person hid from the Spaces list (Hide on a row's hover). A per-viewer+ * convenience kept in this window's storage: "Show hidden" in the list's overflow, and+ * turning a desktop's sharing on, bring them back.+ */++import { useSyncExternalStore } from "react";++const KEY = "cua.hiddenDesktops";+const listeners = new Set<() => void>();+let cache: ReadonlySet<string> | null = null;++function read(): ReadonlySet<string> {+ if (cache) return cache;+ let ids: string[] = [];+ try {+ const raw = globalThis.localStorage?.getItem(KEY);+ const parsed: unknown = raw ? JSON.parse(raw) : [];+ if (Array.isArray(parsed)) ids = parsed.filter((x): x is string => typeof x === "string");+ } catch {+ // No storage, or not ours: nothing hidden.+ }+ cache = new Set(ids);+ return cache;+}++function write(next: Set<string>): void {+ cache = next;+ try {+ globalThis.localStorage?.setItem(KEY, JSON.stringify([...next]));+ } catch {+ // Not kept past this window.+ }+ for (const l of [...listeners]) l();+}++/** Hides a desktop row. */+export const hideDesktop = (id: string): void => write(new Set([...read(), id]));++/** Shows one hidden desktop row again. */+export function showDesktop(id: string): void {+ if (!read().has(id)) return;+ const next = new Set(read());+ next.delete(id);+ write(next);+}++/** Shows every hidden desktop row again. */+export function showHiddenDesktops(): void {+ if (read().size) write(new Set());+}++/** Forgets what was kept (tests). */+export function resetHiddenDesktops(): void {+ cache = null;+ for (const l of [...listeners]) l();+}++const subscribe = (l: () => void) => {+ listeners.add(l);+ return () => listeners.delete(l);+};++/** The hidden desktop rows' ids; a new set whenever it changes. */+export function useHiddenDesktops(): ReadonlySet<string> {+ return useSyncExternalStore(subscribe, read, read);+}diff --git a/apps/cua-spaces-web/src/lib/host-labels.test.ts b/apps/cua-spaces-web/src/lib/host-labels.test.tsindex e391454282..f3d9306383 100644--- a/apps/cua-spaces-web/src/lib/host-labels.test.ts+++ b/apps/cua-spaces-web/src/lib/host-labels.test.ts@@ -11,8 +11,8 @@ describe("host labels", () => {expect(thisComputerLabel("darwin")).toBe("This Mac");expect(thisComputerLabel("Win32")).toBe("This PC");expect(thisComputerLabel("win32")).toBe("This PC");- expect(thisComputerLabel("Linux x86_64")).toBe("This computer");- expect(thisComputerLabel("linux")).toBe("This computer");+ expect(thisComputerLabel("Linux x86_64")).toBe("This machine");+ expect(thisComputerLabel("linux")).toBe("This machine");expect(thisComputerText("MacIntel")).toBe("this Mac");expect(thisComputerText("Win32")).toBe("this PC");});@@ -35,7 +35,7 @@ describe("host labels", () => {it("names this computer in a Space being created here", () => {const line = "This Mac \u00b7 Downloading image\u2026";expect(creatingLine(line, "darwin")).toBe(line);- expect(creatingLine(line, "linux")).toBe("This computer \u00b7 Downloading image\u2026");+ expect(creatingLine(line, "linux")).toBe("This machine \u00b7 Downloading image\u2026");expect(creatingLine(line, "win32")).toBe("This PC \u00b7 Downloading image\u2026");// Elsewhere, or a failure in the core's own words: as it is.expect(creatingLine("Studio \u00b7 Starting\u2026", "linux")).toBe("Studio \u00b7 Starting\u2026");@@ -45,7 +45,7 @@ describe("host labels", () => {it("names this computer in what leaves it on teleport", () => {expect(leavesLine("191 KB leaves this Mac", "darwin")).toBe("191 KB leaves this Mac");expect(leavesLine("191 KB leaves this Mac", "win32")).toBe("191 KB leaves this PC");- expect(leavesLine("191 KB leaves this Mac", "linux")).toBe("191 KB leaves this computer");+ expect(leavesLine("191 KB leaves this Mac", "linux")).toBe("191 KB leaves this machine");expect(leavesLine("3 saved items from the Keyvault", "win32")).toBe("3 saved items from the Keyvault");});diff --git a/apps/cua-spaces-web/src/lib/machines.test.ts b/apps/cua-spaces-web/src/lib/machines.test.tsindex 9a5645a057..541dcfa65d 100644--- a/apps/cua-spaces-web/src/lib/machines.test.ts+++ b/apps/cua-spaces-web/src/lib/machines.test.ts@@ -22,9 +22,9 @@ const machine = (over: Partial<Machine>): Machine => ({});describe("machines", () => {- it("counts computers in the Computers header in the singular too", () => {- expect(machinesSummary(1, 1)).toBe("1 computer, 1 online");- expect(machinesSummary(3, 2)).toBe("3 computers, 2 online");+ it("counts machines in the Machines header in the singular too", () => {+ expect(machinesSummary(1, 1)).toBe("1 machine, 1 online");+ expect(machinesSummary(3, 2)).toBe("3 machines, 2 online");});it("reads the OS the host reported", () => {@@ -80,7 +80,7 @@ describe("machines", () => {it("counts a shared desktop in the words (machines::desktop_spaces_label)", () => {expect(spacesLabel(machine({}), 0, true)).toBe("Desktop shared");- expect(spacesLabel(machine({}), 2, true)).toBe("Desktop · 2 Spaces");+ expect(spacesLabel(machine({}), 2, true)).toBe("Desktop and 2 Spaces");// A label the core sent still wins.expect(spacesLabel(machine({ spacesLabel: "No Spaces" }), 0, true)).toBe("No Spaces");expect(spacesLabel(machine({ device: true, spacesLabel: "" }), 0, true)).toBe("");diff --git a/apps/cua-spaces-web/src/lib/machines.ts b/apps/cua-spaces-web/src/lib/machines.tsindex 668b642e71..8224a3540a 100644--- a/apps/cua-spaces-web/src/lib/machines.ts+++ b/apps/cua-spaces-web/src/lib/machines.ts@@ -74,7 +74,7 @@ export function spaceCount(n: number): string {/** The row's Spaces count: the core's (`machines::spaces_label`, the same* the SwiftUI Machines list shows), else `n` counted here. Empty for a* device of its own (it runs no Spaces). `desktop`: the machine shares its- * own desktop ("Desktop shared", "Desktop · 2 Spaces"). */+ * own desktop ("Desktop shared", "Desktop and 2 Spaces"). */export function spacesLabel(m: Pick<Machine, "spacesLabel">, n: number, desktop = false): string {return m.spacesLabel ?? machineSpacesLabel(desktop, n);}@@ -86,5 +86,5 @@ export function selectedMachine<T extends Pick<Machine, "id">>(machines: readonl/** The Machines header: "1 machine, 1 online", "3 machines, 2 online". */export function machinesSummary(total: number, online: number): string {- return `${plural(total, "computer")}, ${online} online`;+ return `${plural(total, "machine")}, ${online} online`;}diff --git a/apps/cua-spaces-web/src/lib/settings-copy.test.ts b/apps/cua-spaces-web/src/lib/settings-copy.test.tsindex b2990084df..b7108ff431 100644--- a/apps/cua-spaces-web/src/lib/settings-copy.test.ts+++ b/apps/cua-spaces-web/src/lib/settings-copy.test.ts@@ -7,24 +7,24 @@ import { plainDevice, plainDeviceSentence, plainKeysIntro } from "./settings-copdescribe("plainDevice", () => {it.each([- ["Enroll…", "Trust this computer"],+ ["Enroll…", "Trust this machine"],["Enrolled until Nov 18, 2026", "Trusted until Nov 18, 2026"],["Re-verification due", "Needs a quick check"],["macOS · Enrolled · re-verify in 24 days", "macOS · Trusted · check again in 24 days"],["Revoke…", "Remove"],- ["This Device", "This computer"],- ["Your Devices", "Your computers"],+ ["This Device", "This machine"],+ ["Your Devices", "Your machines"],["Recent Access", "Recent activity"],- ["New Computers", "Computers waiting for you"],+ ["New Computers", "Machines waiting for you"],["Rename", "Rename"],])("%s as %s", (from, to) => expect(plainDevice(from)).toBe(to));});describe("plainDeviceSentence", () => {it("rewrites a banner and a dialog", () => {- expect(plainDeviceSentence("Enroll this device to reach your computers.")).toBe("Trust this computer to reach your computers.");- expect(plainDeviceSentence("This device will no longer list or reach your computers until you enroll it again.")).toBe(- "This computer will no longer list or reach your computers until you trust it again.",+ expect(plainDeviceSentence("Enroll this device to reach your machines.")).toBe("Trust this machine to reach your machines.");+ expect(plainDeviceSentence("This device will no longer list or reach your machines until you enroll it again.")).toBe(+ "This machine will no longer list or reach your machines until you trust it again.",);expect(plainDeviceSentence("An unenrolled device opened mac-mini")).toBe("An untrusted device opened mac-mini");});diff --git a/apps/cua-spaces-web/src/lib/settings-copy.ts b/apps/cua-spaces-web/src/lib/settings-copy.tsindex 1363f18185..9cae4a4d3a 100644--- a/apps/cua-spaces-web/src/lib/settings-copy.ts+++ b/apps/cua-spaces-web/src/lib/settings-copy.ts@@ -8,9 +8,9 @@*/const DEVICE_WORDS: readonly [RegExp, string][] = [- [/^Enroll…?$/, "Trust this computer"],- [/^Enroll This Mac…?$/, "Trust this computer"],- [/^Re-verify This Mac…?$/, "Trust this computer"],+ [/^Enroll…?$/, "Trust this machine"],+ [/^Enroll This Mac…?$/, "Trust this machine"],+ [/^Re-verify This Mac…?$/, "Trust this machine"],[/^Enrolled until\b/, "Trusted until"],[/^Enrolled$/, "Trusted"],[/^Needs enrollment\b/, "Not trusted yet"],@@ -21,11 +21,11 @@ const DEVICE_WORDS: readonly [RegExp, string][] = [[/\bEnrolled\b/, "Trusted"],[/^Revoke…?$/, "Remove"],[/^Revoke$/, "Remove"],- [/^This Device$/, "This computer"],- [/^Your Devices$/, "Your computers"],+ [/^This Device$/, "This machine"],+ [/^Your Devices$/, "Your machines"],[/^Recent Access$/, "Recent activity"],[/^No access yet$/, "No activity yet"],- [/^New Computers$/, "Computers waiting for you"],+ [/^New Computers$/, "Machines waiting for you"],];/** One Devices label or detail line in plain words; anything it does not know stays as it is. */@@ -45,9 +45,9 @@ const SENTENCE_WORDS: readonly [RegExp, string][] = [[/\bRevoke\b/g, "Remove"],[/\brevoke\b/g, "remove"],[/\brevoked\b/g, "removed"],- [/\bThis Device\b/g, "This computer"],- [/\bThis device\b/g, "This computer"],- [/\bthis device\b/g, "this computer"],+ [/\bThis Device\b/g, "This machine"],+ [/\bThis device\b/g, "This machine"],+ [/\bthis device\b/g, "this machine"],];/** A whole sentence (a banner, a dialog, an activity line) in plain words. */@@ -68,7 +68,7 @@ export const KEYS_OTHER_HELP = "Use the name its app expects, like GEMINI_API_KE/** Launch at login, General. */export const LAUNCH_LABEL = "Start Cua Spaces when you sign in";-export const LAUNCH_HELP = "Keeps your computers reachable after a restart.";+export const LAUNCH_HELP = "Keeps your machines reachable after a restart.";/** The core's "Last check: 2 minutes ago" as "Last checked 2 minutes ago" (About). */export const lastChecked = (line: string) => line.replace(/^Last check:\s*/, "Last checked ");diff --git a/apps/cua-spaces-web/src/lib/settings-tabs.ts b/apps/cua-spaces-web/src/lib/settings-tabs.tsindex f08571e3e0..40cb836473 100644--- a/apps/cua-spaces-web/src/lib/settings-tabs.ts+++ b/apps/cua-spaces-web/src/lib/settings-tabs.ts@@ -6,7 +6,7 @@ export const SETTINGS_TABS = [{ to: "/settings", label: "Account", exact: true },{ to: "/settings/general", label: "General", exact: false },{ to: "/settings/connectors", label: "Connectors", exact: false },- { to: "/settings/devices", label: "Trusted devices", exact: false },+ { to: "/settings/devices", label: "Trusted machines", exact: false },{ to: "/settings/advanced", label: "Advanced", exact: false },{ to: "/settings/about", label: "About", exact: false },] as const;diff --git a/apps/cua-spaces-web/src/lib/spaces-page.ts b/apps/cua-spaces-web/src/lib/spaces-page.tsindex 1683e83b53..11b2c3a47c 100644--- a/apps/cua-spaces-web/src/lib/spaces-page.ts+++ b/apps/cua-spaces-web/src/lib/spaces-page.ts@@ -10,7 +10,7 @@import type { Machine, Space } from "@/bridge";import { thisComputerLabel } from "@/lib/host-labels";import { size } from "@/lib/resources";-import { spaceState, type SpaceFilter, type SpaceState } from "@/lib/spaces";+import { orderSpaces, spaceState, type SpaceFilter } from "@/lib/spaces";export type SpacesView = "grid" | "list";export type SpacesSort = "used" | "name" | "size";@@ -69,7 +69,6 @@ export function computerChoices(machines: readonly Machine[]): { value: string;return [...here, ...real.filter((m) => !m.current)].map((m) => ({ value: m.id, label: m.current ? thisComputerLabel() : m.name }));}-const ORDER: Record<SpaceState, number> = { failed: 0, creating: 0, running: 1, stopped: 2, deleting: 3 };export interface ShownInput {spaces: readonly Space[];@@ -85,9 +84,8 @@ export interface ShownInput {}/**- * The Spaces the page shows, in order. Last used: in the grid, being- * created first, then running, then the rest, most recent first in each- * (as before); in the list strictly by the column. Name: A to Z. Size:+ * The Spaces the page shows, in order. Last used: running first, then+ * being created, then the rest, most recent first in each. Name: A to Z. Size:* biggest first, the ones without a known size last.*/export function shownSpaces({ spaces, search, mine, machineOf, bytes, matches }: ShownInput): Space[] {@@ -103,8 +101,8 @@ export function shownSpaces({ spaces, search, mine, machineOf, bytes, matches }:const byName = (a: Space, b: Space) => a.name.localeCompare(b.name);if (search.sort === "name") return kept.toSorted((a, b) => byName(a, b) || byUsed(a, b));if (search.sort === "size") return kept.toSorted((a, b) => (bytes(b) ?? -1) - (bytes(a) ?? -1) || byName(a, b));- if (search.view === "list") return kept.toSorted(byUsed);- return kept.toSorted((a, b) => ORDER[spaceState(a)] - ORDER[spaceState(b)] || byUsed(a, b));+ // Last used: running first, then the most recently used, in the grid and the list alike.+ return orderSpaces(kept);}/** The list's Size column: yours with a known size, else "—". */diff --git a/apps/cua-spaces-web/src/lib/spaces.test.ts b/apps/cua-spaces-web/src/lib/spaces.test.tsindex c81ccbfe25..38a05fba06 100644--- a/apps/cua-spaces-web/src/lib/spaces.test.ts+++ b/apps/cua-spaces-web/src/lib/spaces.test.ts@@ -4,7 +4,7 @@import { describe, expect, it } from "vitest";import type { Machine, Space } from "@/bridge";-import { busyMacosSpaces, canDelete, canPower, createError, powerButton, isMachineDesktop, machineName, macosLimitText, osLabel, powerPending, realSpaces, spacePlace, spaceState, visibleSpaces } from "./spaces";+import { busyMacosSpaces, canDelete, canPower, countedSpaces, createError, isUnsharedDesktop, listedSpaces, machineName, macosLimitText, orderSpaces, osLabel, powerButton, powerPending, realSpaces, spacePlace, spaceState, visibleSpaces, isMachineDesktop } from "./spaces";const space = (id: string, status: Space["status"], lastUsedAt: number, extra: Partial<Space> = {}): Space => ({id,@@ -40,11 +40,11 @@ describe("a failed create", () => {const progress = (error?: string) => ({ phase: "booting", permille: 900, label: "Failed", error, cancellable: false, cancelling: false });const failed = space("pending:m", "suspended", 3, { os: "macos", provider: "local", progress: progress("Apple allows two macOS VMs at once.") });- it("reads Failed with its reason, first in the list, and is removed rather than deleted", () => {+ it("reads Failed with its reason, after the running Spaces, and is removed rather than deleted", () => {expect(spaceState(failed)).toBe("failed");expect(createError(failed)).toBe("Apple allows two macOS VMs at once.");expect(canDelete(failed)).toBe(false);- expect(visibleSpaces([...SPACES, failed], "all")[0]!.id).toBe("pending:m");+ expect(visibleSpaces([...SPACES, failed], "all").map((s) => s.id)).toEqual(["on-new", "on-old", "new", "pending:m", "powered-off", "off"]);expect(visibleSpaces([...SPACES, failed], "stopped").map((s) => s.id)).not.toContain("pending:m");// A stopped Space has no create error.expect(createError(SPACES[0]!)).toBeNull();@@ -75,8 +75,8 @@ describe("macosLimitText", () => {});describe("visibleSpaces", () => {- it("orders creating, then running, then stopped, most recent first", () => {- expect(visibleSpaces(SPACES, "all").map((s) => s.id)).toEqual(["new", "on-new", "on-old", "powered-off", "off"]);+ it("orders running, then creating, then stopped, most recent first", () => {+ expect(visibleSpaces(SPACES, "all").map((s) => s.id)).toEqual(["on-new", "on-old", "new", "powered-off", "off"]);});it("filters by state", () => {@@ -161,3 +161,66 @@ describe("powerButton", () => {expect(powerButton(noCore, { ...on, progress: { phase: "pulling", permille: 100, label: "Downloading" } })).toBeNull();});});++describe("the Spaces list's desktop rows", () => {+ const real = (id: string, lastUsedAt = 1) => space(id, "running", lastUsedAt, { provider: "local", id });+ /** This Mac's desktop: running (reachable) while it is shared, suspended while it is not. */+ const thisMac = (shared: boolean) => space("this-mac", shared ? "running" : "suspended", 1, { provider: "local" });+ const theirs = (machine: string) => space(`relay:${machine}`, "running", 1, { provider: "relay" });+ const ids = (list: readonly Space[]) => list.map((s) => s.id);++ it("tells This Mac's shared desktop from its unshared one", () => {+ expect(isUnsharedDesktop(thisMac(false))).toBe(true);+ expect(isUnsharedDesktop(thisMac(true))).toBe(false);+ expect(isUnsharedDesktop(real("a"))).toBe(false);+ expect(isMachineDesktop(thisMac(false))).toBe(true);+ });++ it("zero Spaces and not sharing: nothing listed, so the empty state shows", () => {+ expect(listedSpaces([thisMac(false)])).toEqual([]);+ });++ it("zero Spaces and sharing: the list holds the desktop row, and it counts", () => {+ const listed = listedSpaces([thisMac(true)]);+ expect(ids(listed)).toEqual(["this-mac"]);+ expect(countedSpaces(listed)).toHaveLength(1);+ });++ it("one Space and not sharing: both rows, but the unshared desktop is never counted", () => {+ const listed = listedSpaces([thisMac(false), real("a")]);+ expect(ids(listed)).toEqual(["a", "this-mac"]);+ expect(ids(countedSpaces(listed))).toEqual(["a"]);+ });++ it("Hide leaves a desktop out, and showing it again brings it back", () => {+ const all = [thisMac(true), real("a")];+ expect(ids(listedSpaces(all, new Set(["this-mac"])))).toEqual(["a"]);+ expect(ids(listedSpaces(all, new Set()))).toEqual(["a", "this-mac"]);+ // Hidden, an unshared desktop stays out too.+ expect(ids(listedSpaces([thisMac(false), real("a")], new Set(["this-mac"])))).toEqual(["a"]);+ });++ it("another machine's desktop shows only while it shares it", () => {+ const all = [real("a"), theirs("studio"), theirs("spare")];+ const shares = (s: Space) => s.id !== "relay:spare";+ expect(ids(listedSpaces(all, new Set(), shares))).toEqual(["a", "relay:studio"]);+ });+});++describe("orderSpaces: running first, then the most recently used", () => {+ it("puts a running Space before newer stopped ones", () => {+ const all = [+ space("stopped-new", "suspended", 90),+ space("stopped-newer", "suspended", 95),+ space("running-old", "running", 10),+ space("running-newest", "running", 80),+ space("being-made", "provisioning", 99),+ ];+ expect(orderSpaces(all).map((s) => s.id)).toEqual(["running-newest", "running-old", "being-made", "stopped-newer", "stopped-new"]);+ });++ it("lists a desktop after the Spaces in its state, and This Mac's unshared desktop last", () => {+ const all = [space("this-mac", "suspended", 999, { provider: "local" }), space("relay:studio", "running", 999, { provider: "relay" }), space("a", "running", 1), space("b", "suspended", 2)];+ expect(orderSpaces(all).map((s) => s.id)).toEqual(["a", "relay:studio", "b", "this-mac"]);+ });+});diff --git a/apps/cua-spaces-web/src/lib/spaces.ts b/apps/cua-spaces-web/src/lib/spaces.tsindex 23847d21b8..588ffe2031 100644--- a/apps/cua-spaces-web/src/lib/spaces.ts+++ b/apps/cua-spaces-web/src/lib/spaces.ts@@ -50,9 +50,47 @@ export function realSpaces<T extends Pick<Space, "id" | "status" | "provider" |return spaces.filter((s) => !isMachineDesktop(s));}+/** This Mac's own desktop (`this-mac`): a row of the Spaces list that reads "Not sharing" while its switch is off. */+export const isThisMacDesktop = (space: Pick<Space, "id">): boolean => space.id === "this-mac";++/**+ * This Mac's desktop while it is not shared: the host lists it `local` (the list rows read it as running)+ * only while the desktop is shared, and suspended otherwise.+ */+export const isUnsharedDesktop = (space: Pick<Space, "id" | "status">): boolean => space.id === "this-mac" && space.status !== "local" && space.status !== "running";++/**+ * The rows of the Spaces list: your Spaces and the machines' desktops that are shared. This Mac's desktop+ * shows even while it is not shared ("Not sharing"), but only once something else is listed, so a person+ * with no Space still sees the empty state. `hidden` (Hide on a row) leaves a desktop out; another+ * machine's desktop shows only while it shares it (`shares`).+ */+export function listedSpaces<T extends Pick<Space, "id" | "status" | "provider" | "host">>(+ all: readonly T[],+ hidden: ReadonlySet<string> = new Set(),+ shares: (space: T) => boolean = () => true,+): T[] {+ const real = realSpaces(all);+ const shared = all.filter((s) => isMachineDesktop(s) && !isUnsharedDesktop(s) && !hidden.has(s.id) && (isThisMacDesktop(s) || shares(s)));+ const base = [...real, ...shared];+ const own = all.find((s) => isUnsharedDesktop(s) && !hidden.has(s.id));+ return own && base.length > 0 ? [...base, own] : base;+}++/** The listed rows that count as Spaces ("N Spaces", "N running", the sidebar): never this Mac's unshared desktop. */+export const countedSpaces = <T extends Pick<Space, "id" | "status">>(listed: readonly T[]): T[] => listed.filter((s) => !isUnsharedDesktop(s));++/** Running Spaces first, then the most recently used (Home, the Spaces page, the switcher and ⌘K). */+export function orderSpaces<T extends Pick<Space, "id" | "status" | "power" | "lastUsedAt" | "provider" | "host"> & { progress?: Space["progress"] }>(spaces: readonly T[]): T[] {+ // A machine's desktop follows the Spaces in its state (its "last used" is always now), and This Mac's unshared one is last.+ const rank = (s: T) => (isUnsharedDesktop(s) ? 9 : ORDER[spaceState(s)] + (isMachineDesktop(s) ? 0.5 : 0));+ return spaces.toSorted((a, b) => rank(a) - rank(b) || b.lastUsedAt - a.lastUsedAt);+}+export type SpaceFilter = "all" | "running" | "stopped" | "creating";-const ORDER: Record<SpaceState, number> = { failed: 0, creating: 0, running: 1, stopped: 2, deleting: 3 };+/** Running first, then the Space being created, then the rest (each by most recent use). */+const ORDER: Record<SpaceState, number> = { running: 0, creating: 1, failed: 2, stopped: 3, deleting: 4 };/*** Whether the filter box's `query` keeps `space`: the core's rulediff --git a/apps/cua-spaces-web/src/routes/machines/index.tsx b/apps/cua-spaces-web/src/routes/machines/index.tsxindex e70e6af0b5..ccc132d411 100644--- a/apps/cua-spaces-web/src/routes/machines/index.tsx+++ b/apps/cua-spaces-web/src/routes/machines/index.tsx@@ -35,6 +35,7 @@ import { Input } from "@/components/ui/input";import { Switch } from "@/components/ui/switch";import { toast } from "@/components/ui/toast";import { useNewSpace } from "@/hooks/use-new-space";+import { showDesktop } from "@/lib/hidden-desktops";import { machineOs, selectedMachine } from "@/lib/machines";import { cn } from "@/lib/utils";import { useFlag } from "@/bridge/flags";@@ -98,16 +99,16 @@ function MachinesPage() {return (<Page contained className="max-w-6xl"><PageHeader- title="Computers"- description={isLoading ? "Loading computers…" : view?.machines.length ? view.summary : "Computers that can run your Spaces."}+ title="Machines"+ description={isLoading ? "Loading machines…" : view?.machines.length ? view.summary : "Machines that can run your Spaces."}actions={<Button onClick={() => setAdding(true)} data-machines-add>- <PlusIcon /> Add a computer+ <PlusIcon /> Add a machine</Button>}/>{error ? (- <EmptyState icon={<ServerIcon />} title="Couldn't load computers">+ <EmptyState icon={<ServerIcon />} title="Couldn't load machines">{error.message}</EmptyState>) : isLoading || (!view && machines.length > 0) ? (@@ -115,14 +116,14 @@ function MachinesPage() {) : !view || view.machines.length === 0 ? (<EmptyStateicon={<ServerIcon />}- title="No computers yet"+ title="No machines yet"action={<Button onClick={() => setAdding(true)}>- <PlusIcon /> Add a computer+ <PlusIcon /> Add a machine</Button>}>- Set up a Mac, Linux or Windows computer and it shows here, ready to run Spaces.+ Set up a Mac, Linux or Windows machine and it shows here, ready to run Spaces.</EmptyState>) : (<div className="grid min-h-0 flex-1 grid-cols-[minmax(0,320px)_minmax(0,1fr)] grid-rows-[minmax(0,1fr)] gap-8" data-machines-split="">@@ -235,7 +236,7 @@ function MachineList({className="min-w-0 flex-1 bg-transparent text-[13px] text-foreground outline-none placeholder:text-muted-foreground/70"/></label>- <div role="listbox" aria-label="Computers">+ <div role="listbox" aria-label="Machines">{(view.order ?? ["clouds", ...view.groups.map((g) => g.id)]).map((section) => {if (section === "clouds") return cloudsSection;const g = view.groups.find((x) => x.id === section);@@ -434,6 +435,8 @@ function MachineDetail({ machine: m, row, onRemoved }: { machine: MachinesViewMavoid (async () => {try {for (const a of t.actions) await host.run(a);+ // Turning this Mac's desktop on shows its row in the Spaces list again, if it was hidden.+ if (m.current && t.id === "desktop" && !t.on) showDesktop("this-mac");} catch (e) {fail(`Couldn't change ${t.label}`)(e);} finally {@@ -480,7 +483,7 @@ function MachineDetail({ machine: m, row, onRemoved }: { machine: MachinesViewMa) : null}</div><p className="mt-1 flex items-center gap-1.5 text-[13px] text-muted-foreground" data-machine-status>- <StatusDot online={m.online} className="size-[7px]" />+ <StatusDot online={m.online} health={m.health} className="size-[7px]" />{m.status}{m.sharedBy ? <span className="ml-2">{m.sharedBy}</span> : null}</p>@@ -719,7 +722,7 @@ function RenameDialog({ open, machine: m, onClose }: { open: boolean; machine: Mfunction LoadingState() {return (- <div aria-busy="true" aria-label="Loading computers" className="grid grid-cols-[minmax(0,320px)_minmax(0,1fr)] items-start gap-8">+ <div aria-busy="true" aria-label="Loading machines" className="grid grid-cols-[minmax(0,320px)_minmax(0,1fr)] items-start gap-8"><div className="space-y-1"><div className="mb-3 h-[30px] animate-pulse rounded-lg bg-muted" />{[0, 1, 2].map((i) => (diff --git a/apps/cua-spaces-web/src/routes/settings/devices.tsx b/apps/cua-spaces-web/src/routes/settings/devices.tsxindex f760b2971f..e87b8dae90 100644--- a/apps/cua-spaces-web/src/routes/settings/devices.tsx+++ b/apps/cua-spaces-web/src/routes/settings/devices.tsx@@ -21,10 +21,10 @@ import { cn } from "@/lib/utils";export const Route = createFileRoute("/settings/devices")({ component: DevicesPage });/** `devices::labels().signed_out`, for before the core's view exists. */-const SIGNED_OUT = "Sign in to Cua to see the devices that can reach your computers.";+const SIGNED_OUT = "Sign in to Cua to see the devices that can reach your machines.";/**- * Settings, Trusted devices: this computer's trust, new machines to confirm, the+ * Settings, Trusted machines: this computer's trust, new machines to confirm, the* account's devices (Approve, Deny, Rename, Revoke) and Recent Access, then* the enroll and approval sheets. Everything shown is the app core's* `devices::devices_view`, as in the SwiftUI app's `DevicesSettingsView`.@@ -42,7 +42,7 @@ function DevicesPage() {if (state === "error" || state === "no-view") {return (<Retry onRetry={() => void devices.refresh()} data-devices-error>- {devices.error ? `Couldn't read your devices: ${devices.error.message}` : "Couldn't show your devices."}+ {devices.error ? `Couldn't read your machines: ${devices.error.message}` : "Couldn't show your machines."}</Retry>);}diff --git a/apps/cua-spaces-web/src/routes/spaces/$spaceId.tsx b/apps/cua-spaces-web/src/routes/spaces/$spaceId.tsxindex facb9f6707..5f5fffdbe0 100644--- a/apps/cua-spaces-web/src/routes/spaces/$spaceId.tsx+++ b/apps/cua-spaces-web/src/routes/spaces/$spaceId.tsx@@ -18,6 +18,7 @@ import { StreamSection } from "@/components/space-detail/stream-section";import { StreamSurface } from "@/components/space-detail/stream-surface";import { SpaceHeader } from "@/components/space-detail/space-header";import { SpaceCall } from "@/components/space-thread/space-call";+import { ThisMacCall } from "@/components/space-detail/this-mac-desktop";import { StateLabel } from "@/components/state-dot";import { PageTip } from "@/components/tips";import { creatingThread } from "@/components/space-thread/queued";@@ -29,7 +30,7 @@ import { thisComputerText } from "@/lib/host-labels";import { useSpaceVolumeError } from "@/lib/space-volume";import { cn } from "@/lib/utils";import { volumeUnavailableNote } from "@/lib/volume-notes";-import { canDelete, canPower, createError, createProgress, machineName, powerLabel, powerPending, spacePlace, spaceState } from "@/lib/spaces";+import { canDelete, canPower, createError, isUnsharedDesktop, createProgress, machineName, powerLabel, powerPending, spacePlace, spaceState } from "@/lib/spaces";import { useFlag } from "@/bridge/flags";import { useSpaceLayout } from "@/components/space-thread/layout-mode";import { LegacySpacePage } from "@/legacy/routes/spaces/$spaceId";@@ -137,7 +138,7 @@ function SpaceDetailPage() {</Button>}>- {error ? error.message : "It may have been deleted, or it runs on a computer this app can't see."}+ {error ? error.message : "It may have been deleted, or it runs on a machine this app can't see."}</EmptyState></Page>);@@ -290,7 +291,13 @@ function SpaceDetailPage() {const place = (<p className="mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-[13px] text-muted-foreground"><span>{spacePlace(space, machine)}</span>- {pending ? <span className="text-xs">{pending}</span> : <StateLabel state={state} space={space} />}+ {pending ? (+ <span className="text-xs">{pending}</span>+ ) : space.id === "this-mac" ? (+ <StateLabel state={isUnsharedDesktop(space) ? "stopped" : "running"} word={isUnsharedDesktop(space) ? "Not sharing" : "Sharing"} />+ ) : (+ <StateLabel state={state} space={space} />+ )}</p>);const osMark = (@@ -419,6 +426,22 @@ function SpaceDetailPage() {const creating = space.id.startsWith("pending:") && askFirstOn && state !== "failed" && tasks.some((t) => t.pendingId === space.id);const callThread = creating ? creatingThread(space.id) : thread;const later = "Available once the Space is ready";+ // This Mac's own desktop row: a Space's page as any other, with the share prompt where the stream would be.+ if (space.id === "this-mac") {+ return (+ <>+ <ThisMacCall+ spaceName={space.name}+ shared={!isUnsharedDesktop(space)}+ identity={session?.signedIn ? (session.account.identity ?? null) : null}+ facts={detail.facts}+ more={sections}+ header={<SpaceHeader back={<BackLink inline />} os={space.os} title={detail.title} place={place} />}+ />+ {dialogs}+ </>+ );+ }if (!detail.desktopNote && callThread.status !== "unsupported" && (creating || !space.id.startsWith("pending:"))) {return (<>@@ -509,11 +532,11 @@ function SpaceDetailPage() {note={detail.desktopNote}listSpaces={Boolean(detail.newSpace)}spaces={hostedSpaces(spaces ?? [], space.id)}- // This machine's own screen: its switches live on its Computers page.+ // This machine's own screen: its switches live on its Machines page.action={detail.isHost ? (<Button variant="outline" size="sm" data-host-desktop-action="" render={<Link to="/machines" />}>- Open Computers+ Open Machines</Button>) : null}@@ -677,7 +700,7 @@ function SpaceResources({ space, spaces, snapshot, machines }: { space: Space; sif (!local && mine.powerState === "running" && !mine.usage) return null;const machine = local ? machines.find((m) => m.current) : machines.find((m) => m.id === space.host || m.spaceIds.includes(space.id));const host = hostResources(snapshot, machine);- const computer = local ? thisComputerText() : (machine?.name ?? space.hostName ?? "its computer");+ const computer = local ? thisComputerText() : (machine?.name ?? space.hostName ?? "its machine");// The Spaces on the same computer, with the numbers it sent, for how it fits.const sameComputer = (s: Space) => (local ? s.provider === "local" : s.host === space.host);const onComputer = spaces.flatMap((s) => {diff --git a/apps/cua-spaces-web/src/routes/spaces/index.tsx b/apps/cua-spaces-web/src/routes/spaces/index.tsxindex 9b3141b195..2e380d5c95 100644--- a/apps/cua-spaces-web/src/routes/spaces/index.tsx+++ b/apps/cua-spaces-web/src/routes/spaces/index.tsx@@ -10,7 +10,8 @@ import { EmptyHome } from "@/components/empty-home";import { useFirstSpaceMilestones } from "@/components/first-run-guide";import { EmptyState, Page, PageHeader } from "@/components/page";import { ComputerWarnings } from "@/components/resources/computer-resources";-import type { SpaceItem } from "@/components/spaces/model";+import { useListedSpaces } from "@/components/spaces/listed";+import { desktopOf, type SpaceItem } from "@/components/spaces/model";import { BulkConfirmDialog, useBulkRemove } from "@/components/spaces/bulk-remove";import { SpaceList } from "@/components/spaces/space-list";import { SpaceContextMenu, SpaceMoreMenu, type MenuActions } from "@/components/spaces/space-menu";@@ -28,7 +29,8 @@ import { thisComputerText } from "@/lib/host-labels";import { plural } from "@/lib/plural";import { cn } from "@/lib/utils";import { accessOf, isMine } from "@/lib/space-access";-import { creatingElsewhereLine, machineName, matchesQuery, realSpaces, spaceState } from "@/lib/spaces";+import { creatingElsewhereLine, machineName, matchesQuery, spaceState } from "@/lib/spaces";+import { hideDesktop, showHiddenDesktops } from "@/lib/hidden-desktops";import { computerChoices, gridArea, nextSearch, shownSpaces, spaceMachineId, validateSpacesSearch, type SpacesSearch } from "@/lib/spaces-page";import { useFlag } from "@/bridge/flags";import { LegacySpacesPage } from "@/legacy/routes/spaces/index";@@ -46,9 +48,9 @@ function SpacesPage() {const setSearch = (next: Partial<Record<keyof SpacesSearch, string | undefined>>) =>void navigate({ search: (prev: SpacesSearch) => nextSearch(prev, next), replace: true });const { data: all = [], isLoading, error, listNotice, listStatus, startSpace, stopSpace, creatingElsewhere } = useSpaces();- // Machines' own desktops are on Machines, not here.+ // Your Spaces and the machines' desktops: this Mac's reads "Not sharing" while its switch is off (never counted).// Stable while the list is: the tiles below redraw only when their own item changes.- const spaces = useMemo(() => realSpaces(all), [all]);+ const { listed: spaces, counted, hiddenCount } = useListedSpaces(all);const { data: machines = [] } = useMachines();const resources = useResources();const [query, setQuery] = useState("");@@ -65,7 +67,7 @@ function SpacesPage() {spaces.map((space) => {const machine = machineName(machines, space);const mine = isMine(space);- return [space.id, { space, state: spaceState(space), access: accessOf(space, machine), mine, bytes: mine ? spaceDiskBytes(resources, space.id) : null, machine }];+ return [space.id, { space, state: spaceState(space), access: accessOf(space, machine), mine, bytes: mine ? spaceDiskBytes(resources, space.id) : null, machine, desktop: desktopOf(space) }];}),),[spaces, machines, resources],@@ -98,7 +100,7 @@ function SpacesPage() {</li>));const keyvault = useSpaceAccess(spaces);- const running = spaces.filter((s) => spaceState(s) === "running").length;+ const running = counted.filter((s) => spaceState(s) === "running").length;// No Spaces yet (or the list could not be read): the SwiftUI app's empty home, as the first-run guide.// The core decides: "Create your first Space" only for a complete list with no Space. A daemon still// starting (an app update) or computers still answering show what is known and one quiet line instead.@@ -108,7 +110,7 @@ function SpacesPage() {const empty = !error && !isLoading && (listed.empty || unread) && creatingElsewhere.length === 0;const guide = empty && home && home.tiles.length > 0 ? home : null;const reachingLine = error || unread ? null : listed.reachingLine;- useFirstSpaceMilestones(spaces);+ useFirstSpaceMilestones(counted);const tipsLoaded = useTipsLoaded();// The warnings above the list and the list come from separate host reads. Draw them together once those have// answered, not one by one with the page jumping at each (CUA-1951).@@ -124,7 +126,7 @@ function SpacesPage() {const power = (list: readonly SpaceItem[], on: boolean) => {for (const it of list) void (on ? startSpace : stopSpace)(it.space.id).catch(toastError(`Couldn't turn ${on ? "on" : "off"} ${it.space.name}`));};- const actions: MenuActions = { power: (it, on) => power([it], on), remove: (it) => bulk.ask([it]) };+ const actions: MenuActions = { power: (it, on) => power([it], on), remove: (it) => bulk.ask([it]), hide: (it) => hideDesktop(it.space.id) };// The grid's tiles read the selection and the menus' actions through this,// so a tile redraws only when its own Space, pick or state changes (picking// one of 3,000 Spaces redrew all 3,000).@@ -150,7 +152,7 @@ function SpacesPage() {<Page><PageHeadertitle="Spaces"- description={isLoading || !listStatus.loaded ? "Loading Spaces…" : `${plural(spaces.length, "Space")} on ${plural(machines.length, "computer")}, ${running} running`}+ description={isLoading || !listStatus.loaded ? "Loading Spaces…" : `${plural(counted.length, "Space")} on ${plural(machines.length, "machine")}, ${running} running`}actions={<Button onClick={newSpace}><PlusIcon /> New Space@@ -161,7 +163,7 @@ function SpacesPage() {<><PageTip place="spaces" />{/* The page's tip goes here, above the warnings (the tips' own change places it). Then, in this order:- the computers' warnings, the toolbar, the grid's place. */}+ the machines' warnings, the toolbar, the grid's place. */}<ComputerWarnings snapshot={resources} machines={machines} />{/* Then the toolbar, and under it the grid's place: the Spaces, or what stands in for them. */}{picked.length || bulk.progress ? (@@ -182,6 +184,7 @@ function SpacesPage() {onView={(v) => setSearch({ view: v === "grid" ? undefined : v })}query={query}onQuery={setQuery}+ hidden={hiddenCount > 0 ? { count: hiddenCount, onShow: showHiddenDesktops } : undefined}lead={view === "list" && shown.some(stoppedDeletable) ? (<button@@ -259,6 +262,7 @@ function SpacesPage() {</SpaceContextMenu>)}more={(it) => <SpaceMoreMenu item={it} actions={actions} />}+ hide={actions.hide}/></>) : (@@ -322,7 +326,7 @@ const GridTile = memo(function GridTile({live: RefObject<GridLive>;}) {const actions = useMemo<MenuActions>(- () => ({ power: (it, on) => live.current.actions.power(it, on), remove: (it) => live.current.actions.remove(it) }),+ () => ({ power: (it, on) => live.current.actions.power(it, on), remove: (it) => live.current.actions.remove(it), hide: (it) => live.current.actions.hide?.(it) }),[live],);// The checkbox reads whether it is picked and toggles it (the latest selection).@@ -351,7 +355,8 @@ const GridTile = memo(function GridTile({className="opacity-0 group-focus-within/tile:opacity-100 group-hover/tile:opacity-100 group-data-[picking]/grid:opacity-100"/>}- more={<SpaceMoreMenu item={item} actions={actions} />}+ hide={item.desktop ? () => actions.hide?.(item) : undefined}+ more={item.desktop ? undefined : <SpaceMoreMenu item={item} actions={actions} />}/></SpaceContextMenu></li>diff --git a/apps/cua-spaces/src-tauri/tests/host_commands.rs b/apps/cua-spaces/src-tauri/tests/host_commands.rsindex e868bf60db..634aecf27d 100644--- a/apps/cua-spaces/src-tauri/tests/host_commands.rs+++ b/apps/cua-spaces/src-tauri/tests/host_commands.rs@@ -249,7 +249,8 @@ async fn cua_host_backend_runs_the_relay_flow_end_to_end() {relay_url: Some(relay.url.clone()),name: Some("Studio".into()),allow: Some(vec!["[email protected]".into()]),- // Start with Spaces off to walk the off-to-on switch below.+ // The screen is shared, with Spaces off to walk the off-to-on switch below.+ profile: Some("desktop".into()),provide_spaces: Some(false),..Default::default()})diff --git a/apps/cua-spaces/src/components/Devices.test.tsx b/apps/cua-spaces/src/components/Devices.test.tsxindex 82a8885458..7290d8252f 100644--- a/apps/cua-spaces/src/components/Devices.test.tsx+++ b/apps/cua-spaces/src/components/Devices.test.tsx@@ -257,8 +257,8 @@ describe("approval watch", () => {await waitFor(() => expect(screen.getByTestId("approving").textContent).toBe("dev_p"));const notes = bridge.calls.filter((c) => c.startsWith("notify:"));expect(notes).toEqual([- "notify:Approve “Work laptop”?:A device signed in to your Cua account and asks to reach your computers.",- "notify:Re-verify “Old laptop”?:It needs one approval to keep reaching your computers.",+ "notify:Approve “Work laptop”?:A device signed in to your Cua account and asks to reach your machines.",+ "notify:Re-verify “Old laptop”?:It needs one approval to keep reaching your machines.",]);});diff --git a/apps/cua-spaces/src/components/InstallerFlow.test.tsx b/apps/cua-spaces/src/components/InstallerFlow.test.tsxindex b58b9bcf59..9ce75e53ad 100644--- a/apps/cua-spaces/src/components/InstallerFlow.test.tsx+++ b/apps/cua-spaces/src/components/InstallerFlow.test.tsx@@ -425,7 +425,7 @@ describe("InstallerFlow", () => {click("Turn on remote access");// Signed in, no agent yet: honest, with the fix.expect(await screen.findByText("Almost done")).toBeInTheDocument();- expect(screen.getByText("Your other devices can reach it")).toBeInTheDocument();+ expect(screen.getByText("Your other machines can reach it")).toBeInTheDocument();expect(screen.getByRole("button", { name: "Connect an AI agent" })).toBeInTheDocument();expect(screen.queryByRole("button", { name: "Sign in" })).toBeNull();expect(screen.queryByText("Grant in System Settings")).toBeNull();diff --git a/apps/cua-spaces/src/components/Onboarding.test.tsx b/apps/cua-spaces/src/components/Onboarding.test.tsxindex 5806f9121f..ec505358fa 100644--- a/apps/cua-spaces/src/components/Onboarding.test.tsx+++ b/apps/cua-spaces/src/components/Onboarding.test.tsx@@ -8,27 +8,27 @@ import { createFakeHostBridge } from "../native/host";import { Onboarding } from "./Onboarding";describe("Onboarding", () => {- it("offers both choices; 'open my other computers' installs nothing", async () => {+ it("offers both choices; 'open my other machines' installs nothing", async () => {const host = createFakeHostBridge();const onDone = vi.fn();render(<Onboarding host={host} onDone={onDone} />);- expect(screen.getByText("Let my other devices reach this Mac")).toBeInTheDocument();+ expect(screen.getByText("Let my other machines reach this Mac")).toBeInTheDocument();fireEvent.click(screen.getByRole("button", { name: "Continue" }));await waitFor(() => expect(onDone).toHaveBeenCalledWith("client", undefined));expect(host.calls).toEqual(["onboarding:client"]);});- it("always shows an enabled Continue with 'open my other computers' selected, and Enter continues", async () => {+ it("always shows an enabled Continue with 'open my other machines' selected, and Enter continues", async () => {const host = createFakeHostBridge();const onDone = vi.fn();render(<Onboarding host={host} onDone={onDone} />);expect(screen.getByRole("button", { name: "Continue" })).toBeEnabled();- expect(screen.getByRole("radio", { name: "Just use this Mac to open my other computers" })).toHaveAttribute("aria-checked", "true");+ expect(screen.getByRole("radio", { name: "Just use this Mac to open my other machines" })).toHaveAttribute("aria-checked", "true");expect(screen.getByTestId("mode-later")).toHaveTextContent("This computer");// Choosing a card only selects it.- fireEvent.click(screen.getByRole("radio", { name: "Let my other devices reach this Mac" }));+ fireEvent.click(screen.getByRole("radio", { name: "Let my other machines reach this Mac" }));expect(onDone).not.toHaveBeenCalled();- fireEvent.click(screen.getByRole("radio", { name: "Just use this Mac to open my other computers" }));+ fireEvent.click(screen.getByRole("radio", { name: "Just use this Mac to open my other machines" }));fireEvent.keyDown(document.body, { key: "Enter" });await waitFor(() => expect(onDone).toHaveBeenCalledWith("client", undefined));});@@ -37,9 +37,9 @@ describe("Onboarding", () => {const host = createFakeHostBridge({ platform: "linux" });const onDone = vi.fn();render(<Onboarding host={host} onDone={onDone} identity="[email protected]" />);- fireEvent.click(screen.getByText("Let my other devices reach this Mac"));+ fireEvent.click(screen.getByText("Let my other machines reach this Mac"));fireEvent.click(screen.getByRole("button", { name: "Continue" }));- expect(screen.getByText("You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup. Signed in as [email protected].")).toBeInTheDocument();+ expect(screen.getByText("You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup. Signed in as [email protected].")).toBeInTheDocument();// Direct ip:port is hidden until Advanced is opened.expect(screen.queryByText(/Direct connection/)).toBeNull();fireEvent.click(screen.getByRole("button", { name: "Turn on remote access" }));@@ -51,7 +51,7 @@ describe("Onboarding", () => {const host = createFakeHostBridge({ platform: "linux" });const onDone = vi.fn();render(<Onboarding host={host} onDone={onDone} />);- fireEvent.click(screen.getByText("Let my other devices reach this Mac"));+ fireEvent.click(screen.getByText("Let my other machines reach this Mac"));fireEvent.click(screen.getByRole("button", { name: "Continue" }));fireEvent.click(screen.getByRole("button", { name: "Advanced" }));fireEvent.click(screen.getByLabelText(/Direct connection/));diff --git a/apps/cua-spaces/src/components/SettingsPanel.test.tsx b/apps/cua-spaces/src/components/SettingsPanel.test.tsxindex e6ada5d96f..43340fb1a3 100644--- a/apps/cua-spaces/src/components/SettingsPanel.test.tsx+++ b/apps/cua-spaces/src/components/SettingsPanel.test.tsx@@ -702,7 +702,7 @@ describe("SettingsPanel launch at login", () => {const { fakeLoginItemBridge } = await import("../native/loginItem");renderPanel({ loginItem: fakeLoginItemBridge("notRegistered"), serves: { providesSpaces: true, runsAgents: false } });expect(- await screen.findByText("This computer provides Spaces, which stop after a restart until you open Cua Spaces."),+ await screen.findByText("This machine provides Spaces, which stop after a restart until you open Cua Spaces."),).toBeInTheDocument();});diff --git a/apps/cua-spaces/src/components/ThisMachinePanel.test.tsx b/apps/cua-spaces/src/components/ThisMachinePanel.test.tsxindex 14f29f94cb..8e059f91b1 100644--- a/apps/cua-spaces/src/components/ThisMachinePanel.test.tsx+++ b/apps/cua-spaces/src/components/ThisMachinePanel.test.tsx@@ -49,7 +49,7 @@ describe("host model", () => {it("builds the This machine entry, first in the roster, and the setup form", () => {const space = thisMachineSpace(null, 5, "linux");- expect(space).toMatchObject({ id: "this-mac", name: "This computer", status: "suspended", detail: "Set up for access" });+ expect(space).toMatchObject({ id: "this-mac", name: "This machine", status: "suspended", detail: "Set up for access" });expect(withThisMachine([], sharing, 5, "macos").map((s) => s.detail)).toEqual(["Sharing · 1 connected"]);expect(clientLabel({ id: "u", email: "e@x" })).toBe("e@x");let form = hostFormInitial();@@ -86,7 +86,7 @@ describe("host model", () => {FIXTURE_NOW,);expect(space.provider).toBe("relay");- expect(space.detail).toBe("My computers · via relay");+ expect(space.detail).toBe("My machines");});});@@ -156,20 +156,20 @@ describe("ThisMachinePanel: a spare machine", () => {const host = createFakeHostBridge({ platform: "macos" });render(<ThisMachinePanel host={host} />);fireEvent.click(await screen.findByRole("button", { name: "Turn on remote access" }));- fireEvent.click(screen.getByRole("radio", { name: "Run Spaces here and keep its screen private" }));+ fireEvent.click(screen.getByRole("radio", { name: "Let other machines create Spaces here" }));expect(screen.getByText(/Its own screen stays private/)).toBeInTheDocument();fireEvent.click(screen.getByRole("button", { name: "Start running Spaces" }));- const desktop = await screen.findByRole("switch", { name: /Share this desktop/ });+ const desktop = await screen.findByRole("switch", { name: /Let other machines control this desktop/ });expect(desktop).not.toBeChecked();- expect(screen.getByRole("switch", { name: /Provide Spaces/ })).toBeChecked();+ expect(screen.getByRole("switch", { name: /Let other machines create Spaces here/ })).toBeChecked();// Both may be off (sharing then stops), so the only one on can go off.- expect(screen.getByRole("switch", { name: /Provide Spaces/ })).not.toBeDisabled();+ expect(screen.getByRole("switch", { name: /Let other machines create Spaces here/ })).not.toBeDisabled();expect(screen.getByText(/Up to 4 Spaces · 2 macOS VMs$/)).toBeInTheDocument();expect(screen.getByText("None yet")).toBeInTheDocument();// No desktop, so no screen permissions to grant.expect(screen.queryByText("Screen Recording")).toBeNull();fireEvent.click(desktop);- await waitFor(() => expect(screen.getByRole("switch", { name: /Share this desktop/ })).toBeChecked());+ await waitFor(() => expect(screen.getByRole("switch", { name: /Let other machines control this desktop/ })).toBeChecked());expect(host.calls.find((c) => c.startsWith("configure:"))).toMatch(/"shareDesktop":true/);});@@ -203,7 +203,7 @@ describe("ThisMachinePanel: a spare machine", () => {onboarding: { completed: true },});render(<ThisMachinePanel host={host} />);- const provided = await screen.findByRole("generic", { name: "Spaces for your devices" });+ const provided = await screen.findByRole("generic", { name: "Spaces from your other machines" });expect(within(provided).getByText(/mac-1 · macOS · Ada/)).toBeInTheDocument();const activity = screen.getByRole("generic", { name: "Spaces activity" });expect(within(activity).getByText(/Refused space-2 · Bob · already runs 2 macOS VMs/)).toBeInTheDocument();@@ -238,10 +238,10 @@ describe("roster", () => {.getAllByRole("option").filter((el) => !el.classList.contains("tile-new")).map((el) => el.getAttribute("aria-label")?.split(",")[0]);- expect([...names].sort()).toEqual(["This computer", "office-pc"]);+ expect([...names].sort()).toEqual(["This Mac", "office-pc"]);});// This machine's page opens in the main window, not inside the notch.- await user.click(within(listbox).getByRole("option", { name: /This computer/ }));+ await user.click(within(listbox).getByRole("option", { name: /This Mac/ }));expect(screen.queryByRole("button", { name: "Stop sharing" })).toBeNull();});});diff --git a/apps/cua-spaces/src/components/desktop/AgentsPages.test.tsx b/apps/cua-spaces/src/components/desktop/AgentsPages.test.tsxindex 47f0d0d4a1..a1ac7cdfaf 100644--- a/apps/cua-spaces/src/components/desktop/AgentsPages.test.tsx+++ b/apps/cua-spaces/src/components/desktop/AgentsPages.test.tsx@@ -109,7 +109,7 @@ function fakeDaemon(drive: { mount?: unknown; sync?: () => unknown; mountResult?}describe('AgentsPage', () => {- it('pauses, opens memory, adds a routine and allows this computer', async () => {+ it('pauses, opens memory, adds a routine and allows this machine', async () => {const { calls, bridge } = fakeDaemon();render(<AgentsPage bridge={bridge} thisMachine="relay:0123" now={() => NOW} />);expect(await screen.findByText('Hermes in local:dev, Running')).toBeTruthy();@@ -130,9 +130,9 @@ describe('AgentsPage', () => {await waitFor(() => expect(screen.getByText('Inbox sweep')).toBeTruthy());expect(calls.some((c) => c.startsWith('routine_add') && c.includes('"daily_at":"08:00"'))).toBe(true);- fireEvent.click(screen.getByRole('tab', { name: 'Access to this computer' }));- fireEvent.click(screen.getByRole('button', { name: 'Allow on this computer' }));- await waitFor(() => expect(screen.getByText('This computer')).toBeTruthy());+ fireEvent.click(screen.getByRole('tab', { name: 'Access to this machine' }));+ fireEvent.click(screen.getByRole('button', { name: 'Allow on this machine' }));+ await waitFor(() => expect(screen.getByText('This machine')).toBeTruthy());expect(calls).toContain('computer_access_grant {"agent":"ada","machine":"relay:0123"}');});});diff --git a/apps/cua-spaces/src/components/desktop/MainWindow.test.tsx b/apps/cua-spaces/src/components/desktop/MainWindow.test.tsxindex bc5bc6ee2d..5b9ad89b44 100644--- a/apps/cua-spaces/src/components/desktop/MainWindow.test.tsx+++ b/apps/cua-spaces/src/components/desktop/MainWindow.test.tsx@@ -60,7 +60,7 @@ describe("MainWindow", () => {fireEvent.click(await screen.findByRole("button", { name: "Continue" }));// No Cua Volume page without its experiment (Settings, Experiments).expect(screen.queryByRole("heading", { name: "Cua Volume" })).toBeNull();- await screen.findByText("Just use this Mac to open my other computers");+ await screen.findByText("Just use this Mac to open my other machines");fireEvent.click(screen.getByRole("button", { name: "Continue" }));fireEvent.click(await screen.findByRole("button", { name: "Start using Cua Spaces" }));expect(await screen.findByRole("listbox", { name: "My computers" })).toBeInTheDocument();@@ -71,12 +71,14 @@ describe("MainWindow", () => {setup();const cloud = await screen.findByRole("listbox", { name: "My computers" });expect(within(cloud).getByRole("option", { name: /aurora/ })).toBeInTheDocument();- expect(within(screen.getByRole("listbox", { name: "This Mac" })).getByRole("option", { name: /cua-e2e-vm/ })).toBeInTheDocument();- expect(within(screen.getByRole("listbox", { name: "This computer" })).getByRole("option")).toBeInTheDocument();+ // The section named for this Mac holds its Spaces; the entry for This Mac is a list of its own.+ const lists = screen.getAllByRole("listbox", { name: "This Mac" });+ expect(within(lists.find((l) => within(l).queryByRole("option", { name: /cua-e2e-vm/ }))!).getByRole("option", { name: /cua-e2e-vm/ })).toBeInTheDocument();+ expect(within(lists.find((l) => !within(l).queryByRole("option", { name: /cua-e2e-vm/ }))!).getByRole("option")).toBeInTheDocument();// Each row leads with its OS mark (the notch tiles' icon); This machine is this Mac.const aurora = within(cloud).getByRole("option", { name: /aurora/ });expect(aurora.querySelector("[data-os-icon]")).not.toBeNull();- const host = within(screen.getByRole("listbox", { name: "This computer" })).getByRole("option");+ const host = within(lists.find((l) => !within(l).queryByRole("option", { name: /cua-e2e-vm/ }))!).getByRole("option");expect(host.querySelector('[data-os-icon="os-macos"]')).not.toBeNull();});@@ -386,13 +388,13 @@ describe("MainWindow", () => {"Agents","Teleport",]);- fireEvent.click(within(screen.getByRole("listbox", { name: "This computer" })).getByRole("option"));+ fireEvent.click(within(screen.getAllByRole("listbox", { name: "This Mac" })[0]!).getByRole("option"));fireEvent.click(await screen.findByRole("button", { name: "Turn on remote access" }));- expect(await screen.findByText("Set up this computer")).toBeInTheDocument();+ expect(await screen.findByText("Set up this machine")).toBeInTheDocument();fireEvent.click(screen.getByRole("button", { name: "Turn on remote access" }));expect(await screen.findByRole("button", { name: "Stop sharing" })).toBeInTheDocument();await waitFor(() =>- expect(within(screen.getByRole("listbox", { name: "This computer" })).getByRole("option")).toHaveAttribute(+ expect(within(screen.getAllByRole("listbox", { name: "This Mac" })[0]!).getByRole("option")).toHaveAttribute("aria-selected","true",),@@ -443,7 +445,7 @@ describe("MainWindow", () => {const theirs = screen.getByRole("alertdialog", { name: "Delete their-box?" });const permanent = within(theirs).getByRole("button", { name: "Delete Permanently" });expect(permanent).toBeDisabled();- expect(permanent).toHaveAttribute("title", "Created on another device: delete it there, or remove it from this list.");+ expect(permanent).toHaveAttribute("title", "Created on another machine: delete it there, or remove it from this list.");fireEvent.click(within(theirs).getByRole("button", { name: "Remove from List" }));await waitFor(() => expect(removeSpace).toHaveBeenCalledWith("relay:cloud-0000000000000e01"));expect(deleteSpace).toHaveBeenCalledTimes(1);@@ -563,7 +565,7 @@ describe("empty home", () => {setup({ listSpaces: async () => [] });expect(await screen.findByRole("heading", { name: "No Spaces yet" })).toBeInTheDocument();expect(screen.getByText("Pick a system to start it.")).toBeInTheDocument();- expect(screen.queryByRole("heading", { name: "This computer" })).toBeNull();+ expect(screen.queryByRole("heading", { name: "This Mac" })).toBeNull();expect(screen.getByRole("button", { name: "Linux, About 3 minutes · 3.3–7.3 GB of disk" })).toBeInTheDocument();expect(screen.getByRole("button", { name: /^macOS, About .+ download$/ })).toBeInTheDocument();});diff --git a/docs/content/docs/spaces/guides/add-a-computer.mdx b/docs/content/docs/spaces/guides/add-a-computer.mdxindex 625bec79cd..84bc7b6aea 100644--- a/docs/content/docs/spaces/guides/add-a-computer.mdx+++ b/docs/content/docs/spaces/guides/add-a-computer.mdx@@ -1,12 +1,12 @@---title: Add a computer-description: 'Connect another Mac, Windows or Linux computer you own to Cua Spaces, so your agents and your other devices can use it. Also how to turn a spare Mac into a place that runs Spaces.'+description: 'Connect another Mac, Windows or Linux computer you own to Cua Spaces, so your agents and your other machines can use it. Also how to turn a spare Mac into a place that runs Spaces.'---import { Callout } from 'fumadocs-ui/components/callout';A computer you add runs Spaces for you. Once it is added, it shows up in-**Computers** on all your devices, your agents can create Spaces on it, and you+**Machines** on all your machines, your agents can create Spaces on it, and youcan open its desktop from anywhere, even when nobody is sitting at it. Cuadoesn't rent computers: add a Mac on your desk, a spare box in the office, or aVM in your own cloud account. For a walkthrough of each, see@@ -16,7 +16,7 @@ VM in your own cloud account. For a walkthrough of each, see## Add a computer from the app-In Cua Spaces, open **Computers** and press **Add a computer**. You can also+In Cua Spaces, open **Machines** and press **Add a machine**. You can alsofind it in the command palette. The sheetlists the ways to add one; pick the one that suits the other computer.@@ -26,7 +26,7 @@ lists the ways to add one; pick the one that suits the other computer.| **Open a link** | Open the one-time link the sheet shows. The page gives the install command for that computer, which installs Cua Spaces and adds it. || **Scan a QR code** | Scan the code with that computer's camera. It opens the same link. || **Run a command** | Run the command in a terminal. **macOS / Linux** and **Windows (preview)** each have their own. |-| **Enter a code** | For a computer that already has Cua Spaces. There, open **Add a computer**, choose **Have a code? Enter it** and type the code. |+| **Enter a code** | For a computer that already has Cua Spaces. There, open **Add a machine**, choose **Have a code? Enter it** and type the code. |You can also paste the prompt under **Or paste this into an agent on thatcomputer** into an AI agent running there. It carries the same one-time code.@@ -49,9 +49,11 @@ app asks before this computer joins.</Callout>A computer added from this sheet, or by signing in, provides Spaces and keeps-its screen private. Its page under **Computers** has two switches: turn on-**Share this desktop** to see and control its screen from your other devices,-or turn off **Provide Spaces** to stop it running Spaces for you.+its screen private. Turn off **Let other machines create Spaces here** in+**Settings** to stop it running Spaces for you, and turn on **Let other+machines control this desktop** on its page under **Machines** to see and+control its screen from your other machines. With both off, the machine simply+isn't shared.## Add a computer from a terminal@@ -71,7 +73,7 @@ cua host setup # signs in to cua.ai for this command if needed`cua host setup` installs cua-spacesd as a background service. By default itjoins the cua.ai relay with an outbound connection, as your account: no portforwarding and no token to copy. Your other devices, once-[enrolled](#reach-it-from-your-other-devices), then see the computer as+[enrolled](#reach-it-from-your-other-machines), then see the computer as`relay:<machine-id>` in `cua spaces ls` and in the app.The computer keeps only its own token. If it is not signed in, setup@@ -118,7 +120,7 @@ desktop only while it is signed in, unlocked and on screen:A viewer or agent that connects in one of these states sees which one it is.-## Reach it from your other devices+## Reach it from your other machinesA device reaches your computers through the cua.ai relay only after it isenrolled once with a second factor, so a stolen account session alone is not@@ -231,8 +233,8 @@ The computer has two settings, and each works on its own:| Setting | What it does | `desktop` profile (default) | `spare` profile ||---|---|---|---|-| Share this desktop | The computer itself is a Space: its screen, input, shell and files. | on | off |-| Provide Spaces | Your enrolled devices can create, list and delete Spaces on it. | on for a new setup | on |+| Let other machines control this desktop (`--desktop`) | The computer itself is a Space: its screen, input, shell and files. | on | off |+| Let other machines create Spaces here (`--provide-spaces`) | Your enrolled devices can create, list and delete Spaces on it. | on for a new setup | on |A computer set up before this default keeps what it had: setting it up againnever turns **Provide Spaces** on unless you pass `--provide-spaces`. With@@ -310,7 +312,7 @@ setup. An existing account session is reused.### Create Spaces on it from your laptop-Your laptop must be [enrolled](#reach-it-from-your-other-devices) for your+Your laptop must be [enrolled](#reach-it-from-your-other-machines) for youraccount. Then ask your coding agent, through the cua MCP server:> spin up 2 macos spaces on my spare mac mini@@ -551,7 +553,7 @@ restarts, the Mac opens the same port again.| What you see | What to do ||---|---|-| "That code didn't work" | A code works once and expires. Open **Add a computer** again for a new one. |+| "That code didn't work" | A code works once and expires. Open **Add a machine** again for a new one. || "This Mac can't make codes yet." | This device isn't enrolled. Enroll it in **Settings, Devices**, or use **Sign in there**. || The computer never appears | On that computer, run `cua host status`. It shows the service state and any missing permission. || The computer shows **Offline** | It is off, asleep or disconnected. Wake it or reconnect it, then run `cua host status` on it. |diff --git a/docs/content/docs/spaces/guides/bring-your-own-compute.mdx b/docs/content/docs/spaces/guides/bring-your-own-compute.mdxindex 60b627e551..6c4ff6d1a4 100644--- a/docs/content/docs/spaces/guides/bring-your-own-compute.mdx+++ b/docs/content/docs/spaces/guides/bring-your-own-compute.mdx@@ -6,7 +6,7 @@ description: 'Run Cua Spaces on computers you already have: this Mac, a Mac miniimport { Callout } from 'fumadocs-ui/components/callout';Cua Spaces runs on hardware you bring. You don't rent a computer from Cua. You-add one you already have, and your agents and your other devices use it from+add one you already have, and your agents and your other machines use it fromthere. This page shows four ways to do that. Pick the one that matches what youhave.@@ -17,7 +17,7 @@ have.| A Linux machine, or a VPS you rent somewhere | [A Linux box or VPS](#a-linux-box-or-vps) || A VM in your own cloud account | [A VM in your cloud account](#a-vm-in-your-cloud-account) |-Every route ends the same way. The computer shows up in **Computers** in the+Every route ends the same way. The computer shows up in **Machines** in theapp and in `cua spaces ls`. Nothing connects inward to it: the computer callsout to the cua.ai relay, so you don't open ports or set up a VPN.@@ -119,14 +119,14 @@ Spaces. A Mac or Windows Space needs a Mac or a Windows computer.cua host status```-The server now appears in **Computers**. Setup installs it as a background+The server now appears in **Machines**. Setup installs it as a backgroundservice, so it comes back after a restart.If the server only runs Spaces and you don't want to share its own desktop,add `--profile spare` to the setup command.-Already on the Cua Spaces app? You can skip the code. Open **Computers**, press-**Add a computer**, and run the install command it shows on the server. See+Already on the Cua Spaces app? You can skip the code. Open **Machines**, press+**Add a machine**, and run the install command it shows on the server. See[Add a computer](/spaces/guides/add-a-computer#add-a-computer-from-the-app).## A VM in your cloud accountdiff --git a/docs/content/docs/spaces/guides/connect-your-agent.mdx b/docs/content/docs/spaces/guides/connect-your-agent.mdxindex b8a62c90d7..aed17b6fdd 100644--- a/docs/content/docs/spaces/guides/connect-your-agent.mdx+++ b/docs/content/docs/spaces/guides/connect-your-agent.mdx@@ -312,7 +312,7 @@ as the macOS Keychain.| The agent has no `cua` tools | Run `cua agents status`. Then start a new session in the agent. In Hermes, run `/reload-mcp`. || "The Cua daemon isn't running. Start Cua, or run `cua daemon start`." | Open Cua Spaces, or run `cua daemon start`. || Your agent is not in the app's list | Run `cua agents detect` to see every supported agent, or add the server by hand as shown above. |-| The agent can't reach a Space on another computer | Sign in on this computer, and make sure the device is enrolled. See [Add a computer](/spaces/guides/add-a-computer#reach-it-from-your-other-devices). |+| The agent can't reach a Space on another computer | Sign in on this computer, and make sure the device is enrolled. See [Add a computer](/spaces/guides/add-a-computer#reach-it-from-your-other-machines). |## Nextdiff --git a/docs/content/docs/spaces/guides/relay-security.mdx b/docs/content/docs/spaces/guides/relay-security.mdxindex 3a95dd9364..26b82bb4a0 100644--- a/docs/content/docs/spaces/guides/relay-security.mdx+++ b/docs/content/docs/spaces/guides/relay-security.mdx@@ -442,7 +442,7 @@ harbor for good-faith security research.- [End-to-end encrypted connections](#end-to-end-encrypted-connections): themesh in full, and [Use your tailnet](/spaces/guides/your-tailnet) to run onyour own Tailscale or Headscale network instead.-- [Add a computer](/spaces/guides/add-a-computer#reach-it-from-your-other-devices):+- [Add a computer](/spaces/guides/add-a-computer#reach-it-from-your-other-machines):device enrollment in full.- [Share a Space](/spaces/guides/share-a-space): the allowlist and audit trailfor sharing.diff --git a/docs/content/docs/spaces/guides/share-a-space.mdx b/docs/content/docs/spaces/guides/share-a-space.mdxindex 57a44214d5..bbb76c968e 100644--- a/docs/content/docs/spaces/guides/share-a-space.mdx+++ b/docs/content/docs/spaces/guides/share-a-space.mdx@@ -1,6 +1,6 @@---title: Share a Space-description: 'Let someone in your team watch or use one of your Spaces through the relay, and reach a Space from your other devices.'+description: 'Let someone in your team watch or use one of your Spaces through the relay, and reach a Space from your other machines.'---import { Callout } from 'fumadocs-ui/components/callout';@@ -90,7 +90,7 @@ Sharing uses the same relay and allowlist as anaccount registers a computer for it, and the Space's own driver dials outover WSS, so no inbound port opens.- The relay keeps two lists per computer: `allow` (editors) and `viewers`.-- Invitees need a verified email or account ID and an [enrolled device](/spaces/guides/add-a-computer#reach-it-from-your-other-devices).+- Invitees need a verified email or account ID and an [enrolled device](/spaces/guides/add-a-computer#reach-it-from-your-other-machines).- Removing someone, or changing their role, cuts their open streams at once.- Team membership comes from your team in your Cua account, not from therelay. The Cua account service checks it when you share and again each time@@ -124,7 +124,7 @@ Sharing asks you first:Removing someone needs no confirmation.-## Reach a Space from your other devices+## Reach a Space from your other machinesTo reach a Space from your phone or another computer without sharing it withanyone, publish it on the relay:diff --git a/docs/content/docs/spaces/guides/teams.mdx b/docs/content/docs/spaces/guides/teams.mdxindex e9bc8aa5bf..67b7536d4a 100644--- a/docs/content/docs/spaces/guides/teams.mdx+++ b/docs/content/docs/spaces/guides/teams.mdx@@ -153,7 +153,7 @@ members. To let someone only watch, share a Space with them as a viewer instead.Pairing needs Cua Spaces 0.8.0 or later. An owner or admin does this.-1. In the Cua Spaces app, open **Computers**, press **Add a computer** and choose+1. In the Cua Spaces app, open **Machines**, press **Add a machine** and chooseyour team next to **For** at the bottom of the sheet. Then pick **Open alink**, **Scan a QR code**, **Run a command** or **Enter a code**. Each onecarries a one-time pairing code that looks like `K7QM-4XPB-2RHD`. For the@@ -166,14 +166,14 @@ cua host setup --pair K7QM-4XPB-2RHD```If the computer already has the Cua Spaces app, you don't need the command:-open **Add a computer** in the app there, choose **Have a code? Enter it**, and+open **Add a machine** in the app there, choose **Have a code? Enter it**, andpaste the code or the link. The app asks before it joins.The computer joins the team that made the code, with no sign-in on that computer.A code works once and expires after 30 minutes; while the sheet is open, itrenews by itself. Revoke an unused one from the sheet's **⋯** menu.-The computer then appears under **Computers** at+The computer then appears under **Machines** at[app.cua.ai/machines](https://app.cua.ai/machines), where an owner or admin canremove it from the team. Removing a computer does not delete anything on it.diff --git a/docs/content/docs/spaces/index.mdx b/docs/content/docs/spaces/index.mdxindex 81a37750c9..117a9064f2 100644--- a/docs/content/docs/spaces/index.mdx+++ b/docs/content/docs/spaces/index.mdx@@ -31,7 +31,7 @@ share it with your whole team.|---|---|| Install on Mac, Windows or Linux | [Install](/spaces/guides/install) || Let my agent use Spaces | [Connect your agent](/spaces/guides/connect-your-agent) |-| Use another computer I own, or reach my computers from my other devices | [Add a computer](/spaces/guides/add-a-computer) |+| Use another computer I own, or reach my machines from my other machines | [Add a computer](/spaces/guides/add-a-computer) || Let someone else watch or work in a Space | [Share a Space](/spaces/guides/share-a-space) || Compare Free, Pro and Teams, or set up a team | [Plans and Teams](/spaces/guides/teams) || Fix a Space that won't create | [Troubleshoot](/spaces/guides/troubleshoot) |diff --git a/docs/content/docs/spaces/quickstart.mdx b/docs/content/docs/spaces/quickstart.mdxindex ec7d8477b2..5bbc775c7f 100644--- a/docs/content/docs/spaces/quickstart.mdx+++ b/docs/content/docs/spaces/quickstart.mdx@@ -98,7 +98,7 @@ keeps getting made after the window closes, and you get a notice when it'sready.Press **Done** whenever you like. To let your agent control this Mac itself,-open **Computers, This Mac**: it lists the two settings macOS asks for once.+open **Machines, This Mac**: it lists the two settings macOS asks for once.<Callout type="info">Home's sidebar keeps a **Get started** list (for example "Get started 2/5").diff --git a/libs/cua/crates/cua-sandbox-core/src/sandbox.rs b/libs/cua/crates/cua-sandbox-core/src/sandbox.rsindex e72003068f..34a066f2cf 100644--- a/libs/cua/crates/cua-sandbox-core/src/sandbox.rs+++ b/libs/cua/crates/cua-sandbox-core/src/sandbox.rs@@ -814,7 +814,13 @@ impl Sandboxes {}}).await;- let sandbox = sandbox?;+ let sandbox = match sandbox {+ Ok(s) => s,+ Err(e) => {+ self.discard_failed_start(&options, preexisting).await;+ return Err(e);+ }+ };let started_ms = started.elapsed().as_millis() as u64;let clock = image_ready.unwrap_or(started);if !options.wait_for.is_empty() {@@ -866,6 +872,29 @@ impl Sandboxes {Ok(sandbox)}+ /// A local create that failed while starting (the runtime's own+ /// readiness wait, a boot error) can leave the instance it made: a+ /// running container, an overlay. A named create deletes it, and its+ /// record, unless the caller keeps it (`keep_on_failure`) or the name+ /// was already in use (that instance is not this create's to delete).+ /// A failed delete is logged and never replaces the create's error.+ /// An unnamed (ephemeral) create is cleaned up by `create_local`.+ async fn discard_failed_start(&self, options: &CreateOptions, preexisting: bool) {+ if options.provider != ProviderKind::Local {+ return;+ }+ let Some(name) = options.name.as_deref().filter(|n| !n.is_empty()) else {+ return;+ };+ if preexisting {+ tracing::warn!(sandbox = %name, "start failed; pre-existing sandbox retained");+ } else if options.keep_on_failure {+ tracing::warn!(sandbox = %name, "sandbox failed to start and is kept (keep_on_failure)");+ } else if let Err(d) = self.delete_local_instance(name).await {+ tracing::warn!(sandbox = %name, error = %d, "could not delete a sandbox that failed to start");+ }+ }+/// [`Sandboxes::create`] that stops when `cancel` fires, and when this/// future is dropped (a closed request, a Ctrl-C): the work in flight/// stops (an image download, a boot, a claim) and what this create madediff --git a/libs/cua/crates/cua-sandbox-core/tests/failed_create_cleanup.rs b/libs/cua/crates/cua-sandbox-core/tests/failed_create_cleanup.rsnew file mode 100644index 0000000000..d456afa940--- /dev/null+++ b/libs/cua/crates/cua-sandbox-core/tests/failed_create_cleanup.rs@@ -0,0 +1,269 @@+//! A failed local create deletes the instance it made (and its record)+//! unless `keep_on_failure` is set, whichever step failed: the runtime's own+//! start (its readiness wait), a readiness probe that never passes, a guest+//! that exits before it is ready, or a create that is cancelled. The runtime+//! is a fake that counts what it holds and every delete; nothing is booted.++use async_trait::async_trait;+use cua_sandbox_core::{+ CreateOptions, Error, InstanceStatus, LocalEndpoints, LocalInstance, LocalRuntime,+ LocalStartSpec, LocalSummary, Probe, ProviderKind, RuntimeError, RuntimeResult, Sandboxes,+};+use std::collections::HashMap;+use std::sync::{Arc, Mutex};+use std::time::Duration;++const PORT: u16 = 8080;++#[derive(Clone, Copy, PartialEq)]+enum Mode {+ /// `start` leaves the instance behind and returns an error, as a+ /// runtime whose own readiness wait timed out does.+ StartFails,+ /// `start` succeeds; the guest port never listens.+ NeverListens,+ /// `start` succeeds; the instance exits before the probe passes.+ Exits,+ /// `start` leaves the instance and then never returns.+ Hangs,+}++struct Fake {+ mode: Mode,+ live: Mutex<HashMap<String, InstanceStatus>>,+ deletes: Mutex<Vec<String>>,+ /// `delete` fails (the instance stays).+ delete_fails: bool,+}++impl Fake {+ fn new(mode: Mode) -> Arc<Self> {+ Arc::new(Self {+ mode,+ live: Mutex::default(),+ deletes: Mutex::default(),+ delete_fails: false,+ })+ }++ fn failing_delete(mode: Mode) -> Arc<Self> {+ Arc::new(Self {+ mode,+ live: Mutex::default(),+ deletes: Mutex::default(),+ delete_fails: true,+ })+ }++ fn held(&self) -> usize {+ self.live.lock().unwrap().len()+ }++ fn delete_calls(&self) -> usize {+ self.deletes.lock().unwrap().len()+ }++ fn instance(name: &str) -> LocalInstance {+ LocalInstance {+ name: name.into(),+ backend: "fake".into(),+ status: InstanceStatus::Running,+ endpoints: LocalEndpoints {+ host: "127.0.0.1".into(),+ ports: [(PORT, PORT)].into(),+ ..Default::default()+ },+ }+ }+}++#[async_trait]+impl LocalRuntime for Fake {+ fn backend(&self) -> String {+ "fake".into()+ }+ async fn start(&self, spec: &LocalStartSpec) -> RuntimeResult<LocalInstance> {+ let status = match self.mode {+ Mode::Exits => InstanceStatus::Stopped,+ _ => InstanceStatus::Running,+ };+ self.live.lock().unwrap().insert(spec.name.clone(), status);+ match self.mode {+ Mode::StartFails => Err(RuntimeError::Other(format!(+ "[local] sandbox '{}' was not ready after 1s: probe Tcp {{ port: 9999 }} never passed",+ spec.name+ ))),+ Mode::Hangs => {+ tokio::time::sleep(Duration::from_secs(3600)).await;+ Ok(Self::instance(&spec.name))+ }+ _ => Ok(Self::instance(&spec.name)),+ }+ }+ async fn guest_tcp_listening(&self, _: &str, _: u16) -> RuntimeResult<Option<bool>> {+ Ok(Some(false))+ }+ async fn stop(&self, _: &str) -> RuntimeResult<()> {+ Ok(())+ }+ async fn resume(&self, name: &str) -> RuntimeResult<LocalInstance> {+ Ok(Self::instance(name))+ }+ async fn list(&self) -> RuntimeResult<Vec<LocalSummary>> {+ Ok(vec![])+ }+ async fn status(&self, name: &str) -> RuntimeResult<InstanceStatus> {+ self.live+ .lock()+ .unwrap()+ .get(name)+ .cloned()+ .ok_or_else(|| RuntimeError::NotFound(name.into()))+ }+ async fn delete(&self, name: &str) -> RuntimeResult<()> {+ self.deletes.lock().unwrap().push(name.into());+ if self.delete_fails {+ return Err(RuntimeError::Other("docker daemon went away".into()));+ }+ self.live.lock().unwrap().remove(name);+ Ok(())+ }+ async fn endpoints(&self, _: &str) -> RuntimeResult<LocalEndpoints> {+ Ok(Self::instance("").endpoints)+ }+}++fn options(name: &str, keep: bool) -> CreateOptions {+ let mut o = CreateOptions::new(ProviderKind::Local, "docker.io/library/python:3.12-slim")+ .name(name)+ .wait_for(Probe::Tcp(9999));+ o.ports = vec![PORT];+ o.ready_timeout = Duration::from_millis(300);+ o.ready_timeout_given = true;+ o.keep_on_failure = keep;+ o+}++fn manager(rt: &Arc<Fake>, dir: &std::path::Path) -> Sandboxes {+ Sandboxes::builder()+ .local(rt.clone())+ .state_dir(dir)+ .build()+}++#[tokio::test]+async fn a_start_that_fails_its_readiness_wait_deletes_what_it_made() {+ let dir = tempfile::tempdir().unwrap();+ let rt = Fake::new(Mode::StartFails);+ let sbx = manager(&rt, dir.path());+ let err = sbx.create(options("t2", false)).await.err().unwrap();+ assert!(err.to_string().contains("was not ready"), "{err}");+ assert_eq!(rt.held(), 0, "the container was left running");+ assert_eq!(rt.delete_calls(), 1, "cleanup runs exactly once");+ assert!(+ sbx.get("t2").await.is_err(),+ "no record is left for `sb list`"+ );+}++#[tokio::test]+async fn a_readiness_timeout_deletes_what_it_made() {+ let dir = tempfile::tempdir().unwrap();+ let rt = Fake::new(Mode::NeverListens);+ let sbx = manager(&rt, dir.path());+ let err = sbx.create(options("t3", false)).await.err().unwrap();+ assert!(matches!(err, Error::Timeout(_)), "{err}");+ assert_eq!(rt.held(), 0);+ assert_eq!(rt.delete_calls(), 1, "cleanup runs exactly once");+ assert!(sbx.get("t3").await.is_err());+}++#[tokio::test]+async fn a_guest_that_exits_before_ready_deletes_what_it_made() {+ let dir = tempfile::tempdir().unwrap();+ let rt = Fake::new(Mode::Exits);+ let sbx = manager(&rt, dir.path());+ let err = sbx.create(options("t4", false)).await.err().unwrap();+ assert!(err.to_string().contains("exited"), "{err}");+ assert_eq!(rt.held(), 0);+ assert_eq!(rt.delete_calls(), 1, "cleanup runs exactly once");+}++#[tokio::test]+async fn keep_on_failure_keeps_a_failed_start_and_a_failed_readiness() {+ for mode in [Mode::StartFails, Mode::NeverListens] {+ let dir = tempfile::tempdir().unwrap();+ let rt = Fake::new(mode);+ let sbx = manager(&rt, dir.path());+ assert!(sbx.create(options("kept", true)).await.is_err());+ assert_eq!(rt.held(), 1, "the failed create is kept for debugging");+ assert_eq!(rt.delete_calls(), 0);+ }+}++#[tokio::test]+async fn a_failed_delete_does_not_mask_the_create_error() {+ let dir = tempfile::tempdir().unwrap();+ let rt = Fake::failing_delete(Mode::StartFails);+ let sbx = manager(&rt, dir.path());+ let err = sbx.create(options("t5", false)).await.err().unwrap();+ assert!(err.to_string().contains("was not ready"), "{err}");+ assert!(+ !err.to_string().contains("docker daemon went away"),+ "{err}"+ );+ assert_eq!(rt.delete_calls(), 1);+}++#[tokio::test]+async fn a_failed_create_never_deletes_a_name_that_was_already_in_use() {+ let dir = tempfile::tempdir().unwrap();+ let rt = Fake::new(Mode::StartFails);+ rt.live+ .lock()+ .unwrap()+ .insert("mine".into(), InstanceStatus::Running);+ let sbx = manager(&rt, dir.path());+ assert!(sbx.create(options("mine", false)).await.is_err());+ assert_eq!(+ rt.delete_calls(),+ 0,+ "the earlier sandbox is not this create's"+ );+ assert_eq!(rt.held(), 1);+}++#[tokio::test]+async fn an_interrupted_create_deletes_what_it_made_once() {+ let dir = tempfile::tempdir().unwrap();+ let rt = Fake::new(Mode::Hangs);+ let sbx = manager(&rt, dir.path());+ let cancel = cua_sandbox_core::CancellationToken::new();+ let stop = cancel.clone();+ tokio::spawn(async move {+ tokio::time::sleep(Duration::from_millis(100)).await;+ stop.cancel();+ });+ let err = sbx+ .create_cancellable(options("t6", false), cancel)+ .await+ .err()+ .unwrap();+ assert!(matches!(err, Error::Cancelled(_)), "{err}");+ assert_eq!(rt.held(), 0);+ assert_eq!(rt.delete_calls(), 1, "cleanup runs exactly once");+}++#[tokio::test]+async fn no_container_is_left_after_many_failed_creates() {+ let dir = tempfile::tempdir().unwrap();+ for mode in [Mode::StartFails, Mode::NeverListens, Mode::Exits] {+ let rt = Fake::new(mode);+ let sbx = manager(&rt, dir.path());+ for i in 0..8 {+ let _ = sbx.create(options(&format!("chaos-{i}"), false)).await;+ }+ assert_eq!(rt.held(), 0, "a failed create left a container behind");+ assert_eq!(rt.delete_calls(), 8, "one cleanup per failed create");+ }+}diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/agents-page.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/agents-page.jsonindex 88b5d6b811..d9a315efe6 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/agents-page.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/agents-page.json@@ -22,8 +22,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": [],"canAdd": false,"error": null,@@ -40,7 +40,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory*, Routines, Access to this computer"+ "tabs": "Memory*, Routines, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -58,8 +58,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -83,7 +83,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory*, Routines, Access to this computer"+ "tabs": "Memory*, Routines, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -101,8 +101,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -126,7 +126,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory*, Routines, Access to this computer"+ "tabs": "Memory*, Routines, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -144,8 +144,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -177,7 +177,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory*, Routines, Access to this computer"+ "tabs": "Memory*, Routines, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -195,8 +195,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -228,7 +228,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory*, Routines, Access to this computer"+ "tabs": "Memory*, Routines, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -246,8 +246,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -271,7 +271,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory*, Routines, Access to this computer"+ "tabs": "Memory*, Routines, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -289,8 +289,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -314,7 +314,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -332,8 +332,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -357,7 +357,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -375,8 +375,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -400,7 +400,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -418,8 +418,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -443,7 +443,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -461,8 +461,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -486,7 +486,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -504,8 +504,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -529,7 +529,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -547,8 +547,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -572,7 +572,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -590,8 +590,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -615,7 +615,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -633,8 +633,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -659,7 +659,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -677,8 +677,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -703,7 +703,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -721,8 +721,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -747,7 +747,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines*, Access to this computer"+ "tabs": "Memory, Routines*, Access to this machine"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -765,8 +765,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -791,7 +791,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -809,8 +809,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -835,7 +835,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -853,8 +853,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -879,7 +879,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": "not confirmed: you declined",@@ -897,8 +897,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -923,7 +923,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -941,9 +941,9 @@"busy": false,"detail": {"access": [- "This computer | | Revoke | - | -"+ "This machine | | Revoke | - | -"],- "accessEmpty": "This agent cannot use your computers.",+ "accessEmpty": "This agent cannot use your machines.","allowThisMachine": null,"audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"@@ -969,7 +969,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -987,9 +987,9 @@"busy": true,"detail": {"access": [- "This computer | | Revoke | - | -"+ "This machine | | Revoke | - | -"],- "accessEmpty": "This agent cannot use your computers.",+ "accessEmpty": "This agent cannot use your machines.","allowThisMachine": null,"audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"@@ -1015,7 +1015,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -1033,8 +1033,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -1059,7 +1059,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -1077,8 +1077,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -1103,7 +1103,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved 5m ago",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -1121,8 +1121,8 @@"busy": false,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -1147,7 +1147,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved just now",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,@@ -1165,8 +1165,8 @@"busy": true,"detail": {"access": [],- "accessEmpty": "This agent cannot use your computers.",- "allowThisMachine": "Allow on this computer",+ "accessEmpty": "This agent cannot use your machines.",+ "allowThisMachine": "Allow on this machine","audit": ["Refused relay:0123456789abcdef | 16m ago | - | - | -"],@@ -1191,7 +1191,7 @@"Every week | | - | - | off"],"subtitle": "Home agents/ada/, saved just now",- "tabs": "Memory, Routines, Access to this computer*"+ "tabs": "Memory, Routines, Access to this machine*"},"empty": "No persistent agents. Create one with cua agent create, or ask your agent to.","error": null,diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/devices.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/devices.jsonindex b64eba5483..4eeffef119 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/devices.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/devices.json@@ -6,7 +6,7 @@"view": {"activity": [],"approvals": [],- "banner": "warning: Enroll this device within 5 days to keep reaching your computers. [Enroll…]",+ "banner": "warning: Enroll this device within 5 days to keep reaching your machines. [Enroll…]","enrolled": false,"labels": "Devices / This Device / Your Devices / Recent Access (No access yet) / Last seen / Approve… Deny Rename… Revoke… / Rename Device Rename Cancel / New Computers Confirm","recent": [],@@ -22,7 +22,7 @@"view": {"activity": [],"approvals": [],- "banner": "critical: Enroll this device to reach your computers. [Enroll…]",+ "banner": "critical: Enroll this device to reach your machines. [Enroll…]","enrolled": false,"labels": "Devices / This Device / Your Devices / Recent Access (No access yet) / Last seen / Approve… Deny Rename… Revoke… / Rename Device Rename Cancel / New Computers Confirm","recent": [],@@ -60,8 +60,8 @@"1799990000 MacBook Pro was approved from dev_a"],"approvals": [- "dev_p: Let “Work laptop” list and open your computers? Only approve a device you just signed in on. | Approve “Work laptop”? / A device signed in to your Cua account and asks to reach your computers.",- "dev_o (expired): Re-verify “Old laptop” for another 30 days? | Re-verify “Old laptop”? / It needs one approval to keep reaching your computers."+ "dev_p: Let “Work laptop” list and open your machines? Only approve a device you just signed in on. | Approve “Work laptop”? / A device signed in to your Cua account and asks to reach your machines.",+ "dev_o (expired): Re-verify “Old laptop” for another 30 days? | Re-verify “Old laptop”? / It needs one approval to keep reaching your machines."],"banner": null,"enrolled": true,@@ -72,10 +72,10 @@"1799990100 MacBook Pro opened studio-mac"],"rows": [- "MacBook Pro (this device) | macOS · Enrolled · re-verify in 30 days | seen 1799999940 | rename,revoke | current | Revoke “MacBook Pro”? / This device will no longer list or reach your computers until you enroll it again.",+ "MacBook Pro (this device) | macOS · Enrolled · re-verify in 30 days | seen 1799999940 | rename,revoke | current | Revoke “MacBook Pro”? / This device will no longer list or reach your machines until you enroll it again.","Lost phone | iOS · Revoked | seen null | ",- "Old laptop | Linux · Re-verification due | seen 1797300000 | approve,rename,revoke | Revoke “Old laptop”? / Old laptop will no longer list or reach your computers. To use it again, enroll it again.",- "Work laptop | Windows · Waiting for approval | seen null | approve,rename,revoke | Revoke “Work laptop”? / Work laptop will no longer list or reach your computers. To use it again, enroll it again."+ "Old laptop | Linux · Re-verification due | seen 1797300000 | approve,rename,revoke | Revoke “Old laptop”? / Old laptop will no longer list or reach your machines. To use it again, enroll it again.",+ "Work laptop | Windows · Waiting for approval | seen null | approve,rename,revoke | Revoke “Work laptop”? / Work laptop will no longer list or reach your machines. To use it again, enroll it again."],"thisDevice": "enrolled: Enrolled until @1802592000 name=MacBook Pro [-]","unconfirmedMachines": [@@ -93,7 +93,7 @@"labels": "Devices / This Device / Your Devices / Recent Access (No access yet) / Last seen / Approve… Deny Rename… Revoke… / Rename Device Rename Cancel / New Computers Confirm","recent": [],"rows": [- "MacBook Pro (this device) | macOS · Enrolled · re-verify in 2 days | seen null | rename,revoke | current | Revoke “MacBook Pro”? / This device will no longer list or reach your computers until you enroll it again."+ "MacBook Pro (this device) | macOS · Enrolled · re-verify in 2 days | seen null | rename,revoke | current | Revoke “MacBook Pro”? / This device will no longer list or reach your machines until you enroll it again."],"thisDevice": "enrolled: Enrolled until @1800172800 name=MacBook Pro [-]","unconfirmedMachines": []@@ -104,17 +104,17 @@"view": {"activity": [],"approvals": [- "dev_p: Let “Work laptop” list and open your computers? Only approve a device you just signed in on. | Approve “Work laptop”? / A device signed in to your Cua account and asks to reach your computers.",- "dev_o (expired): Re-verify “Old laptop” for another 30 days? | Re-verify “Old laptop”? / It needs one approval to keep reaching your computers."+ "dev_p: Let “Work laptop” list and open your machines? Only approve a device you just signed in on. | Approve “Work laptop”? / A device signed in to your Cua account and asks to reach your machines.",+ "dev_o (expired): Re-verify “Old laptop” for another 30 days? | Re-verify “Old laptop”? / It needs one approval to keep reaching your machines."],"banner": null,"enrolled": true,"labels": "Devices / This Device / Your Devices / Recent Access (No access yet) / Last seen / Approve… Deny Rename… Revoke… / Rename Device Rename Cancel / New Computers Confirm","recent": [],"rows": [- "MacBook Pro (this device) | macOS · Enrolled · re-verify in 30 days | seen null | rename,revoke | current | Revoke “MacBook Pro”? / This device will no longer list or reach your computers until you enroll it again.",- "Old laptop | Linux · Re-verification due | seen null | approve,rename,revoke | Revoke “Old laptop”? / Old laptop will no longer list or reach your computers. To use it again, enroll it again.",- "Work laptop | Windows · Waiting for approval | seen null | approve,rename,revoke | Revoke “Work laptop”? / Work laptop will no longer list or reach your computers. To use it again, enroll it again."+ "MacBook Pro (this device) | macOS · Enrolled · re-verify in 30 days | seen null | rename,revoke | current | Revoke “MacBook Pro”? / This device will no longer list or reach your machines until you enroll it again.",+ "Old laptop | Linux · Re-verification due | seen null | approve,rename,revoke | Revoke “Old laptop”? / Old laptop will no longer list or reach your machines. To use it again, enroll it again.",+ "Work laptop | Windows · Waiting for approval | seen null | approve,rename,revoke | Revoke “Work laptop”? / Work laptop will no longer list or reach your machines. To use it again, enroll it again."],"thisDevice": "enrolled: Enrolled until @1802592000 name=MacBook Pro [-]","unconfirmedMachines": []@@ -135,7 +135,7 @@"approve: Approve from another device / Show a one-time code to approve from an enrolled device."],"status": null,- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -154,7 +154,7 @@"approve: Approve from another device / Show a one-time code to approve from an enrolled device."],"status": null,- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -170,7 +170,7 @@"error": null,"options": [],"status": "Finish signing in in your browser…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -186,7 +186,7 @@"error": null,"options": [],"status": "Registering this device…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -202,7 +202,7 @@"error": null,"options": [],"status": "Waiting for approval…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -218,7 +218,7 @@"error": null,"options": [],"status": "This device is enrolled.",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -236,7 +236,7 @@"approve: Approve from another device / Show a one-time code to approve from an enrolled device."],"status": null,- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -252,7 +252,7 @@"error": null,"options": [],"status": "Finish signing in in your browser…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -268,7 +268,7 @@"error": null,"options": [],"status": "Registering this device…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -284,7 +284,7 @@"error": null,"options": [],"status": "This device is enrolled.",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -302,7 +302,7 @@"approve: Approve from another device / Show a one-time code to approve from an enrolled device."],"status": null,- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -318,7 +318,7 @@"error": null,"options": [],"status": "Registering this device…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -334,7 +334,7 @@"error": "the relay is unreachable","options": [],"status": null,- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -353,7 +353,7 @@"approve: Approve from another device / Show a one-time code to approve from an enrolled device."],"status": null,- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -369,7 +369,7 @@"error": null,"options": [],"status": "Registering this device…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -385,7 +385,7 @@"error": null,"options": [],"status": "Waiting for approval…",- "title": "Enroll This Device / Your computers can be reached only from enrolled devices."+ "title": "Enroll This Device / Your machines can be reached only from enrolled devices."}},{@@ -397,7 +397,7 @@"canApprove": false,"code": "Code [XXXX-XXXX] = ","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": null,"title": "Approve “Work laptop”?"@@ -412,7 +412,7 @@"canApprove": false,"code": "Code [XXXX-XXXX] = ","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": null,"title": "Approve “Work laptop”?"@@ -427,7 +427,7 @@"canApprove": false,"code": "Code [XXXX-XXXX] = K7QX","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": null,"title": "Approve “Work laptop”?"@@ -442,7 +442,7 @@"canApprove": true,"code": "Code [XXXX-XXXX] = K7QX-M2RP","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": "code=K7QX-M2RP device=-","title": "Approve “Work laptop”?"@@ -457,7 +457,7 @@"canApprove": false,"code": "Code [XXXX-XXXX] = K7QX-M2RP","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": "code=K7QX-M2RP device=-","title": "Approve “Work laptop”?"@@ -472,7 +472,7 @@"canApprove": false,"code": "Code [XXXX-XXXX] = K7QX-M2RP","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": "code=K7QX-M2RP device=-","title": "Approve “Work laptop”?"@@ -487,7 +487,7 @@"canApprove": true,"code": "Code [XXXX-XXXX] = K7QX-M2RP","error": "authentication was cancelled",- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": "code=K7QX-M2RP device=-","title": "Approve “Work laptop”?"@@ -502,7 +502,7 @@"canApprove": true,"code": "Code [XXXX-XXXX] = Z9WY-4TPN","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": "code=Z9WY-4TPN device=-","title": "Approve “Work laptop”?"@@ -517,7 +517,7 @@"canApprove": false,"code": "Code [XXXX-XXXX] = Z9WY-4TPN","error": null,- "message": "Enter the code Work laptop shows to let it list and open your computers. Only approve a device you just signed in on.",+ "message": "Enter the code Work laptop shows to let it list and open your machines. Only approve a device you just signed in on.","presence": "approve “Work laptop” for your Cua account","request": "code=Z9WY-4TPN device=-","title": "Approve “Work laptop”?"@@ -562,7 +562,7 @@"canApprove": true,"code": null,"error": null,- "message": "Old laptop needs one approval to keep reaching your computers for another 30 days.",+ "message": "Old laptop needs one approval to keep reaching your machines for another 30 days.","presence": "approve “Old laptop” for your Cua account","request": "code=- device=dev_o","title": "Re-verify “Old laptop”?"@@ -577,7 +577,7 @@"canApprove": false,"code": null,"error": null,- "message": "Old laptop needs one approval to keep reaching your computers for another 30 days.",+ "message": "Old laptop needs one approval to keep reaching your machines for another 30 days.","presence": "approve “Old laptop” for your Cua account","request": "code=- device=dev_o","title": "Re-verify “Old laptop”?"diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-onboarding.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-onboarding.jsonindex 48d8e98566..306c17d0fe 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-onboarding.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-onboarding.json@@ -21,7 +21,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] (disabled) ~Checking… | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {*This Mac|Your S3 bucket|Set up later}",@@ -51,7 +51,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {*This Mac|Your S3 bucket|Set up later}",@@ -81,7 +81,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [x] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {*This Mac|Your S3 bucket|Set up later}",@@ -111,7 +111,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [x] (disabled) (busy) | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {*This Mac|Your S3 bucket|Set up later}",@@ -141,7 +141,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [x] ~Turn on Cua Volume in File System Extensions. <Open System Settings x-apple.systempreferences:com.apple.LoginItems-Settings.extension> | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {*This Mac|Your S3 bucket|Set up later}",@@ -171,13 +171,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -200,7 +200,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -218,14 +218,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. Waiting for approval. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. Waiting for approval. -> Turn on (optional)"],"usage": null},@@ -239,7 +239,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Mount Cua Volume [ ] | Files from a Space arriving in the mounted Cua Volume","driveStorage": null,"lede": "Memory and files your agents share, across every Space.",@@ -265,7 +265,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Mount Cua Volume [x] | Files from a Space arriving in the mounted Cua Volume","driveStorage": null,"lede": "Memory and files your agents share, across every Space.",@@ -291,7 +291,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Mount Cua Volume [x] (disabled) (busy) | Files from a Space arriving in the mounted Cua Volume","driveStorage": null,"lede": "Memory and files your agents share, across every Space.",@@ -317,13 +317,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -346,7 +346,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -364,14 +364,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[x] Cua Volume ~Shared folder: files your agents can share across your computers. /home/maya/Cua Volume. (optional)"+ "[x] Cua Volume ~Shared folder: files your agents can share across your machines. /home/maya/Cua Volume. (optional)"],"usage": null},@@ -385,7 +385,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] (disabled) ~Not available on this Mac yet | Files from a Space arriving in Cua Volume in Finder","driveStorage": null,"lede": "Memory and files your agents share, across every Space.",@@ -411,7 +411,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] (disabled) ~Not available on this Mac yet | Files from a Space arriving in Cua Volume in Finder","driveStorage": null,"lede": "Memory and files your agents share, across every Space.",@@ -437,13 +437,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -466,7 +466,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -495,13 +495,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -524,7 +524,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -553,7 +553,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -571,12 +571,12 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent"],"usage": null@@ -591,7 +591,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [x] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {*This Mac|Your S3 bucket|Set up later}",@@ -622,13 +622,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -651,7 +651,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -682,7 +682,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -719,7 +719,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -756,7 +756,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] (disabled) (busy) | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -793,7 +793,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -831,7 +831,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -868,7 +868,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [x] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -905,7 +905,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [x] (disabled) (busy) | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -942,7 +942,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [x] (disabled) (busy) | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -978,13 +978,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -1007,7 +1007,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -1038,7 +1038,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -1069,7 +1069,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] (disabled) (busy) | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -1101,7 +1101,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|*Your S3 bucket|Set up later}",@@ -1137,13 +1137,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -1166,7 +1166,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*Cua Volume,This machine,Done","drive": "Add Cua Volume to Finder [ ] | Files from a Space arriving in Cua Volume in Finder","driveStorage": ["Where your files live {This Mac|Your S3 bucket|*Set up later}",@@ -1196,13 +1196,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers (preselected)",- "host: Let my other devices reach this Mac"+ "client: Just use this Mac to open my other machines (preselected)",+ "host: Let my other machines reach this Mac"],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-storage.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-storage.jsonindex 2373aabc0d..17c02aa5bc 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-storage.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/drive-storage.json@@ -526,7 +526,7 @@"section": ["= Settings","# Storage (storage)",- "- backend choice: Store files on {This computer|*S3-compatible}",+ "- backend choice: Store files on {This machine|*S3-compatible}","- s3-endpoint field: Endpoint = http://127.0.0.1:9000 ~AWS","- s3-bucket field: Bucket = cua-volume","- s3-region field: Region = us-east-1 ~us-east-1",diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/experiments.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/experiments.jsonindex af6502060c..a32fb455bf 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/experiments.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/experiments.json@@ -23,7 +23,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -41,14 +41,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -142,7 +142,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -160,14 +160,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[x] Cua Volume ~Shared folder: files your agents can share across your computers. In Finder. (optional)"+ "[x] Cua Volume ~Shared folder: files your agents can share across your machines. In Finder. (optional)"],"usage": null},@@ -281,7 +281,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -299,14 +299,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[x] Cua Volume ~Shared folder: files your agents can share across your computers. In Finder. (optional)"+ "[x] Cua Volume ~Shared folder: files your agents can share across your machines. In Finder. (optional)"],"usage": null},@@ -416,7 +416,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -434,14 +434,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[x] Cua Volume ~Shared folder: files your agents can share across your computers. In Finder. (optional)"+ "[x] Cua Volume ~Shared folder: files your agents can share across your machines. In Finder. (optional)"],"usage": null},@@ -538,7 +538,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -556,14 +556,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[x] Cua Volume ~Shared folder: files your agents can share across your computers. In Finder. (optional)"+ "[x] Cua Volume ~Shared folder: files your agents can share across your machines. In Finder. (optional)"],"usage": null},@@ -660,7 +660,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,Cua Volume,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces, agents and Cua Volume available after a restart.",@@ -678,14 +678,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[x] Cua Volume ~Shared folder: files your agents can share across your computers. In Finder. (optional)"+ "[x] Cua Volume ~Shared folder: files your agents can share across your machines. In Finder. (optional)"],"usage": null},@@ -781,7 +781,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -799,14 +799,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -908,7 +908,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -926,14 +926,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -1038,7 +1038,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -1056,14 +1056,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.jsonindex d19fa75211..33e4bf3bd1 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/first-run.json@@ -8,7 +8,7 @@"welcome": {"lede": "Run agents in Spaces on this Mac, or on any computer your team connects.","primary": "start:Get started",- "title": "Your computers, shared by your team and its agents."+ "title": "Your machines, shared by your team and its agents."}},{@@ -122,16 +122,16 @@"art": "hermes on outline","case": "08 connect your other devices","devices": {- "lede": "Sign in to Cua here and on your other computers. Then they can all use this Mac's Spaces.",+ "lede": "Sign in to Cua here and on your other machines. Then they can all use this Mac's Spaces.","note": "Not now keeps Cua on this Mac only. You can sign in later.","primary": "sign-in:Sign in","rows": [- "Your other computers — Sign in with the same account",+ "Your other machines — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "not-now:Not now","status": null,- "title": "Add your other computers."+ "title": "Add your other machines."},"step": "devices"},@@ -139,16 +139,16 @@"art": "hermes on outline","case": "09 connect your other devices, signing in","devices": {- "lede": "Sign in to Cua here and on your other computers. Then they can all use this Mac's Spaces.",+ "lede": "Sign in to Cua here and on your other machines. Then they can all use this Mac's Spaces.","note": "Not now keeps Cua on this Mac only. You can sign in later.","primary": "sign-in:Sign in","rows": [- "Your other computers — Sign in with the same account",+ "Your other machines — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "not-now:Not now","status": "[checking] Signing in — Finish signing in to Cua in your browser.",- "title": "Add your other computers."+ "title": "Add your other machines."},"step": "devices"},@@ -156,11 +156,11 @@"art": "hermes on outline","case": "10 this Mac being added to the account","devices": {- "lede": "Sign in on your other computers to use its Spaces.",+ "lede": "Sign in on your other machines to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — Sign in with the same account",+ "Your other machines — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",@@ -173,11 +173,11 @@"art": "hermes on outline","case": "11 this Mac in the account","devices": {- "lede": "Sign in on your other computers to use its Spaces.",+ "lede": "Sign in on your other machines to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — Sign in with the same account",+ "Your other machines — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",@@ -218,7 +218,7 @@"[ ] Make this Mac your first Space — After you sign in.","[x] Try your first request — Ask Hermes or Claude Code: “Make a Linux Space on this Mac and show its desktop in a new window.”","[ ] Make a first Space (optional) — A separate computer on this Mac, away from your files and your mouse. (add:Add a Space)",- "[ ] Add your other computers (optional) — Sign in to use this Mac's Spaces from your other computers. (sign-in:Sign in)"+ "[ ] Add your other machines (optional) — Sign in to use this Mac's Spaces from your other machines. (sign-in:Sign in)"],"lede": "One thing is left.","progress": "1 of 5 done"@@ -264,7 +264,7 @@"items": ["[ ] Make this Mac your first Space — After you sign in.","[ ] Make a first Space (optional) — A separate computer on this Mac, away from your files and your mouse. (add:Add a Space)",- "[ ] Add your other computers (optional) — Sign in to use this Mac's Spaces from your other computers. (sign-in:Sign in)"+ "[ ] Add your other machines (optional) — Sign in to use this Mac's Spaces from your other machines. (sign-in:Sign in)"],"lede": "You're all set.","progress": "0 of 3 done"@@ -331,7 +331,7 @@"[ ] Let Cua control this Mac — So your agent can click and type. macOS asks you once. (open-settings:Open Settings)","[ ] Try your first request — Ask Claude Code: “Make a Linux Space on this Mac and show its desktop in a new window.” (copy:Copy)","[ ] Make a first Space (optional) — A separate computer on this Mac, away from your files and your mouse. (add:Add a Space)",- "[x] Add your other computers (optional) — Signed in to Cua."+ "[x] Add your other machines (optional) — Signed in to Cua."],"lede": "A couple of things are left.","progress": "1 of 5 done"@@ -512,11 +512,11 @@"art": "hermes on outline","case": "19 this Mac in the account, Continue goes to permissions","devices": {- "lede": "Sign in on your other computers to use its Spaces.",+ "lede": "Sign in on your other machines to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — Sign in with the same account",+ "Your other machines — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",@@ -648,16 +648,16 @@"art": "hermes on outline","case": "25 not signed in: Not now skips permissions","devices": {- "lede": "Sign in to Cua here and on your other computers. Then they can all use this Mac's Spaces.",+ "lede": "Sign in to Cua here and on your other machines. Then they can all use this Mac's Spaces.","note": "Not now keeps Cua on this Mac only. You can sign in later.","primary": "sign-in:Sign in","rows": [- "Your other computers — Sign in with the same account",+ "Your other machines — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "not-now:Not now","status": null,- "title": "Add your other computers."+ "title": "Add your other machines."},"step": "devices","steps": [@@ -690,11 +690,11 @@"art": "hermes on outline","case": "27 a Windows PC: no permissions screen","devices": {- "lede": "Sign in on your other computers to use its Spaces.",+ "lede": "Sign in on your other machines to use its Spaces.","note": null,"primary": "continue:Continue","rows": [- "Your other computers — Sign in with the same account",+ "Your other machines — Sign in with the same account","Your cloud — Hetzner, AWS, Google Cloud or Modal"],"secondary": "",diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/launch-at-login.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/launch-at-login.jsonindex 8f41ca0c9b..3b4590674d 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/launch-at-login.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/launch-at-login.json@@ -6,7 +6,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -24,14 +24,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -43,7 +43,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[ ] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -61,14 +61,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -80,7 +80,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -98,14 +98,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Opens your other computers"+ "This machine: Opens your other machines"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -117,7 +117,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -135,14 +135,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Your other devices can reach it"+ "This machine: Your other machines can reach it"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -154,7 +154,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[ ] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -172,14 +172,14 @@"step": "done","summary": ["Shows in: Notch and menu bar",- "This computer: Your other devices can reach it"+ "This machine: Your other machines can reach it"],"title": "Almost done","todos": ["[ ] Cua CLI ~Command-line tools for you and your agents. -> Install the Cua CLI",- "[ ] Account ~Reach your computers from any device. -> Sign in",+ "[ ] Account ~Reach your machines from any machine. -> Sign in","[ ] AI agents ~Let Claude Code, Codex and others use Cua. -> Connect an AI agent",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},@@ -255,7 +255,7 @@{"general": ["- launch-at-login toggle: Launch Cua Spaces at login {On|*Off}",- "- launch-at-login-note note: This computer provides Spaces, which stop after a restart until you open Cua Spaces.",+ "- launch-at-login-note note: This machine provides Spaces, which stop after a restart until you open Cua Spaces.","- notch choice: Spaces tab in the notch {*Show|Hide}","- welcome text: Welcome [Show again]","- tips toggle: Show tips {*On|Off}",@@ -266,7 +266,7 @@{"general": ["- launch-at-login toggle: Launch Cua Spaces at login {On|*Off}",- "- launch-at-login-note note: This computer runs persistent agents, which stop after a restart until you open Cua Spaces.",+ "- launch-at-login-note note: This machine runs persistent agents, which stop after a restart until you open Cua Spaces.","- notch choice: Spaces tab in the notch {*Show|Hide}","- welcome text: Welcome [Show again]","- tips toggle: Show tips {*On|Off}",@@ -277,7 +277,7 @@{"general": ["- launch-at-login toggle: Launch Cua Spaces at login {On|*Off}",- "- launch-at-login-note note: This computer provides Spaces and runs persistent agents, which stop after a restart until you open Cua Spaces.",+ "- launch-at-login-note note: This machine provides Spaces and runs persistent agents, which stop after a restart until you open Cua Spaces.","- notch choice: Spaces tab in the notch {*Show|Hide}","- welcome text: Welcome [Show again]","- tips toggle: Show tips {*On|Off}",diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/machines.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/machines.jsonindex fe17ce3798..0c86d58f15 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/machines.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/machines.json@@ -46,7 +46,7 @@{"page": "a spare Mac with one Space, a machine that stopped sharing and devices only in the device list","rows": [- "This Mac [this-mac] local macos online (this machine) + dev_me desktop this-mac \"Online\" \"Desktop · 1 Space\"",+ "This Mac [this-mac] local macos online (this machine) + dev_me desktop this-mac \"Online\" \"Desktop and 1 Space\"","studio-2.local [b6953d14ff94b10fcbb38bdd13c47824] relay macos online + dev_s desktop relay:b6953d14ff94b10fcbb38bdd13c47824 (stopped sharing) \"Not sharing\" \"No Spaces\"","BYOC tests [dev_byoc] relay macos offline (a device) \"Offline\"","Ana's MacBook Pro [dev_l1] relay macos online (a device) \"Online\"",@@ -56,7 +56,7 @@{"page": "a machine that provides Spaces and one sharing its desktop, signed out","rows": [- "This computer [this-mac] local linux online (this machine) \"Online\" \"No Spaces\"",+ "This machine [this-mac] local linux online (this machine) \"Online\" \"No Spaces\"","Spare Mac mini [m-mini] relay macos online desktop relay:m-mini \"Online\" \"Desktop shared\"","Build box [m-box] relay ? online \"Online\" \"2 Spaces\""]@@ -64,9 +64,9 @@{"page": "a machine sharing only its desktop, one sharing its desktop and Spaces, one providing Spaces only","rows": [- "This computer [this-mac] local linux online (this machine) \"Online\" \"No Spaces\"",+ "This machine [this-mac] local linux online (this machine) \"Online\" \"No Spaces\"","solo [solo] relay macos online desktop relay:solo \"Online\" \"Desktop shared\"",- "both [both] relay macos online desktop relay:both \"Online\" \"Desktop · 2 Spaces\"",+ "both [both] relay macos online desktop relay:both \"Online\" \"Desktop and 2 Spaces\"","spaces [spaces] relay macos online desktop relay:spaces \"Online\" \"1 Space\""]},@@ -75,8 +75,8 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This Mac] — Desktop · 2 Spaces",- "● cua's Mac Studio — Desktop · 1 Space",+ "● Ada's MacBook Pro [This Mac] — Desktop and 2 Spaces",+ "● cua's Mac Studio — Desktop and 1 Space","○ Cua BYOC tests — Offline","○ Adas-MacBook-Pro-2.local — Not sharing"]@@ -103,7 +103,7 @@"pages": [["Ada's MacBook Pro — Online (rename: host)",- "Let my other devices use this Mac: on (runs: stop-sharing)",+ "Let other machines control this desktop: on (runs: hide-desktop)","desktop This Mac · macOS · This Mac [Desktop] -> this-mac","space space-cdf71481c4 · macOS 26.5.2 · Running -> local:space-cdf71481c4","space space-1cef393ac1 · Linux · Suspended -> local:space-1cef393ac1",@@ -113,8 +113,8 @@],["cua's Mac Studio — Online (rename: machine)",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop cua's Mac Studio · macOS 26.5.2 · Running [Desktop] -> relay:studio","space xm-before-linux · Ubuntu 24.04.5 LTS · Running -> relay:studio/xm",@@ -125,8 +125,8 @@["Cua BYOC tests — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:byoc (disabled: It’s offline.)","details: Last seen: 9 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -135,8 +135,8 @@["Adas-MacBook-Pro-2.local — Not sharing (rename: machine)","notice: Sharing is off on that Mac. Turn it on there to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces yet.","New Space here on host:b695 (disabled: It isn’t sharing.)","details: OS: macOS; Connection: via Cua relay; Service: Not sharing",@@ -144,19 +144,19 @@],["Ana's laptop — Online (rename: device)",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that PC.","spaces: No Spaces yet.",- "New Space here on host:dev_lap (disabled: It doesn’t provide Spaces. Turn on “Let my other devices use this PC” on that PC.)",+ "New Space here on host:dev_lap (disabled: It doesn’t let other machines create Spaces. Turn on “Let other machines create Spaces here” in Settings on that PC.)","details: OS: Windows","Remove from account -> dev_lap"],["mac-mini-staging — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:old1 (disabled: It’s offline.)","details: Last seen: 41 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -164,7 +164,7 @@],["build-mini-01 — Online · Shared by your team",- "Provide Spaces: on (read-only)",+ "Let other machines create Spaces here: on (read-only)","note: Its owner changes this on that Mac.","desktop build-mini-01 · macOS · Running [Desktop] -> relay:team","spaces: No other Spaces yet.",@@ -180,7 +180,7 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This Mac] — 1 Space running"+ "○ Ada's MacBook Pro [This Mac] — Not sharing"]},{@@ -194,8 +194,8 @@],"pages": [[- "Ada's MacBook Pro — Online (rename: host)",- "Let my other devices use this Mac: off (runs: resume-sharing)",+ "Ada's MacBook Pro — Not sharing (rename: host)",+ "Let other machines control this desktop: off (runs: resume-sharing)","space space-cdf71481c4 · macOS 26.5.2 · Running -> local:space-cdf71481c4","space space-1cef393ac1 · Linux · Suspended -> local:space-1cef393ac1","New Space here on local",@@ -205,8 +205,8 @@["Cua BYOC tests — Offline (rename: device)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:dev_byoc (disabled: It’s offline.)","details: Last seen: 9 days ago; OS: macOS",@@ -215,8 +215,8 @@["mac-mini-staging — Offline (rename: device)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:dev_old1 (disabled: It’s offline.)","details: Last seen: 41 days ago; OS: macOS",@@ -224,16 +224,16 @@],["Ana's laptop — Online (rename: device)",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that PC.","spaces: No Spaces yet.",- "New Space here on host:dev_lap (disabled: It doesn’t provide Spaces. Turn on “Let my other devices use this PC” on that PC.)",+ "New Space here on host:dev_lap (disabled: It doesn’t let other machines create Spaces. Turn on “Let other machines create Spaces here” in Settings on that PC.)","details: OS: Windows","Remove from account -> dev_lap"]],- "summary": "4 machines, 2 online",+ "summary": "4 machines, 1 online","view": "This Mac stopped sharing: both switches off, turning one on resumes"},{@@ -248,7 +248,7 @@"pages": [["Ada's MacBook Pro — Online",- "Let my other devices use this Mac: off (sets up: desktop)",+ "Let other machines control this desktop: off (sets up: desktop)","spaces: No Spaces yet.","New Space here on local","details: OS: macOS 26.5.2; App: 0.9.1; Connection: Not shared"@@ -262,8 +262,8 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This Mac] — Desktop · 2 Spaces [fail]",- "● cua's Mac Studio — Desktop · 1 Space [warn]",+ "● Ada's MacBook Pro [This Mac] — Desktop and 2 Spaces [fail]",+ "● cua's Mac Studio — Desktop and 1 Space [warn]","○ Cua BYOC tests — Offline","○ Adas-MacBook-Pro-2.local — Not sharing"]@@ -292,7 +292,7 @@"Ada's MacBook Pro — Online (rename: host)","issues fail: Cua can’t reach this Mac’s macOS Spaces: Local Network access is off for Cua Spaces. [Open Local Network settings]","issues warn: Only 21 GB free. A macOS Space needs about 30 GB. [Free disk space]",- "Let my other devices use this Mac: on (runs: stop-sharing)",+ "Let other machines control this desktop: on (runs: hide-desktop)","desktop This Mac · macOS · This Mac [Desktop] -> this-mac","space space-cdf71481c4 · macOS 26.5.2 · Running -> local:space-cdf71481c4","space space-1cef393ac1 · Linux · Suspended -> local:space-1cef393ac1",@@ -304,8 +304,8 @@"cua's Mac Studio — Online (rename: machine)","issues warn: Running Spaces use 28 of 32 GB of memory on that Mac, so another may not start.","issues warn: It runs Cua 0.3.9, older than this Mac’s 0.4.1. Update Cua on it.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop cua's Mac Studio · macOS 26.5.2 · Running [Desktop] -> relay:studio","space xm-before-linux · Ubuntu 24.04.5 LTS · Running -> relay:studio/xm",@@ -316,8 +316,8 @@["Cua BYOC tests — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:byoc (disabled: It’s offline.)","details: Last seen: 9 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -326,8 +326,8 @@["Adas-MacBook-Pro-2.local — Not sharing (rename: machine)","notice: Sharing is off on that Mac. Turn it on there to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces yet.","New Space here on host:b695 (disabled: It isn’t sharing.)","details: OS: macOS; Connection: via Cua relay; Service: Not sharing",@@ -335,19 +335,19 @@],["Ana's laptop — Online (rename: device)",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that PC.","spaces: No Spaces yet.",- "New Space here on host:dev_lap (disabled: It doesn’t provide Spaces. Turn on “Let my other devices use this PC” on that PC.)",+ "New Space here on host:dev_lap (disabled: It doesn’t let other machines create Spaces. Turn on “Let other machines create Spaces here” in Settings on that PC.)","details: OS: Windows","Remove from account -> dev_lap"],["mac-mini-staging — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:old1 (disabled: It’s offline.)","details: Last seen: 41 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -355,7 +355,7 @@],["build-mini-01 — Online · Shared by your team",- "Provide Spaces: on (read-only)",+ "Let other machines create Spaces here: on (read-only)","note: Its owner changes this on that Mac.","desktop build-mini-01 · macOS · Running [Desktop] -> relay:team","spaces: No other Spaces yet.",@@ -371,8 +371,8 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This Mac] — Desktop · 2 Spaces [fail]",- "● cua's Mac Studio — Desktop · 1 Space [warn]",+ "● Ada's MacBook Pro [This Mac] — Desktop and 2 Spaces [fail]",+ "● cua's Mac Studio — Desktop and 1 Space [warn]","○ Cua BYOC tests — Offline","○ Adas-MacBook-Pro-2.local — Not sharing"]@@ -401,7 +401,7 @@"Ada's MacBook Pro — Online (rename: host)","issues fail: Cua can’t reach this Mac’s macOS Spaces: Local Network access is off for Cua Spaces. [Open Local Network settings]","issues warn: Only 21 GB free. A macOS Space needs about 30 GB. [Free disk space]",- "Let my other devices use this Mac: on (runs: stop-sharing)",+ "Let other machines control this desktop: on (runs: hide-desktop)","desktop This Mac · macOS · This Mac [Desktop] -> this-mac","space space-cdf71481c4 · macOS 26.5.2 · Running -> local:space-cdf71481c4","space space-1cef393ac1 · Linux · Suspended -> local:space-1cef393ac1",@@ -413,8 +413,8 @@"cua's Mac Studio — Online (rename: machine)","issues warn: Running Spaces use 28 of 32 GB of memory on that Mac, so another may not start.","issues warn: It runs Cua 0.5.0, newer than this Mac’s 0.4.1. Cua Spaces 0.12.2 is ready to install. [Restart to update]",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop cua's Mac Studio · macOS 26.5.2 · Running [Desktop] -> relay:studio","space xm-before-linux · Ubuntu 24.04.5 LTS · Running -> relay:studio/xm",@@ -425,8 +425,8 @@["Cua BYOC tests — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:byoc (disabled: It’s offline.)","details: Last seen: 9 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -435,8 +435,8 @@["Adas-MacBook-Pro-2.local — Not sharing (rename: machine)","notice: Sharing is off on that Mac. Turn it on there to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces yet.","New Space here on host:b695 (disabled: It isn’t sharing.)","details: OS: macOS; Connection: via Cua relay; Service: Not sharing",@@ -444,19 +444,19 @@],["Ana's laptop — Online (rename: device)",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that PC.","spaces: No Spaces yet.",- "New Space here on host:dev_lap (disabled: It doesn’t provide Spaces. Turn on “Let my other devices use this PC” on that PC.)",+ "New Space here on host:dev_lap (disabled: It doesn’t let other machines create Spaces. Turn on “Let other machines create Spaces here” in Settings on that PC.)","details: OS: Windows","Remove from account -> dev_lap"],["mac-mini-staging — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:old1 (disabled: It’s offline.)","details: Last seen: 41 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -464,7 +464,7 @@],["build-mini-01 — Online · Shared by your team",- "Provide Spaces: on (read-only)",+ "Let other machines create Spaces here: on (read-only)","note: Its owner changes this on that Mac.","desktop build-mini-01 · macOS · Running [Desktop] -> relay:team","spaces: No other Spaces yet.",@@ -480,8 +480,8 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This Mac] — Desktop · 2 Spaces [fail]",- "● cua's Mac Studio — Desktop · 1 Space [warn]",+ "● Ada's MacBook Pro [This Mac] — Desktop and 2 Spaces [fail]",+ "● cua's Mac Studio — Desktop and 1 Space [warn]","○ Cua BYOC tests — Offline","○ Adas-MacBook-Pro-2.local — Not sharing"]@@ -510,7 +510,7 @@"Ada's MacBook Pro — Online (rename: host)","issues fail: Cua can’t reach this Mac’s macOS Spaces: Local Network access is off for Cua Spaces. [Open Local Network settings]","issues warn: Only 21 GB free. A macOS Space needs about 30 GB. [Free disk space]",- "Let my other devices use this Mac: on (runs: stop-sharing)",+ "Let other machines control this desktop: on (runs: hide-desktop)","desktop This Mac · macOS · This Mac [Desktop] -> this-mac","space space-cdf71481c4 · macOS 26.5.2 · Running -> local:space-cdf71481c4","space space-1cef393ac1 · Linux · Suspended -> local:space-1cef393ac1",@@ -522,8 +522,8 @@"cua's Mac Studio — Online (rename: machine)","issues warn: Running Spaces use 28 of 32 GB of memory on that Mac, so another may not start.","issues info: It runs Cua 0.5.0, newer than this Mac’s 0.4.1. Cua Spaces will update this Mac in its next release; there is nothing to install yet.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop cua's Mac Studio · macOS 26.5.2 · Running [Desktop] -> relay:studio","space xm-before-linux · Ubuntu 24.04.5 LTS · Running -> relay:studio/xm",@@ -534,8 +534,8 @@["Cua BYOC tests — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:byoc (disabled: It’s offline.)","details: Last seen: 9 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -544,8 +544,8 @@["Adas-MacBook-Pro-2.local — Not sharing (rename: machine)","notice: Sharing is off on that Mac. Turn it on there to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces yet.","New Space here on host:b695 (disabled: It isn’t sharing.)","details: OS: macOS; Connection: via Cua relay; Service: Not sharing",@@ -553,19 +553,19 @@],["Ana's laptop — Online (rename: device)",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that PC.","spaces: No Spaces yet.",- "New Space here on host:dev_lap (disabled: It doesn’t provide Spaces. Turn on “Let my other devices use this PC” on that PC.)",+ "New Space here on host:dev_lap (disabled: It doesn’t let other machines create Spaces. Turn on “Let other machines create Spaces here” in Settings on that PC.)","details: OS: Windows","Remove from account -> dev_lap"],["mac-mini-staging — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:old1 (disabled: It’s offline.)","details: Last seen: 41 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -573,7 +573,7 @@],["build-mini-01 — Online · Shared by your team",- "Provide Spaces: on (read-only)",+ "Let other machines create Spaces here: on (read-only)","note: Its owner changes this on that Mac.","desktop build-mini-01 · macOS · Running [Desktop] -> relay:team","spaces: No other Spaces yet.",@@ -636,8 +636,8 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This Mac] — Desktop · 2 Spaces [fail]",- "● cua's Mac Studio — Desktop · 1 Space [warn]",+ "● Ada's MacBook Pro [This Mac] — Desktop and 2 Spaces [fail]",+ "● cua's Mac Studio — Desktop and 1 Space [warn]","○ Cua BYOC tests — Offline","○ Adas-MacBook-Pro-2.local — Not sharing"]@@ -666,7 +666,7 @@"Ada's MacBook Pro — Online (rename: host)","issues fail: Cua can’t reach this Mac’s macOS Spaces: Local Network access is off for Cua Spaces. [Open Local Network settings]","issues warn: Only 21 GB free. A macOS Space needs about 30 GB. [Free disk space]",- "Let my other devices use this Mac: on (runs: stop-sharing)",+ "Let other machines control this desktop: on (runs: hide-desktop)","desktop This Mac · macOS · This Mac [Desktop] -> this-mac","space space-cdf71481c4 · macOS 26.5.2 · Running -> local:space-cdf71481c4","space space-1cef393ac1 · Linux · Suspended -> local:space-1cef393ac1",@@ -678,8 +678,8 @@"cua's Mac Studio — Online (rename: machine)","issues warn: Running Spaces use 28 of 32 GB of memory on that Mac, so another may not start.","issues info: It runs Cua 0.5.0, newer than this Mac’s 0.4.1. Cua Spaces will update this Mac in its next release; there is nothing to install yet.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop cua's Mac Studio · macOS 26.5.2 · Running [Desktop] -> relay:studio","space xm-before-linux · Ubuntu 24.04.5 LTS · Running -> relay:studio/xm",@@ -690,8 +690,8 @@["Cua BYOC tests — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:byoc (disabled: It’s offline.)","details: Last seen: 9 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -700,8 +700,8 @@["Adas-MacBook-Pro-2.local — Not sharing (rename: machine)","notice: Sharing is off on that Mac. Turn it on there to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces yet.","New Space here on host:b695 (disabled: It isn’t sharing.)","details: OS: macOS; Connection: via Cua relay; Service: Not sharing",@@ -709,19 +709,19 @@],["Ana's laptop — Online (rename: device)",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that PC.","spaces: No Spaces yet.",- "New Space here on host:dev_lap (disabled: It doesn’t provide Spaces. Turn on “Let my other devices use this PC” on that PC.)",+ "New Space here on host:dev_lap (disabled: It doesn’t let other machines create Spaces. Turn on “Let other machines create Spaces here” in Settings on that PC.)","details: OS: Windows","Remove from account -> dev_lap"],["mac-mini-staging — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:old1 (disabled: It’s offline.)","details: Last seen: 41 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -729,7 +729,7 @@],["build-mini-01 — Online · Shared by your team",- "Provide Spaces: on (read-only)",+ "Let other machines create Spaces here: on (read-only)","note: Its owner changes this on that Mac.","desktop build-mini-01 · macOS · Running [Desktop] -> relay:team","spaces: No other Spaces yet.",@@ -766,7 +766,7 @@"Hetzner — Disconnected","issue fail: Hetzner was disconnected on another device, and 1 server this computer made may still run there. Reconnect, then delete it. [Reconnect…]","Last seen running: rl-box",- "token: Sealed to your devices; Can open it This Mac and Mac mini",+ "token: Sealed to your machines; Can open it This Mac and Mac mini","Location: fsn1 (Falkenstein)","Monthly budget: $50","Largest machine: 4 vCPU, 8 GB",@@ -793,8 +793,8 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This Mac] — Desktop · 2 Spaces [fail]",- "● cua's Mac Studio — Desktop · 1 Space [warn]",+ "● Ada's MacBook Pro [This Mac] — Desktop and 2 Spaces [fail]",+ "● cua's Mac Studio — Desktop and 1 Space [warn]","○ Cua BYOC tests — Offline","○ Adas-MacBook-Pro-2.local — Not sharing"]@@ -823,7 +823,7 @@"Ada's MacBook Pro — Online (rename: host)","issues fail: Cua can’t reach this Mac’s macOS Spaces: Local Network access is off for Cua Spaces. [Open Local Network settings]","issues warn: Only 21 GB free. A macOS Space needs about 30 GB. [Free disk space]",- "Let my other devices use this Mac: on (runs: stop-sharing)",+ "Let other machines control this desktop: on (runs: hide-desktop)","desktop This Mac · macOS · This Mac [Desktop] -> this-mac","space space-cdf71481c4 · macOS 26.5.2 · Running -> local:space-cdf71481c4","space space-1cef393ac1 · Linux · Suspended -> local:space-1cef393ac1",@@ -835,8 +835,8 @@"cua's Mac Studio — Online (rename: machine)","issues warn: Running Spaces use 28 of 32 GB of memory on that Mac, so another may not start.","issues info: It runs Cua 0.5.0, newer than this Mac’s 0.4.1. Cua Spaces will update this Mac in its next release; there is nothing to install yet.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop cua's Mac Studio · macOS 26.5.2 · Running [Desktop] -> relay:studio","space xm-before-linux · Ubuntu 24.04.5 LTS · Running -> relay:studio/xm",@@ -847,8 +847,8 @@["Cua BYOC tests — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:byoc (disabled: It’s offline.)","details: Last seen: 9 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -857,8 +857,8 @@["Adas-MacBook-Pro-2.local — Not sharing (rename: machine)","notice: Sharing is off on that Mac. Turn it on there to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces yet.","New Space here on host:b695 (disabled: It isn’t sharing.)","details: OS: macOS; Connection: via Cua relay; Service: Not sharing",@@ -866,19 +866,19 @@],["Ana's laptop — Online (rename: device)",- "Provide Spaces: off (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that PC.","spaces: No Spaces yet.",- "New Space here on host:dev_lap (disabled: It doesn’t provide Spaces. Turn on “Let my other devices use this PC” on that PC.)",+ "New Space here on host:dev_lap (disabled: It doesn’t let other machines create Spaces. Turn on “Let other machines create Spaces here” in Settings on that PC.)","details: OS: Windows","Remove from account -> dev_lap"],["mac-mini-staging — Offline (rename: machine)","notice: This machine is offline. Open Cua Spaces on it to use it.",- "Provide Spaces: off (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: off (read-only)",+ "Let other machines control this desktop: on (read-only)","spaces: No Spaces. The machine is offline.","New Space here on host:old1 (disabled: It’s offline.)","details: Last seen: 41 days ago; OS: macOS; Connection: via Cua relay; Service: Not reachable",@@ -886,7 +886,7 @@],["build-mini-01 — Online · Shared by your team",- "Provide Spaces: on (read-only)",+ "Let other machines create Spaces here: on (read-only)","note: Its owner changes this on that Mac.","desktop build-mini-01 · macOS · Running [Desktop] -> relay:team","spaces: No other Spaces yet.",@@ -902,9 +902,9 @@{"group": "Your machines","rows": [- "● Ada's MacBook Pro [This computer] — No Spaces",+ "● Ada's MacBook Pro [This machine] — No Spaces","● solo — Desktop shared",- "● both — Desktop · 2 Spaces",+ "● both — Desktop and 2 Spaces","● spaces — 1 Space running"]}@@ -912,15 +912,15 @@"pages": [["Ada's MacBook Pro — Online",- "Let my other devices use this computer: off (disabled)",+ "Let other machines control this desktop: off (disabled)","spaces: No Spaces yet.","New Space here on local","details: OS: macOS 26.5.2; App: 0.9.1"],["solo — Online (rename: machine)",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop solo · macOS · Running [Desktop] -> relay:solo","spaces: No other Spaces yet.",@@ -930,8 +930,8 @@],["both — Online (rename: machine)",- "Provide Spaces: on (read-only)",- "Share this desktop: on (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: on (read-only)","note: Change this on that Mac.","desktop both · macOS · Running [Desktop] -> relay:both","space one · Linux · Running -> relay:both/space-1",@@ -942,8 +942,8 @@],["spaces — Online (rename: machine)",- "Provide Spaces: on (read-only)",- "Share this desktop: off (read-only)",+ "Let other machines create Spaces here: on (read-only)",+ "Let other machines control this desktop: off (read-only)","note: Change this on that Mac.","space box · Linux · Running -> relay:spaces/space-1","New Space here on host:spaces",diff --git a/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.json b/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.jsonindex 644d80961c..6b06e8bf2d 100644--- a/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.json+++ b/libs/cua/crates/cua-spaces-app-core/parity/golden/main-window.json@@ -11,7 +11,7 @@"openSettings": "Open Settings","permissions": [],"summary": "Checking…",- "title": "This computer"+ "title": "This machine"},"sidebar": {"emptyText": null,@@ -26,7 +26,7 @@"<os-linux> their-box @ Google Cloud · us-central1 | spaces.status.suspended | Unreachable · offline (dim)"],"selectedId": "direct:10.0.0.5:3211",- "thisMachine": "<os-macos> This computer | spaces.status.this_mac | Set up for access"+ "thisMachine": "<os-macos> This Mac | spaces.status.this_mac | Set up for access"}},{@@ -40,8 +40,8 @@"facts": [],"openSettings": "Open Settings","permissions": [],- "summary": "Your other devices can’t reach this computer yet.",- "title": "This computer"+ "summary": "Your other machines can’t reach this machine yet.",+ "title": "This machine"},"sidebar": {"emptyText": null,@@ -56,7 +56,7 @@"<os-linux> their-box @ Google Cloud · us-central1 | spaces.status.suspended | Unreachable · offline (dim)"],"selectedId": "direct:10.0.0.5:3211",- "thisMachine": "<os-macos> This computer | spaces.status.this_mac | Set up for access"+ "thisMachine": "<os-macos> This Mac | spaces.status.this_mac | Set up for access"}},{@@ -79,7 +79,7 @@"screen-recording: Screen Recording ?Turn on Cua Spaces <x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture>"],"summary": "Sharing · 2 connected",- "title": "This computer"+ "title": "This machine"},"sidebar": {"emptyText": null,@@ -94,7 +94,7 @@"<os-linux> their-box @ Google Cloud · us-central1 | spaces.status.suspended | Unreachable · offline (dim)"],"selectedId": "direct:10.0.0.5:3211",- "thisMachine": "<os-macos> This computer | spaces.status.this_mac | Sharing · 2 connected"+ "thisMachine": "<os-macos> This Mac | spaces.status.this_mac | Sharing · 2 connected"}},{@@ -107,14 +107,14 @@"clients": "Connected now: Nobody","configured": true,"facts": [- "Name: This computer",+ "Name: This machine","Access: Direct at http://10.0.0.9:3211","Service: launchd · stopped"],"openSettings": "Open Settings","permissions": [],- "summary": "Host service stopped",- "title": "This computer"+ "summary": "Not sharing",+ "title": "This machine"},"sidebar": {"emptyText": null,@@ -129,7 +129,7 @@"<os-linux> their-box @ Google Cloud · us-central1 | spaces.status.suspended | Unreachable · offline (dim)"],"selectedId": "direct:10.0.0.5:3211",- "thisMachine": "<os-macos> This computer | spaces.status.this_mac | Host service stopped"+ "thisMachine": "<os-macos> This Mac | spaces.status.this_mac | Not sharing"}},{@@ -176,16 +176,16 @@"frame": {"actions": [],"canStream": false,- "confirm": "Delete This computer? | Everything inside it, including its files, is deleted and can't be recovered. | Delete Space / Keep",+ "confirm": "Delete This Mac? | Everything inside it, including its files, is deleted and can't be recovered. | Delete Space / Keep","facts": ["Status: This Mac","Identifier: this-mac [copy this-mac doc.on.doc Copy / checkmark Copied 1500ms]","System: macOS"],"isHost": true,- "previewText": "This is this Mac’s own screen, so it isn’t shown here. Your other devices see and control it while you let them use it.",+ "previewText": "This is this Mac’s own screen, so it isn’t shown here. Your other machines see and control it while you let them use it.","sections": [],- "title": "This computer"+ "title": "This Mac"}},{@@ -227,7 +227,7 @@"open: Open [-] ?Open the desktop in its own window (disabled) (primary)"],"canStream": false,- "confirm": "Delete their-box? | It runs in Google Cloud · us-central1 and was created on another device. Remove from List keeps it running there. | Delete Permanently (disabled: Created on another device: delete it there, or remove it from this list.) / Remove from List / Cancel",+ "confirm": "Delete their-box? | It runs in Google Cloud · us-central1 and was created on another machine. Remove from List keeps it running there. | Delete Permanently (disabled: Created on another machine: delete it there, or remove it from this list.) / Remove from List / Cancel","facts": ["Status: Unreachable ?offline","Location: Google Cloud · us-central1",@@ -316,13 +316,13 @@"canSubmit": true,"error": null,"fields": [- "name: Name [How it shows on your other devices] = ",+ "name: Name [How it shows on your other machines] = ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = "],- "lede": "You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup. Signed in as [email protected].",+ "lede": "You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup. Signed in as [email protected].","request": "mode=relay relay=- direct=- name=- allow=-",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "initial"},@@ -334,13 +334,13 @@"canSubmit": true,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = "],- "lede": "You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup. Signed in as [email protected].",+ "lede": "You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup. Signed in as [email protected].","request": "mode=relay relay=- direct=- name=Studio allow=-",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-name"},@@ -352,13 +352,13 @@"canSubmit": true,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = [email protected], [email protected]"],- "lede": "You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup. Signed in as [email protected].",+ "lede": "You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup. Signed in as [email protected].","request": "mode=relay relay=- direct=- name=Studio [email protected],[email protected]",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-allow"},@@ -370,15 +370,15 @@"canSubmit": false,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = [email protected], [email protected]","direct: Direct connection = off (advanced)","relay: Relay server [https://relay.example.com] = (advanced)"],- "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup.",+ "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup.","request": null,- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "toggle-advanced"},@@ -390,15 +390,15 @@"canSubmit": false,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = [email protected], [email protected]","direct: Direct connection = off (advanced)","relay: Relay server [https://relay.example.com] = ftp://relay !invalid (advanced)"],- "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup.",+ "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup.","request": null,- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-relay-url"},@@ -410,15 +410,15 @@"canSubmit": true,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = [email protected], [email protected]","direct: Direct connection = off (advanced)","relay: Relay server [https://relay.example.com] = https://relay.example/ (advanced)"],- "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup.",+ "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup.","request": "mode=relay relay=https://relay.example direct=- name=Studio [email protected],[email protected]",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-relay-url"},@@ -430,13 +430,13 @@"canSubmit": true,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","direct: Direct connection = on (advanced)","listen: Listen on [0.0.0.0:3211] = 0.0.0.0:3211 (advanced)"],- "lede": "Other computers on your network connect to this address with an access token.",+ "lede": "Other machines on your network connect to this address with an access token.","request": "mode=direct relay=- direct=0.0.0.0:3211 name=Studio allow=-",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-direct"},@@ -448,13 +448,13 @@"canSubmit": false,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","direct: Direct connection = on (advanced)","listen: Listen on [0.0.0.0:3211] = somewhere !invalid (advanced)"],- "lede": "Other computers on your network connect to this address with an access token.",+ "lede": "Other machines on your network connect to this address with an access token.","request": null,- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-listen"},@@ -466,13 +466,13 @@"canSubmit": true,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","direct: Direct connection = on (advanced)","listen: Listen on [0.0.0.0:3211] = 0.0.0.0:3300 (advanced)"],- "lede": "Other computers on your network connect to this address with an access token.",+ "lede": "Other machines on your network connect to this address with an access token.","request": "mode=direct relay=- direct=0.0.0.0:3300 name=Studio allow=-",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-listen"},@@ -484,13 +484,13 @@"canSubmit": false,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","direct: Direct connection = on (advanced)","listen: Listen on [0.0.0.0:3211] = 0.0.0.0:3300 (advanced)"],- "lede": "Other computers on your network connect to this address with an access token.",+ "lede": "Other machines on your network connect to this address with an access token.","request": "mode=direct relay=- direct=0.0.0.0:3300 name=Studio allow=-",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "submit"},@@ -502,13 +502,13 @@"canSubmit": true,"error": "launchctl bootstrap failed","fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","direct: Direct connection = on (advanced)","listen: Listen on [0.0.0.0:3211] = 0.0.0.0:3300 (advanced)"],- "lede": "Other computers on your network connect to this address with an access token.",+ "lede": "Other machines on your network connect to this address with an access token.","request": "mode=direct relay=- direct=0.0.0.0:3300 name=Studio allow=-",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "failed"},@@ -520,15 +520,15 @@"canSubmit": true,"error": "launchctl bootstrap failed","fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = [email protected], [email protected]","direct: Direct connection = off (advanced)","relay: Relay server [https://relay.example.com] = https://relay.example/ (advanced)"],- "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup.",+ "lede": "For self-hosting teams: joins your own relay at the address below. You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup.","request": "mode=relay relay=https://relay.example direct=- name=Studio [email protected],[email protected]",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "set-direct"},@@ -540,13 +540,13 @@"canSubmit": true,"error": "launchctl bootstrap failed","fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = [email protected], [email protected]"],- "lede": "You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup. Signed in as [email protected].",+ "lede": "You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup. Signed in as [email protected].","request": "mode=relay relay=https://relay.example direct=- name=Studio [email protected],[email protected]",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "toggle-advanced"},@@ -558,13 +558,13 @@"canSubmit": false,"error": null,"fields": [- "name: Name [How it shows on your other devices] = Studio ",+ "name: Name [How it shows on your other machines] = Studio ","profile: Use it to [-] = desktop","allow: Share with (optional) [Teammates’ emails] = [email protected], [email protected]"],- "lede": "You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup. Signed in as [email protected].",+ "lede": "You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup. Signed in as [email protected].","request": "mode=relay relay=https://relay.example direct=- name=Studio [email protected],[email protected]",- "title": "Set up this computer"+ "title": "Set up this machine"},"hostForm": "submit"},@@ -772,7 +772,7 @@"canBack": false,"canSkip": false,"choices": [],- "dots": "*Welcome,Sign in,AI agents,Menu bar,This computer,Done",+ "dots": "*Welcome,Sign in,AI agents,Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "Computers for you and your AI agents. Setup takes about a minute.",@@ -795,7 +795,7 @@"canBack": false,"canSkip": false,"choices": [],- "dots": "*Welcome,Sign in,AI agents,Menu bar,This computer,Done",+ "dots": "*Welcome,Sign in,AI agents,Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "Computers for you and your AI agents. Setup takes about a minute.",@@ -818,10 +818,10 @@"canBack": true,"canSkip": true,"choices": [],- "dots": "Welcome,*Sign in,AI agents,Menu bar,This computer,Done",+ "dots": "Welcome,*Sign in,AI agents,Menu bar,This machine,Done","drive": null,"driveStorage": null,- "lede": "Sign in to reach your computers and Spaces from any of your devices. You can skip this and sign in later.",+ "lede": "Sign in to reach your machines and Spaces from any of your machines. You can skip this and sign in later.","notice": null,"noticeLink": null,"presentations": [],@@ -841,10 +841,10 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,*Sign in,AI agents,Menu bar,This computer,Done",+ "dots": "Welcome,*Sign in,AI agents,Menu bar,This machine,Done","drive": null,"driveStorage": null,- "lede": "Sign in to reach your computers and Spaces from any of your devices. You can skip this and sign in later.",+ "lede": "Sign in to reach your machines and Spaces from any of your machines. You can skip this and sign in later.","notice": null,"noticeLink": null,"presentations": [],@@ -864,7 +864,7 @@"canBack": true,"canSkip": true,"choices": [],- "dots": "Welcome,Sign in,*AI agents,Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,*AI agents,Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "Give your coding agents the cua skills and MCP server.",@@ -887,7 +887,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -913,7 +913,7 @@"canBack": true,"canSkip": true,"choices": [],- "dots": "Welcome,Sign in,*AI agents,Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,*AI agents,Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "Give your coding agents the cua skills and MCP server.",@@ -936,7 +936,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -962,7 +962,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -988,7 +988,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -1014,7 +1014,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -1040,13 +1040,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers",- "host: Let my other devices reach this Mac (preselected)"+ "client: Just use this Mac to open my other machines",+ "host: Let my other machines reach this Mac (preselected)"],- "dots": "Welcome,Sign in,AI agents,Menu bar,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -1066,7 +1066,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,*Menu bar,This computer,Done",+ "dots": "Welcome,Sign in,AI agents,*Menu bar,This machine,Done","drive": null,"driveStorage": null,"lede": "You can change this in Settings.",@@ -1092,13 +1092,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers",- "host: Let my other devices reach this Mac (preselected)"+ "client: Just use this Mac to open my other machines",+ "host: Let my other machines reach this Mac (preselected)"],- "dots": "Welcome,Sign in,AI agents,Menu bar,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -1118,13 +1118,13 @@"canBack": true,"canSkip": false,"choices": [- "client: Just use this Mac to open my other computers",- "host: Let my other devices reach this Mac (preselected)"+ "client: Just use this Mac to open my other machines",+ "host: Let my other machines reach this Mac (preselected)"],- "dots": "Welcome,Sign in,AI agents,Menu bar,*This computer,Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,*This machine,Done","drive": null,"driveStorage": null,- "lede": "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "lede": "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","notice": null,"noticeLink": null,"presentations": [],@@ -1144,7 +1144,7 @@"canBack": true,"canSkip": false,"choices": [],- "dots": "Welcome,Sign in,AI agents,Menu bar,This computer,*Done",+ "dots": "Welcome,Sign in,AI agents,Menu bar,This machine,*Done","drive": null,"driveStorage": null,"launchAtLogin": "[x] Launch at login ~Keeps your Spaces and agents available after a restart.",@@ -1162,14 +1162,14 @@"step": "done","summary": ["Shows in: Menu bar only",- "This computer: Your other devices can reach it"+ "This machine: Your other machines can reach it"],"title": "You're all set","todos": ["[x] Cua CLI ~Command-line tools for you and your agents.","[x] Account ~Signed in as [email protected].","[x] AI agents ~Codex, Pi can use Cua.",- "[ ] Cua Volume ~Shared folder: files your agents can share across your computers. -> Turn on (optional)"+ "[ ] Cua Volume ~Shared folder: files your agents can share across your machines. -> Turn on (optional)"],"usage": null},diff --git a/libs/cua/crates/cua-spaces-app-core/src/agent_keys.rs b/libs/cua/crates/cua-spaces-app-core/src/agent_keys.rsindex 401f4ef389..732ef3cdb0 100644--- a/libs/cua/crates/cua-spaces-app-core/src/agent_keys.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/agent_keys.rs@@ -548,11 +548,11 @@ mod tests {// Linux: cua has no vault there (the file store never holds agent keys), so no store is named.assert_eq!(view_on(&AgentKeysInput::default(), SpaceOs::Linux).intro,- "Agents in your Spaces need a provider key to run. Keys stay on this computer, and each one is only given to the agents that use it."+ "Agents in your Spaces need a provider key to run. Keys stay on this machine, and each one is only given to the agents that use it.");assert_eq!(sheet(SpaceOs::Linux).value_help,- "It's saved on this computer and won't be shown again."+ "It's saved on this machine and won't be shown again.");// Nothing of another system's words is left, in any sheet or section.diff --git a/libs/cua/crates/cua-spaces-app-core/src/checklist.rs b/libs/cua/crates/cua-spaces-app-core/src/checklist.rsindex 532d06e479..0e74c1ede5 100644--- a/libs/cua/crates/cua-spaces-app-core/src/checklist.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/checklist.rs@@ -64,13 +64,13 @@ impl ChecklistStep {fn copy(self) -> (&'static str, &'static str, &'static str) {match self {ChecklistStep::AddMachine => (- "Add a computer",- "Connect a Mac, Linux or Windows computer you own.",- "Add computer",+ "Add a machine",+ "Connect a Mac, Linux or Windows machine you own.",+ "Add machine",),ChecklistStep::CreateSpace => ("Create a Space",- "A computer for one task, on one of your computers.",+ "A computer for one task, on one of your machines.","Create",),ChecklistStep::Teleport => (@@ -556,7 +556,7 @@ mod tests {assert_eq!(rows,[- ("Add a computer", "Add computer", false),+ ("Add a machine", "Add machine", false),("Create a Space", "Create", false),("Teleport an app", "Teleport", true),("Share a Space", "Share", false),diff --git a/libs/cua/crates/cua-spaces-app-core/src/cloud_page.rs b/libs/cua/crates/cua-spaces-app-core/src/cloud_page.rsindex 9cf7bedf20..0f64c3d63f 100644--- a/libs/cua/crates/cua-spaces-app-core/src/cloud_page.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/cloud_page.rs@@ -819,7 +819,7 @@ fn page(c: &CloudInput, input: &CloudsInput) -> CloudPage {id: "budget".into(),level: "warn".into(),text: format!(- "This month's {} budget is used. New Spaces go to your computers, or wait until {}.",+ "This month's {} budget is used. New Spaces go to your machines, or wait until {}.",money(c.budget_cents.unwrap_or(0)),resets_on(input.now)),@@ -1001,7 +1001,7 @@ fn page(c: &CloudInput, input: &CloudsInput) -> CloudPage {lock: if state == State::TokenRefused {format!("Refused by {name}")} else {- "Sealed to your devices".into()+ "Sealed to your machines".into()},note: "Only your own devices can open it. Cua's servers keep a sealed copy they can't read. Agents use it through Cua; they never see it.".into(),holders_label: if c.holders.is_empty() { String::new() } else { "Can open it".into() },diff --git a/libs/cua/crates/cua-spaces-app-core/src/devices.rs b/libs/cua/crates/cua-spaces-app-core/src/devices.rsindex 54ec8087bf..5e3c2f74c3 100644--- a/libs/cua/crates/cua-spaces-app-core/src/devices.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/devices.rs@@ -467,7 +467,7 @@ pub fn labels() -> DevicesLabels {rename_title: "Rename Device".into(),rename_confirm: "Rename".into(),cancel: "Cancel".into(),- signed_out: "Sign in to Cua to see the devices that can reach your computers.".into(),+ signed_out: "Sign in to Cua to see the devices that can reach your machines.".into(),new_machines: "New Computers".into(),confirm_machine: "Confirm".into(),}@@ -504,11 +504,11 @@ fn revoke_confirm(name: &str, this: bool) -> DeviceConfirm {DeviceConfirm {title: format!("Revoke \u{201c}{name}\u{201d}?"),message: if this {- "This device will no longer list or reach your computers until you enroll it again."+ "This device will no longer list or reach your machines until you enroll it again.".into()} else {format!(- "{name} will no longer list or reach your computers. To use it again, enroll it again."+ "{name} will no longer list or reach your machines. To use it again, enroll it again.")},confirm_label: "Revoke".into(),@@ -578,7 +578,7 @@ pub fn devices_view(input: &DevicesInput, now: u64) -> DevicesView {)),Some(("revoked", _)) => Some(enroll(BannerTone::Critical,- "This device was revoked. Enroll it again to reach your computers.".into(),+ "This device was revoked. Enroll it again to reach your machines.".into(),)),// Signing in again enrolls it at once: the banner offers that// before the code.@@ -598,10 +598,10 @@ pub fn devices_view(input: &DevicesInput, now: u64) -> DevicesView {},match input.enforce_after {Some(t) if t > now => format!(- "Enroll this device within {} to keep reaching your computers.",+ "Enroll this device within {} to keep reaching your machines.",days(t - now)),- _ => "Enroll this device to reach your computers.".into(),+ _ => "Enroll this device to reach your machines.".into(),},)),};@@ -680,7 +680,7 @@ pub fn devices_view(input: &DevicesInput, now: u64) -> DevicesView {format!("Re-verify \u{201c}{name}\u{201d} for another 30 days?")} else {format!(- "Let \u{201c}{name}\u{201d} list and open your computers? Only approve a device you just signed in on."+ "Let \u{201c}{name}\u{201d} list and open your machines? Only approve a device you just signed in on.")},requires_presence: true,@@ -690,9 +690,9 @@ pub fn devices_view(input: &DevicesInput, now: u64) -> DevicesView {format!("Approve \u{201c}{name}\u{201d}?")},notify_body: if expired {- "It needs one approval to keep reaching your computers.".into()+ "It needs one approval to keep reaching your machines.".into()} else {- "A device signed in to your Cua account and asks to reach your computers."+ "A device signed in to your Cua account and asks to reach your machines.".into()},name,@@ -795,7 +795,7 @@ pub fn machine_access_notice(EnrollmentKind::Enrolled | EnrollmentKind::Grace => None,EnrollmentKind::NeedsEnrollment => Some(notice("Not enrolled",- "Enroll this Mac to connect to your other computers.".into(),+ "Enroll this Mac to connect to your other machines.".into(),ENROLL_THIS_MAC_LABEL,)),EnrollmentKind::Waiting => Some(notice(@@ -810,12 +810,12 @@ pub fn machine_access_notice()),EnrollmentKind::Due => Some(notice("Re-verification due",- "This Mac\u{2019}s access expired. Re-verify it to connect to your other computers.".into(),+ "This Mac\u{2019}s access expired. Re-verify it to connect to your other machines.".into(),REVERIFY_THIS_MAC_LABEL,)),EnrollmentKind::Revoked => Some(notice("Revoked",- "This Mac was revoked. Enroll it again to connect to your other computers.".into(),+ "This Mac was revoked. Enroll it again to connect to your other machines.".into(),ENROLL_THIS_MAC_LABEL,)),}@@ -1016,7 +1016,7 @@ pub fn enroll_view(state: &EnrollState) -> EnrollView {};EnrollView {title: "Enroll This Device".into(),- lede: "Your computers can be reached only from enrolled devices.".into(),+ lede: "Your machines can be reached only from enrolled devices.".into(),options,code: state.code.clone(),code_help: state.code.as_ref().map(|code| {@@ -1240,16 +1240,14 @@ pub fn approve_view(state: &ApproveSheetState, devices: &[DeviceInput]) -> Approformat!("Approve \u{201c}{name}\u{201d}?")},message: if state.expired {- format!(- "{name} needs one approval to keep reaching your computers for another 30 days."- )+ format!("{name} needs one approval to keep reaching your machines for another 30 days.")} else if fallback.is_some() {format!("The code expired. Approve \u{201c}{name}\u{201d} by ID instead? Only approve a device you just signed in on.")} else {format!(- "Enter the code {name} shows to let it list and open your computers. Only approve a device you just signed in on."+ "Enter the code {name} shows to let it list and open your machines. Only approve a device you just signed in on.")},needs_code: !state.expired,@@ -1323,7 +1321,7 @@ mod tests {assert_eq!(b.tone, BannerTone::Warning);assert_eq!(b.text,- "Enroll this device within 5 days to keep reaching your computers."+ "Enroll this device within 5 days to keep reaching your machines.");assert_eq!(b.action, Some(DeviceAction::Enroll));assert!(!v.enrolled);diff --git a/libs/cua/crates/cua-spaces-app-core/src/diagnostics.rs b/libs/cua/crates/cua-spaces-app-core/src/diagnostics.rsindex 263781a8ce..bbffc6678d 100644--- a/libs/cua/crates/cua-spaces-app-core/src/diagnostics.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/diagnostics.rs@@ -94,7 +94,7 @@ fn word(s: &str) -> &str {"windows" => "Windows","macos" => "macOS","local" => "this computer",- "relay" => "another of my computers",+ "relay" => "another of my machines","container" => "container","vm" => "VM",_ => s,diff --git a/libs/cua/crates/cua-spaces-app-core/src/dispatch.rs b/libs/cua/crates/cua-spaces-app-core/src/dispatch.rsindex 0c927032a8..b77889b337 100644--- a/libs/cua/crates/cua-spaces-app-core/src/dispatch.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/dispatch.rs@@ -1724,7 +1724,7 @@ mod tests {.contains("on this PC in Windows Credential Manager,"));let linux = intro(json!({ "input": input, "hostOs": "linux" }));- assert!(linux.contains("on this computer,") && !linux.contains("Keychain"));+ assert!(linux.contains("on this machine,") && !linux.contains("Keychain"));let help = |os: Value| {call_value("agentKeys.form",@@ -1742,7 +1742,7 @@ mod tests {assert!(help(json!("windows")).contains("in Windows Credential Manager on this PC"));assert_eq!(help(json!("linux")),- "It's saved on this computer and won't be shown again."+ "It's saved on this machine and won't be shown again.");}diff --git a/libs/cua/crates/cua-spaces-app-core/src/drive_settings.rs b/libs/cua/crates/cua-spaces-app-core/src/drive_settings.rsindex 30df111b21..8967c88a24 100644--- a/libs/cua/crates/cua-spaces-app-core/src/drive_settings.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/drive_settings.rs@@ -1142,7 +1142,7 @@ mod tests {cache: None,};let v = storage_section(&linux, &storage_initial());- assert_eq!(v.rows[0].options[0].label, "This computer");+ assert_eq!(v.rows[0].options[0].label, "This machine");let t = texts(&v);assert!(t.contains(&"Mounted at".to_string()), "{t:?}");assert!(t.contains(&"~/Cua Volume".to_string()), "{t:?}");diff --git a/libs/cua/crates/cua-spaces-app-core/src/first_run.rs b/libs/cua/crates/cua-spaces-app-core/src/first_run.rsindex d7cad66893..c90af44de2 100644--- a/libs/cua/crates/cua-spaces-app-core/src/first_run.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/first_run.rs@@ -62,9 +62,9 @@ pub const OFFERED: [&str; 5] = PREFERENCE;const AGENT_KEYS: [(&str, &str); 2] = [("claude-code", "anthropic"), ("codex", "openai")];/// Home's to-do request: it works on this computer with nothing else set up.-pub const FIRST_PROMPT: &str = "List my computers and tell me what's on this Mac";-const FIRST_PROMPT_OTHER: &str = "List my computers and tell me what's on this computer";-const FIRST_PROMPT_PC: &str = "List my computers and tell me what's on this PC";+pub const FIRST_PROMPT: &str = "List my machines and tell me what's on this Mac";+const FIRST_PROMPT_OTHER: &str = "List my machines and tell me what's on this computer";+const FIRST_PROMPT_PC: &str = "List my machines and tell me what's on this PC";/// The try screen's request: the agent makes a Space on this computer.pub const TRY_PROMPT: &str = "Make a Linux Space on this Mac and show its desktop in a new window.";@@ -1062,7 +1062,7 @@ fn default_or(name: &str, id: &str) -> String {fn welcome_view(input: &FirstRunInput) -> WelcomeView {let place = this_computer(&input.host_os);WelcomeView {- title: "Your computers, shared by your team and its agents.".into(),+ title: "Your machines, shared by your team and its agents.".into(),lede: format!("Run agents in Spaces on {place}, or on any computer your team connects."),primary: button("start", "Get started"),}@@ -1217,7 +1217,7 @@ fn devices_view(input: &FirstRunInput) -> DevicesView {let place = this_computer(&input.host_os);let rows = vec![DeviceRow {- title: "Your other computers".into(),+ title: "Your other machines".into(),note: "Sign in with the same account".into(),},DeviceRow {@@ -1234,7 +1234,7 @@ fn devices_view(input: &FirstRunInput) -> DevicesView {} else {format!("Adding {place} to your account.")},- lede: "Sign in on your other computers to use its Spaces.".into(),+ lede: "Sign in on your other machines to use its Spaces.".into(),rows,status,primary: button("continue", "Continue"),@@ -1243,9 +1243,9 @@ fn devices_view(input: &FirstRunInput) -> DevicesView {};}DevicesView {- title: "Add your other computers.".into(),+ title: "Add your other machines.".into(),lede: format!(- "Sign in to Cua here and on your other computers. Then they can all use {place}'s Spaces."+ "Sign in to Cua here and on your other machines. Then they can all use {place}'s Spaces."),rows,status: account_row(input),@@ -1396,7 +1396,7 @@ fn computer_row(input: &FirstRunInput) -> CheckRow {return row(RowState::Fix,"Sign in to Cua".into(),- &format!("So your other computers can reach {place}."),+ &format!("So your other machines can reach {place}."),Some(button("sign-in", "Sign in")),);}@@ -1919,11 +1919,11 @@ pub fn todos(input: &FirstRunInput) -> FirstRunTodos {});items.push(FirstRunTodo {id: "sign-in".into(),- title: "Add your other computers (optional)".into(),+ title: "Add your other machines (optional)".into(),note: if input.signed_in {"Signed in to Cua.".into()} else {- format!("Sign in to use {place}'s Spaces from your other computers.")+ format!("Sign in to use {place}'s Spaces from your other machines.")},done: input.signed_in,optional: true,@@ -2092,7 +2092,7 @@ mod tests {let w = view(&input(FirstRunStep::Welcome, vec![])).welcome.unwrap();assert_eq!(w.title,- "Your computers, shared by your team and its agents."+ "Your machines, shared by your team and its agents.");assert_eq!(w.primary.id, "start");}@@ -2311,13 +2311,13 @@ mod tests {fn signing_in_is_optional_and_says_what_it_connects() {let mut i = input(FirstRunStep::Devices, vec![]);let d = view(&i).devices.unwrap();- assert_eq!(d.title, "Add your other computers.");+ assert_eq!(d.title, "Add your other machines.");assert_eq!(d.lede,- "Sign in to Cua here and on your other computers. Then they can all use this Mac's Spaces."+ "Sign in to Cua here and on your other machines. Then they can all use this Mac's Spaces.");let rows: Vec<&str> = d.rows.iter().map(|r| r.title.as_str()).collect();- assert_eq!(rows, ["Your other computers", "Your cloud"]);+ assert_eq!(rows, ["Your other machines", "Your cloud"]);assert_eq!((d.primary.id.as_str(), d.primary.label.as_str()),("sign-in", "Sign in")diff --git a/libs/cua/crates/cua-spaces-app-core/src/host.rs b/libs/cua/crates/cua-spaces-app-core/src/host.rsindex 8eddd09f14..b3edddead5 100644--- a/libs/cua/crates/cua-spaces-app-core/src/host.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/host.rs@@ -15,6 +15,8 @@ use serde::{Deserialize, Serialize};pub const THIS_MACHINE_ID: &str = "this-mac";/// The parts of the host status the summary reads (`cua-host`'s status).+/// The summary is about this machine's own desktop (its row in the Spaces+/// list), so `sharing` is on only while the desktop is shared.#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]#[serde(rename_all = "camelCase")]pub struct HostSummaryInput {@@ -51,12 +53,12 @@ pub fn host_summary(status: Option<&HostSummaryInput>) -> String {if s.paused_signed_out {return PAUSED_SUMMARY.into();}- if !s.service_running {- return "Host service stopped".into();- }if !s.sharing {return "Not sharing".into();}+ if !s.service_running {+ return "Host service stopped".into();+ }let via = if s.mode.as_deref() == Some("direct") {"Direct"} else {@@ -124,7 +126,7 @@ pub fn this_machine_status(status: Option<&HostSummaryInput>) -> SpaceStatus {pub fn this_machine_space(status: Option<&HostSummaryInput>, now: i64, os: SpaceOs) -> Space {Space {id: THIS_MACHINE_ID.into(),- name: "This computer".into(),+ name: os.this_machine().into(),os,status: this_machine_status(status),detail: host_summary(status),@@ -211,18 +213,17 @@ pub struct HostSetupRequest {/// Accounts (ids or emails) allowed besides the owner.#[serde(default)]pub allow: Option<Vec<String>>,- /// What the machine is for: `desktop` (share this desktop, and- /// provide Spaces on a new relay setup; the default) or `spare` (only- /// run Spaces for your other devices).+ /// What the machine is for: `spare` (the default: other machines+ /// create Spaces here, its desktop stays private) or `desktop` (also+ /// let other machines control this desktop).#[serde(default)]pub profile: Option<String>,/// Share this machine's own desktop (overrides the profile).#[serde(default)]pub share_desktop: Option<bool>,- /// Create Spaces for your other devices (overrides the profile).- /// `None` with the desktop profile: on for a new relay setup; a- /// machine set up before keeps its setting (the host decides,- /// `cua_host::default_provide_spaces`).+ /// Let other machines create Spaces here (overrides the profile).+ /// `None`: on for a new relay setup; a machine set up before keeps+ /// its setting (the host decides, `cua_host::default_provide_spaces`).#[serde(default)]pub provide_spaces: Option<bool>,}@@ -234,8 +235,12 @@ impl HostSetupRequest {/// has).pub fn settings(&self) -> (bool, Option<bool>) {let (mut desktop, mut provide) = match self.profile.as_deref() {+ Some("desktop") => (true, None),Some("spare") => (false, Some(true)),- _ => (true, None),+ // The default setup turns on Spaces only (a new relay setup+ // provides them; a machine set up before keeps its setting);+ // the desktop stays private until the person turns it on.+ _ => (false, None),};if let Some(d) = self.share_desktop {desktop = d;@@ -283,6 +288,13 @@ pub fn validate_setup(mut request: HostSetupRequest) -> Result<HostSetupRequest,Some(p) if p == "desktop" || p == "spare" => Some(p),Some(p) => return Err(format!("unknown profile {p:?} (desktop or spare)")),};+ // A direct connection always shares the desktop (it has no Spaces).+ if request.mode == "direct"+ && request.share_desktop.is_none()+ && request.profile.as_deref() != Some("spare")+ {+ request.share_desktop = Some(true);+ }let (desktop, provide) = request.settings();if !desktop && !request.new_setup_settings().1 {return Err("share this desktop, provide Spaces, or both".into());@@ -325,6 +337,17 @@ pub fn validate_setup(mut request: HostSetupRequest) -> Result<HostSetupRequest,}}+/// The switch that lets other machines create Spaces on this one (a+/// Settings row on this Mac, read-only on a machine's page).+pub const SPACES_SWITCH: &str = "Let other machines create Spaces here";+/// One line under [`SPACES_SWITCH`].+pub const SPACES_HELP: &str = "Your other machines can create Spaces here.";+/// The switch that shows this machine's own desktop as a Space on the+/// others.+pub const DESKTOP_SWITCH: &str = "Let other machines control this desktop";+/// One line under [`DESKTOP_SWITCH`].+pub const DESKTOP_HELP: &str = "Your other machines can see and control this screen.";+/// The production relay. Host setup joins [`default_relay_url`] unless the/// form names another.pub const DEFAULT_RELAY_URL: &str = "https://relay.cua.ai";@@ -627,7 +650,9 @@ impl HostState {configured: self.configured,error: self.error.clone(),service_running: self.service_running,- sharing: self.sharing,+ // The summary is the desktop's: sharing Spaces alone does not+ // make this Mac's desktop shared.+ sharing: self.sharing && self.share_desktop,clients: self.clients.len() as u32,mode: self.mode.clone(),online: self.online,@@ -747,7 +772,7 @@ pub fn remove_confirm() -> HostConfirm {HostConfirm {title: "Remove host setup?".into(),message: "Everyone connected is disconnected, the host service is \- uninstalled and this computer leaves your computers on the \+ uninstalled and this machine leaves your machines on the \relay. Setting it up again is needed to share it.".into(),confirm_label: "Remove".into(),@@ -1062,14 +1087,14 @@ pub struct HostSetupChoice {}/// The intro over the setup choices.-pub const HOST_INTRO: &str = "This is the computer you\u{2019}re using now. Set \-it up so you, your teammates and your AI agents can use it from other devices. \+pub const HOST_INTRO: &str = "This is the machine you\u{2019}re using now. Set \+it up so you, your teammates and your AI agents can use it from other machines. \Cua connects them for you, with no network setup.";-/// The "Use it to" option that lets other devices use this computer.-pub const DESKTOP_CHOICE: &str = "Let my other devices use this computer";+/// The "Use it to" option that lets other machines create Spaces here and control this desktop.+pub const DESKTOP_CHOICE: &str = "Let other machines create Spaces and control this desktop";/// The "Use it to" option for a spare computer that only runs Spaces.-pub const SPARE_CHOICE: &str = "Run Spaces here and keep its screen private";+pub const SPARE_CHOICE: &str = "Let other machines create Spaces here";/// The button that sets this computer up (shares its screen).pub const SET_UP_LABEL: &str = "Turn on remote access";/// The form's button for a spare computer.@@ -1078,7 +1103,7 @@ pub const SPARE_SUBMIT: &str = "Start running Spaces";/// What the desktop setup also turns on, in the form's words (it says/// "this computer" on every system, like the rest of the form, so every/// shell draws the same text).-pub const PROVIDES_SPACES_NOTE: &str = "You and the people you share with can see and use this computer’s screen, and create Spaces on it, from other devices. Cua connects them for you, with no network setup.";+pub const PROVIDES_SPACES_NOTE: &str = "You and the people you share with can create Spaces on this machine, and see and control its screen if you turn that on, from other machines. Cua connects them for you, with no network setup.";/// The setup choices (the form's "Use for" options).pub fn setup_choices() -> Vec<HostSetupChoice> {@@ -1119,7 +1144,7 @@ pub const OPEN_SETTINGS_LABEL: &str = "Open Settings";pub fn panel(state: Option<&HostState>) -> HostPanelView {use crate::spaces::sidebar::Fact;let mut v = HostPanelView {- title: "This computer".into(),+ title: "This machine".into(),summary: "Checking\u{2026}".into(),notice: None,notice_action: None,@@ -1155,7 +1180,7 @@ pub fn panel(state: Option<&HostState>) -> HostPanelView {return v;};if !s.configured {- v.summary = "Your other devices can\u{2019}t reach this computer yet.".into();+ v.summary = "Your other machines can\u{2019}t reach this machine yet.".into();v.intro = Some(HOST_INTRO.into());v.setup_choices = setup_choices();v.actions = vec![HostAction {@@ -1176,7 +1201,7 @@ pub fn panel(state: Option<&HostState>) -> HostPanelView {s.direct_url.as_deref().filter(|u| !u.is_empty())- .unwrap_or("this computer\u{2019}s address")+ .unwrap_or("this machine\u{2019}s address"))} else {match s.relay_url.as_deref().filter(|u| !u.is_empty()) {@@ -1198,7 +1223,7 @@ pub fn panel(state: Option<&HostState>) -> HostPanelView {.name.clone().filter(|n| !n.is_empty())- .unwrap_or_else(|| "This computer".into()),+ .unwrap_or_else(|| "This machine".into()),copy: None,help: None,warning: None,@@ -1267,8 +1292,8 @@ pub fn panel(state: Option<&HostState>) -> HostPanelView {v.toggles = vec![HostToggle {id: "desktop".into(),- label: "Share this desktop".into(),- help: "Your devices can see and control this screen.".into(),+ label: DESKTOP_SWITCH.into(),+ help: DESKTOP_HELP.into(),on: s.share_desktop,// Both may be off: then sharing stops (nothing to share).enabled: relay,@@ -1280,9 +1305,9 @@ pub fn panel(state: Option<&HostState>) -> HostPanelView {},HostToggle {id: "spaces".into(),- label: "Provide Spaces".into(),+ label: SPACES_SWITCH.into(),help: if relay {- "Your devices can create Spaces here.".into()+ SPACES_HELP.into()} else {"Needs the relay.".into()},@@ -1297,7 +1322,7 @@ pub fn panel(state: Option<&HostState>) -> HostPanelView {];if s.provide_spaces {v.limits = Some(limits_line(s.max_spaces, s.max_macos_vms));- v.provided_title = Some("Spaces for your devices".into());+ v.provided_title = Some("Spaces from your other machines".into());v.provided = provided_rows(&s.provided_spaces);v.provided_empty = s.provided_spaces.is_empty().then(|| "None yet".into());}@@ -1398,8 +1423,7 @@ pub fn panel(state: Option<&HostState>) -> HostPanelView {}/// Resume sharing's tooltip while both settings are off.-pub const NOTHING_TO_SHARE_HELP: &str =- "Turn on Share this desktop or Provide Spaces to share this computer.";+pub const NOTHING_TO_SHARE_HELP: &str = "Turn on one of the two switches to share this machine.";/// The page's line while another account is signed in and this machine's/// relay sharing (registered to the account that signed out) is paused.@@ -1757,7 +1781,7 @@ pub fn form_view(s: &HostFormState, identity: Option<&str>) -> HostFormView {let mut fields = vec![text("name","Name",- "How it shows on your other devices",+ "How it shows on your other machines",&s.name,false,false,@@ -1827,10 +1851,10 @@ pub fn form_view(s: &HostFormState, identity: Option<&str>) -> HostFormView {}}let lede = if s.direct {- "Other computers on your network connect to this address with an access token.".to_string()+ "Other machines on your network connect to this address with an access token.".to_string()} else {let what = if s.spare {- "This computer runs Spaces, separate computers inside it, that you and your team open from other devices. Its own screen stays private.".to_string()+ "This machine runs Spaces, separate computers inside it, that you and your team open from your other machines. Its own screen stays private.".to_string()} else {PROVIDES_SPACES_NOTE.to_string()};@@ -1852,7 +1876,7 @@ pub fn form_view(s: &HostFormState, identity: Option<&str>) -> HostFormView {};let request = form_request(s).ok();HostFormView {- title: "Set up this computer".into(),+ title: "Set up this machine".into(),lede,fields,advanced_label: "Advanced".into(),@@ -1912,6 +1936,37 @@ mod tests {assert_eq!(host_summary(Some(&s)), "Sharing \u{b7} 2 connected");}+ /// This Mac's desktop row reads the desktop switch, not Spaces alone:+ /// providing Spaces with the desktop off is "Not sharing".+ #[test]+ fn the_desktop_row_is_shared_only_while_the_desktop_is() {+ let spaces_only = HostState {+ configured: true,+ sharing: true,+ service_running: true,+ share_desktop: false,+ provide_spaces: true,+ ..Default::default()+ };+ let input = spaces_only.summary_input();+ assert_eq!(host_summary(Some(&input)), "Not sharing");+ assert_eq!(this_machine_status(Some(&input)), SpaceStatus::Suspended);+ let shared = HostState {+ share_desktop: true,+ ..spaces_only+ };+ assert_eq!(+ this_machine_status(Some(&shared.summary_input())),+ SpaceStatus::Local+ );+ // The row is named for the system it runs on, never "computer".+ assert_eq!(+ this_machine_space(None, 0, SpaceOs::Linux).name,+ "This machine"+ );+ assert_eq!(this_machine_space(None, 0, SpaceOs::Macos).name, "This Mac");+ }+#[test]fn the_dot_is_green_only_while_sharing_for_access() {let sharing = HostSummaryInput {@@ -2563,7 +2618,7 @@ mod tests {let desktop = &v.toggles[0];assert_eq!((desktop.label.as_str(), desktop.on),- ("Share this desktop", true)+ ("Let other machines control this desktop", true));assert!(desktop.enabled, "the only setting on can be turned off too");assert_eq!(v.toggles[1].action, HostActionId::ProvideSpaces);@@ -2664,7 +2719,10 @@ mod tests {},];let v = panel(Some(&s));- assert_eq!(v.provided_title.as_deref(), Some("Spaces for your devices"));+ assert_eq!(+ v.provided_title.as_deref(),+ Some("Spaces from your other machines")+ );assert_eq!(v.provided[0].text, "mac-1 \u{b7} macOS \u{b7} Ada");assert!(v.provided_empty.is_none());assert_eq!(v.activity_title.as_deref(), Some("Spaces activity"));@@ -2753,6 +2811,7 @@ mod tests {// An explicit off stays off.let off = validate_setup(HostSetupRequest {mode: "relay".into(),+ profile: Some("desktop".into()),provide_spaces: Some(false),..Default::default()})@@ -2774,13 +2833,26 @@ mod tests {}#[test]- fn the_default_choice_turns_on_everything_remote_access_needs() {+ fn the_default_setup_turns_on_spaces_only() {let relay = validate_setup(HostSetupRequest {mode: "relay".into(),..Default::default()}).unwrap();- assert_eq!(relay.new_setup_settings(), (true, true));+ // Other machines can create Spaces here; the desktop stays private.+ assert_eq!(relay.new_setup_settings(), (false, true));+ // Asking for the desktop turns it on besides.+ let desktop = validate_setup(HostSetupRequest {+ mode: "relay".into(),+ profile: Some("desktop".into()),+ ..Default::default()+ })+ .unwrap();+ assert_eq!(desktop.new_setup_settings(), (true, true));+ // Both off is only refused when asked for outright (the switches+ // themselves never error: the machine just is not shared).+ assert_eq!(SPACES_SWITCH, "Let other machines create Spaces here");+ assert_eq!(DESKTOP_SWITCH, "Let other machines control this desktop");let direct = validate_setup(HostSetupRequest {mode: "direct".into(),direct: Some("0.0.0.0:3211".into()),@@ -2788,7 +2860,7 @@ mod tests {}).unwrap();assert_eq!(direct.new_setup_settings(), (true, false));- // The form's one choice asks for both.+ // The form's desktop choice asks for both.assert_eq!(form_view(&form_initial(), None).requestdiff --git a/libs/cua/crates/cua-spaces-app-core/src/login_item.rs b/libs/cua/crates/cua-spaces-app-core/src/login_item.rsindex 2c1ea9fc05..c7ec4f1003 100644--- a/libs/cua/crates/cua-spaces-app-core/src/login_item.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/login_item.rs@@ -91,9 +91,9 @@ pub struct LoginItemInput {/// What turning it off stops, in one line; none when nothing runs here.pub fn off_warning(provides_spaces: bool, runs_agents: bool) -> Option<String> {let what = match (provides_spaces, runs_agents) {- (true, true) => "This computer provides Spaces and runs persistent agents",- (true, false) => "This computer provides Spaces",- (false, true) => "This computer runs persistent agents",+ (true, true) => "This machine provides Spaces and runs persistent agents",+ (true, false) => "This machine provides Spaces",+ (false, true) => "This machine runs persistent agents",(false, false) => return None,};Some(format!(@@ -238,7 +238,7 @@ mod tests {});assert_eq!(ids(&off)[1],- "launch-at-login-note:This computer provides Spaces, which stop after a restart until you open Cua Spaces."+ "launch-at-login-note:This machine provides Spaces, which stop after a restart until you open Cua Spaces.");let on = rows(&LoginItemInput {status: LoginItemStatus::Enabled,diff --git a/libs/cua/crates/cua-spaces-app-core/src/machines.rs b/libs/cua/crates/cua-spaces-app-core/src/machines.rsindex 4d06c8c8f2..b1472f7feb 100644--- a/libs/cua/crates/cua-spaces-app-core/src/machines.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/machines.rs@@ -421,13 +421,13 @@ pub fn spaces_label(n: u32) -> String {/// The words for a machine that shares its own desktop with no Spaces.pub const DESKTOP_SHARED: &str = "Desktop shared";-/// "Desktop shared", or "Desktop \u{b7} 2 Spaces" when the machine also+/// "Desktop shared", or "Desktop and 2 Spaces" when the machine also/// provides Spaces. Every UI shows this label for a machine that shares/// its own desktop.pub fn desktop_spaces_label(n: u32) -> String {match n {0 => DESKTOP_SHARED.into(),- n => format!("Desktop \u{b7} {}", spaces_label(n)),+ n => format!("Desktop and {}", spaces_label(n)),}}@@ -902,7 +902,7 @@ mod tests {assert_eq!(words,[- ("Online", "Desktop \u{b7} 1 Space"),+ ("Online", "Desktop and 1 Space"),("Not sharing", "No Spaces"),("Online", "1 Space"),("Offline", ""),@@ -1004,7 +1004,7 @@ mod tests {],"m-mini"),- (1, "Desktop \u{b7} 1 Space".into())+ (1, "Desktop and 1 Space".into()));assert_eq!(label_of(@@ -1015,7 +1015,7 @@ mod tests {],"this-mac"),- (2, "Desktop \u{b7} 2 Spaces".into())+ (2, "Desktop and 2 Spaces".into()));}diff --git a/libs/cua/crates/cua-spaces-app-core/src/machines_health.rs b/libs/cua/crates/cua-spaces-app-core/src/machines_health.rsindex 2ea55104c2..37bb7002a3 100644--- a/libs/cua/crates/cua-spaces-app-core/src/machines_health.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/machines_health.rs@@ -145,11 +145,11 @@ pub fn issues(&& let Some(h) = host&& h.configured{- if h.service_installed && !h.service_running {+ if crate::machines_view::service_down(h) {out.push(issue("service","fail",- "The Cua service isn\u{2019}t running, so your other devices can\u{2019}t reach \+ "The Cua service isn\u{2019}t running, so your other machines can\u{2019}t reach \this Mac.".into(),Some(MachinesViewIssueAction {@@ -163,7 +163,7 @@ pub fn issues(out.push(issue("relay","warn",- "This Mac can\u{2019}t reach the Cua relay, so your other devices can\u{2019}t \+ "This Mac can\u{2019}t reach the Cua relay, so your other machines can\u{2019}t \reach it. Check its internet connection.".into(),None,@@ -522,9 +522,19 @@ mod tests {configured: true,service_installed: true,service_running: false,+ sharing: true,+ provide_spaces: true,..HostState::default()};let i = issues(&THIS, None, Some(&host));+ // Nothing to share (both switches off): the stopped service is+ // expected, so it is no issue.+ let nothing = HostState {+ provide_spaces: false,+ share_desktop: false,+ ..host.clone()+ };+ assert!(issues(&THIS, None, Some(¬hing)).is_empty());assert_eq!(i[0].id, "service");let a = i[0].action.as_ref().unwrap();assert_eq!(diff --git a/libs/cua/crates/cua-spaces-app-core/src/machines_view.rs b/libs/cua/crates/cua-spaces-app-core/src/machines_view.rsindex f95e704b5b..8d7f66bd00 100644--- a/libs/cua/crates/cua-spaces-app-core/src/machines_view.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/machines_view.rs@@ -6,7 +6,7 @@//! machines, whatever their age), a collapsed "Offline for 30+ days", "Team//! machines"), one//! muted line per row, and each machine's page (its name and rename, the-//! one "Let my other devices use this computer" switch, the Spaces on it as+//! "Let other machines control this desktop" switch, the Spaces on it as//! links, New Space here, Details, and Remove from account).//!//! The page is about the hardware. Opening, starting, stopping, teleporting@@ -20,7 +20,9 @@use serde::{Deserialize, Serialize};-use crate::host::{HostActionId, HostConfirm, HostState};+use crate::host::{+ DESKTOP_HELP, DESKTOP_SWITCH, HostActionId, HostConfirm, HostState, SPACES_HELP, SPACES_SWITCH,+};use crate::machines::{self, MachinePageRow, MachinesPageInput};pub use crate::machines_health::{ISSUES_TITLE, MachinesViewCheck, MachinesViewHealth, MachinesViewIssue, MachinesViewIssueAction,@@ -46,7 +48,7 @@ pub struct MachinesViewRelay {/// Its owner's email, when the relay says.#[serde(default)]pub owner_email: Option<String>,- /// It creates Spaces for your devices (`None`: it did not say).+ /// It lets your other machines create Spaces (`None`: it did not say).#[serde(default)]pub provides_spaces: Option<bool>,}@@ -110,7 +112,8 @@ pub struct MachinesViewInput {pub struct MachinesViewToggle {/// `spaces` or `desktop`.pub id: String,- /// "Provide Spaces", "Share this desktop".+ /// "Let other machines create Spaces here", "Let other machines control+ /// this desktop".pub label: String,/// One line under it.pub help: String,@@ -280,7 +283,8 @@ pub struct MachinesViewMachine {/// The notice's button (Sign In).#[serde(default)]pub notice_action: Option<crate::host::HostAction>,- /// Provide Spaces, then Share this desktop.+ /// Create Spaces here, then control this desktop (This Mac: the+ /// desktop switch only).pub toggles: Vec<MachinesViewToggle>,/// Under read-only switches: where they change.#[serde(default)]@@ -395,7 +399,7 @@ pub(crate) fn that_machine(os: &str) -> &'static str {match os {"macos" => "that Mac","windows" => "that PC",- _ => "that computer",+ _ => "that machine",}}@@ -441,39 +445,38 @@ fn last_seen_text(last_seen: Option<u64>, now: u64) -> Option<String> {last_seen.filter(|t| *t > 0).map(|t| ago(t, now))}+/// This Mac's status word while the service that shares it is down.+pub const SERVICE_STOPPED: &str = "Service stopped";++/// Whether the service that should be sharing This Mac is down: it is set+/// up, something is on to share and sharing was not stopped, but the+/// service does not run (the same test the issue uses).+pub fn service_down(s: &HostState) -> bool {+ s.configured+ && !s.paused_signed_out+ && s.sharing+ && (s.share_desktop || s.provide_spaces)+ && s.service_installed+ && !s.service_running+}+/// What a machine's switches show and do.struct Switches {provide: bool,share: bool,}-/// "this Mac", "this PC", "this computer".-pub(crate) fn this_machine(os: &str) -> &'static str {- match os {- "macos" => "this Mac",- "windows" => "this PC",- _ => "this computer",- }-}--/// The one remote-access switch on a machine's page, in plain words:-/// "Let my other devices use this Mac".-pub(crate) fn remote_label(os: &str) -> String {- format!("Let my other devices use {}", this_machine(os))-}--/// This machine's switch, from its host state: one choice that lets your-/// other devices see and control its screen and create Spaces on it.-/// Turning it on turns on everything that takes; turning it off stops-/// sharing, so it reads as off (and the two settings underneath stay as-/// they were).-fn host_toggles(s: Option<&HostState>, os: &str) -> Vec<MachinesViewToggle> {- let help = "They can see and control this screen and create Spaces here.";+/// This machine's switch on its page: "Let other machines control this+/// desktop", off until the person turns it on. ("Let other machines create+/// Spaces here" is a Settings row on this Mac.) Both switches off is fine:+/// the machine just is not shared, with no error.+fn host_toggles(s: Option<&HostState>) -> Vec<MachinesViewToggle> {+ let help = DESKTOP_HELP;let Some(s) = s.filter(|s| s.configured) else {- // Before setup: the switch opens the setup form.+ // Before setup: the switch opens the setup form with the screen on.return vec![MachinesViewToggle {- id: "remote".into(),- label: remote_label(os),+ id: "desktop".into(),+ label: DESKTOP_SWITCH.into(),help: help.into(),on: false,editable: true,@@ -482,35 +485,25 @@ fn host_toggles(s: Option<&HostState>, os: &str) -> Vec<MachinesViewToggle> {setup: Some("desktop".into()),}];};- let relay = s.mode.as_deref() != Some("direct");- // Stopped sharing reads as the switch off: it is the one control, so- // there is no separate "Not sharing" card to reconcile.+ // Stopped sharing reads as the switch off.let live = s.sharing || s.paused_signed_out;- let on = (s.share_desktop || s.provide_spaces) && live;+ let on = s.share_desktop && live;let actions = if on {- vec![HostActionId::StopSharing]+ vec![HostActionId::HideDesktop]} else {let mut a = vec![];if !s.share_desktop {a.push(HostActionId::ShareDesktop);}- // Spaces need the relay; a direct host only shares its screen.- if relay && !s.provide_spaces {- a.push(HostActionId::ProvideSpaces);- }if !live {a.push(HostActionId::ResumeSharing);}a};vec![MachinesViewToggle {- id: "remote".into(),- label: remote_label(os),- help: if relay {- help.into()- } else {- "They can see and control this screen.".into()- },+ id: "desktop".into(),+ label: DESKTOP_SWITCH.into(),+ help: help.into(),on,editable: true,enabled: !s.paused_signed_out,@@ -531,19 +524,9 @@ fn remote_toggles(sw: &Switches, team: bool) -> Vec<MachinesViewToggle> {actions: vec![],setup: None,};- let mut out = vec![t(- "spaces",- "Provide Spaces",- "Your devices can create Spaces here.",- sw.provide,- )];+ let mut out = vec![t("spaces", SPACES_SWITCH, SPACES_HELP, sw.provide)];if !team {- out.push(t(- "desktop",- "Share this desktop",- "Your devices can see and control this screen.",- sw.share,- ));+ out.push(t("desktop", DESKTOP_SWITCH, DESKTOP_HELP, sw.share));}out}@@ -595,6 +578,13 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {let relay = input.relay.iter().find(|r| r.id == row.id);let team = !row.current && relay.is_some_and(|r| !r.role.is_empty() && r.role != "owner");let on = spaces_on(spaces, row);+ // One status for This Mac, drawn the same in the header, the list+ // and the issues: its host says whether it shares at all and+ // whether the service that shares it runs.+ let svc_down = row.current && host.is_some_and(service_down);+ let stopped = row.stopped_sharing+ || (row.current+ && host.is_some_and(|s| s.configured && !s.paused_signed_out && !s.sharing));let n_running = on.iter().filter(|s| running(s)).count();let own_space = row.space_id@@ -617,7 +607,7 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {.is_some_and(|s| crate::spaces::sidebar::shares_desktop(s) != Some(false)),}};- let live = row.online && !row.stopped_sharing;+ let live = row.online && !stopped && !svc_down;let desktop = own_space.filter(|_| live && sw.share).map(|s| MachinesViewDesktop {@@ -640,12 +630,14 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {// The row's one line.// One short label: no "a · b" chains (the switches show the rest),- // except a shared desktop's "Desktop · N Spaces".+ // except a shared desktop's "Desktop and N Spaces".let line = if row.device_only {DEVICE_LINE.into()} else if !row.online {machines::OFFLINE.into()- } else if row.stopped_sharing {+ } else if svc_down {+ SERVICE_STOPPED.into()+ } else if stopped {machines::NOT_SHARING.into()} else if has_desktop {machines::desktop_spaces_label(u32::try_from(on.len()).unwrap_or(u32::MAX))@@ -667,7 +659,9 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {let status = if !row.online {machines::OFFLINE.into()- } else if row.stopped_sharing {+ } else if svc_down {+ SERVICE_STOPPED.into()+ } else if stopped {machines::NOT_SHARING.into()} else {machines::ONLINE.into()@@ -708,7 +702,7 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {(p.notice, p.notice_action)} else if !row.online {(Some(OFFLINE_NOTICE.into()), None)- } else if row.stopped_sharing {+ } else if stopped {(Some(format!("Sharing is off on {}. Turn it on there to use it.",@@ -721,7 +715,7 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {};let toggles = if row.current {- host_toggles(host, &row.os)+ host_toggles(host)} else {remote_toggles(&sw, team)};@@ -750,12 +744,12 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {None} else if !row.online {Some("It\u{2019}s offline.".into())- } else if row.stopped_sharing {+ } else if stopped {Some("It isn\u{2019}t sharing.".into())} else if !sw.provide {Some(format!(- "It doesn\u{2019}t provide Spaces. Turn on \u{201c}{}\u{201d} on {}.",- remote_label(&row.os),+ "It doesn\u{2019}t let other machines create Spaces. Turn on \u{201c}{}\u{201d} in Settings on {}.",+ SPACES_SWITCH,that_machine(&row.os)))} else {@@ -833,7 +827,7 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {"Service",if !row.online {"Not reachable"- } else if row.stopped_sharing {+ } else if stopped {machines::NOT_SHARING} else {"Running"@@ -931,7 +925,7 @@ pub fn view(input: &MachinesViewInput) -> MachinesView {health_target: crate::machines_health::health_target(row.current,row.online,- row.stopped_sharing,+ stopped,row.device_only,relay.is_some_and(|r| r.role == "owner" || r.role.is_empty()),&row.id,@@ -1249,10 +1243,10 @@ mod tests {[("Ada's MacBook Pro",- "Desktop \u{b7} 2 Spaces",+ "Desktop and 2 Spaces",Some("This Mac")),- ("cua's Mac Studio", "Desktop \u{b7} 1 Space", None),+ ("cua's Mac Studio", "Desktop and 1 Space", None),("Cua BYOC tests", "Offline", None),("mac-mini-staging", "Offline", None),("build-mini-01", "Desktop shared", None),@@ -1367,14 +1361,26 @@ mod tests {.iter().map(|t| (t.label.as_str(), t.on, t.editable && t.enabled)).collect();- // One plain choice, on while anything is shared; off stops sharing.- assert_eq!(t, [("Let my other devices use this Mac", true, true)]);- assert_eq!(me.toggles[0].id, "remote");- assert_eq!(me.toggles[0].actions, [HostActionId::StopSharing]);+ // This Mac's page has the desktop switch; the Spaces switch is a+ // Settings row.+ assert_eq!(t, [("Let other machines control this desktop", true, true)]);+ assert_eq!(me.toggles[0].id, "desktop");+ assert_eq!(me.toggles[0].actions, [HostActionId::HideDesktop]);assert_eq!(me.toggles_note, None);let studio = by_id(&v, "studio");assert!(studio.toggles.iter().all(|t| !t.editable && !t.enabled));+ assert_eq!(+ studio+ .toggles+ .iter()+ .map(|t| t.label.as_str())+ .collect::<Vec<_>>(),+ [+ "Let other machines create Spaces here",+ "Let other machines control this desktop"+ ]+ );assert_eq!(studio.toggles.iter().map(|t| t.on).collect::<Vec<_>>(),[true, true]@@ -1406,54 +1412,88 @@ mod tests {}#[test]- fn stopped_sharing_reads_as_the_switch_off_and_turning_one_on_resumes() {+ fn stopped_sharing_reads_as_the_switch_off_and_turning_it_on_resumes() {let mut input = mockup();input.host = Some(HostState {sharing: false,- ..host(true, true)+ ..host(false, true)});let v = view(&input);let me = by_id(&v, "this-mac");assert!(me.toggles.iter().all(|t| !t.on && t.enabled));- // Turning it on resumes sharing (both settings are already on).+ // The desktop setting is already on: turning it on resumes sharing.assert_eq!(me.toggles[0].actions, [HostActionId::ResumeSharing]);- // No "Not sharing" card: the switches are the one control.+ // One status everywhere: Not sharing, never "Online".+ assert_eq!(me.status, machines::NOT_SHARING);+ assert_eq!(me.line, machines::NOT_SHARING);+ assert!(!me.online);assert_eq!(me.notice, None);}#[test]- fn turning_the_one_switch_on_turns_on_everything_it_needs() {+ fn the_desktop_switch_is_off_by_default_and_each_way_has_its_action() {let me = |h: HostState| {let mut input = mockup();input.host = Some(h);by_id(&view(&input), "this-mac").toggles[0].clone()};- // Nothing shared: the screen and Spaces both come on.+ // Spaces on, desktop off (the default setup): off, no error, no hint.let t = me(HostState {share_desktop: false,- provide_spaces: false,- ..host(false, false)+ provide_spaces: true,+ ..host(false, true)});- assert!(!t.on);- assert_eq!(- t.actions,- [HostActionId::ShareDesktop, HostActionId::ProvideSpaces]- );- // Stopped, and only the screen was on: Spaces come on, then it resumes.+ assert!(!t.on && t.enabled && t.editable);+ assert_eq!(t.actions, [HostActionId::ShareDesktop]);+ // Both off: still just a switch that turns the desktop on.let t = me(HostState {+ share_desktop: false,+ provide_spaces: false,sharing: false,- ..host(false, true)+ ..host(false, false)});+ assert!(!t.on && t.enabled);assert_eq!(t.actions,- [HostActionId::ProvideSpaces, HostActionId::ResumeSharing]+ [HostActionId::ShareDesktop, HostActionId::ResumeSharing]);- // A direct connection can only share the screen.- let t = me(HostState {- mode: Some("direct".into()),+ // On: turning it off hides the desktop (Spaces keep running).+ let t = me(host(true, true));+ assert!(t.on);+ assert_eq!(t.actions, [HostActionId::HideDesktop]);+ }++ #[test]+ fn one_status_drives_the_header_the_list_and_the_issue() {+ let mut input = mockup();+ // Set up and sharing, but the service is down.+ input.host = Some(HostState {+ service_installed: true,+ service_running: false,+ ..host(true, true)+ });+ let v = view(&input);+ let me = by_id(&v, "this-mac");+ assert_eq!(me.status, SERVICE_STOPPED);+ assert_eq!(me.line, SERVICE_STOPPED);+ assert!(!me.online);+ assert_eq!(me.health, "fail");+ let issue = me.issues.iter().find(|i| i.id == "service").unwrap();+ assert_eq!(issue.action.as_ref().unwrap().label, "Restart service");+ assert!(issue.text.contains("other machines"));+ // Nothing to share: the stopped service is expected, so no issue.+ input.host = Some(HostState {+ service_installed: true,+ service_running: false,+ sharing: false,+ share_desktop: false,+ provide_spaces: false,..host(false, false)});- assert_eq!(t.actions, [HostActionId::ShareDesktop]);+ let v = view(&input);+ let me = by_id(&v, "this-mac");+ assert_eq!(me.status, machines::NOT_SHARING);+ assert!(me.issues.iter().all(|i| i.id != "service"));}#[test]@@ -1469,7 +1509,10 @@ mod tests {.collect::<Vec<_>>(),[Some("desktop")]);- assert_eq!(me.toggles[0].label, "Let my other devices use this Mac");+ assert_eq!(+ me.toggles[0].label,+ "Let other machines control this desktop"+ );assert!(me.remove.is_none() && me.rename.is_none());assert_eq!(me.name, "Ada's MacBook Pro");}@@ -1589,7 +1632,7 @@ mod tests {None,);let m = by_id(&v, "m1");- assert_eq!(m.line, "Desktop \u{b7} 1 Space");+ assert_eq!(m.line, "Desktop and 1 Space");assert!(m.desktop.is_some());assert_eq!(m.spaces.len(), 1);let v = view_of(@@ -1601,7 +1644,7 @@ mod tests {vec![],Some(host(true, true)),);- assert_eq!(by_id(&v, "this-mac").line, "Desktop \u{b7} 2 Spaces");+ assert_eq!(by_id(&v, "this-mac").line, "Desktop and 2 Spaces");}#[test]diff --git a/libs/cua/crates/cua-spaces-app-core/src/model.rs b/libs/cua/crates/cua-spaces-app-core/src/model.rsindex 6a637cc1bc..0585f27d2c 100644--- a/libs/cua/crates/cua-spaces-app-core/src/model.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/model.rs@@ -67,22 +67,22 @@ impl SpaceOs {}/// What the app calls the computer it runs on, when that runs this- /// system: "This Mac", "This PC", "This computer".+ /// system: "This Mac", "This PC", "This machine".pub fn this_machine(self) -> &'static str {match self {SpaceOs::Macos => "This Mac",SpaceOs::Windows => "This PC",- SpaceOs::Linux | SpaceOs::Unknown => "This computer",+ SpaceOs::Linux | SpaceOs::Unknown => "This machine",}}/// [`Self::this_machine`] mid-sentence: "this Mac", "this PC",- /// "this computer".+ /// "this machine".pub fn this_machine_lower(self) -> &'static str {match self {SpaceOs::Macos => "this Mac",SpaceOs::Windows => "this PC",- SpaceOs::Linux | SpaceOs::Unknown => "this computer",+ SpaceOs::Linux | SpaceOs::Unknown => "this machine",}}}@@ -712,7 +712,7 @@ impl Location {match self {Location::Local => os.this_machine(),Location::Yours => "Your cloud",- Location::Host => "Your computer",+ Location::Host => "Your machine",Location::Auto => "Auto",}}diff --git a/libs/cua/crates/cua-spaces-app-core/src/onboarding.rs b/libs/cua/crates/cua-spaces-app-core/src/onboarding.rsindex f58d84f6a2..a852e0c001 100644--- a/libs/cua/crates/cua-spaces-app-core/src/onboarding.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/onboarding.rs@@ -66,7 +66,7 @@ impl OnboardingStep {OnboardingStep::Signin => "Sign in",OnboardingStep::Agents => "AI agents",OnboardingStep::Drive => "Cua Volume",- OnboardingStep::Mode => "This computer",+ OnboardingStep::Mode => "This machine",OnboardingStep::Done => "Done",}}@@ -1294,7 +1294,7 @@ pub fn view_for(s: &OnboardingState, os: SpaceOs, cli_page: bool) -> OnboardingV),Signin => ("Sign in",- "Sign in to reach your computers and Spaces from any of your devices. You can skip this and sign in later.",+ "Sign in to reach your machines and Spaces from any of your machines. You can skip this and sign in later.","Continue",),Agents => (@@ -1315,7 +1315,7 @@ pub fn view_for(s: &OnboardingState, os: SpaceOs, cli_page: bool) -> OnboardingV),Mode => (mode_title.as_str(),- "Use it only to open your other computers, or let your other devices reach it too. You can change this later.",+ "Use it only to open your other machines, or let your other machines reach it too. You can change this later.","Continue",),Done => ("", "", "Start using Cua Spaces"),@@ -1349,11 +1349,11 @@ pub fn view_for(s: &OnboardingState, os: SpaceOs, cli_page: bool) -> OnboardingVwarning: None,},Fact {- label: "This computer".into(),+ label: "This machine".into(),value: if s.mode == Some(OnboardingMode::Host) {- "Your other devices can reach it"+ "Your other machines can reach it"} else {- "Opens your other computers"+ "Opens your other machines"}.into(),copy: None,@@ -1389,11 +1389,11 @@ pub fn view_for(s: &OnboardingState, os: SpaceOs, cli_page: bool) -> OnboardingV[(OnboardingMode::Client,- format!("Just use {here} to open my other computers"),+ format!("Just use {here} to open my other machines"),),(OnboardingMode::Host,- format!("Let my other devices reach {here}"),+ format!("Let my other machines reach {here}"),),].into_iter()@@ -1468,7 +1468,7 @@ pub fn done_heading(left: usize, os: SpaceOs) -> (String, String) {/// The Cua CLI's one plain line (next to its name everywhere it shows).pub const CLI_HINT: &str = "Command-line tools for you and your agents.";/// Cua Volume's one plain line.-pub const VOLUME_HINT: &str = "Shared folder: files your agents can share across your computers.";+pub const VOLUME_HINT: &str = "Shared folder: files your agents can share across your machines.";/// Done's to-do list, in page order. Cua Volume shows wherever it can/// mount (its experiment need not be on: "Turn on" turns it on).@@ -1496,7 +1496,7 @@ fn done_todos(s: &OnboardingState) -> Vec<OnboardingTodo> {"Account",match signed_in {Some(id) => format!("Signed in as {id}."),- None => "Reach your computers from any device.".into(),+ None => "Reach your machines from any machine.".into(),},signed_in.is_some(),false,@@ -1586,7 +1586,7 @@ mod tests {assert!(v.summary.iter()- .any(|f| f.label == "This computer" && f.value == "Opens your other computers")+ .any(|f| f.label == "This machine" && f.value == "Opens your other machines"));// Sign in from Done, then back to Done.let at = reduce(@@ -1690,8 +1690,8 @@ mod tests {assert_eq!(labels,[- "Just use this Mac to open my other computers",- "Let my other devices reach this Mac"+ "Just use this Mac to open my other machines",+ "Let my other machines reach this Mac"]);assert_eq!(@@ -1712,7 +1712,7 @@ mod tests {assert_eq!(v.title, "Sign in");assert_eq!(v.lede,- "Sign in to reach your computers and Spaces from any of your devices. You can skip this and sign in later."+ "Sign in to reach your machines and Spaces from any of your machines. You can skip this and sign in later.");assert!(v.can_skip);}diff --git a/libs/cua/crates/cua-spaces-app-core/src/persistent.rs b/libs/cua/crates/cua-spaces-app-core/src/persistent.rsindex c5b8a897ac..040fd0ef89 100644--- a/libs/cua/crates/cua-spaces-app-core/src/persistent.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/persistent.rs@@ -620,7 +620,7 @@ fn detail_view(let tabs = [(AgentTab::Memory, "Memory"),(AgentTab::Routines, "Routines"),- (AgentTab::Access, "Access to this computer"),+ (AgentTab::Access, "Access to this machine"),].into_iter().map(|(tab, label)| TabView {@@ -696,7 +696,7 @@ fn detail_view(line(&g.machine,if this {- "This computer".into()+ "This machine".into()} else {g.machine.clone()},@@ -710,7 +710,7 @@ fn detail_view(.this_machine.as_ref().filter(|m| !live.iter().any(|g| &&g.machine == m))- .map(|_| "Allow on this computer".to_string());+ .map(|_| "Allow on this machine".to_string());let principal = format!("agent:{}", a.name);let audit = input.audit@@ -768,7 +768,7 @@ fn detail_view(can_add_routine: form_ok(&state.form) && !state.busy,add_routine_label: "Add routine".into(),access,- access_empty: "This agent cannot use your computers.".into(),+ access_empty: "This agent cannot use your machines.".into(),allow_this_machine_label,audit,error: a.last_error.clone(),@@ -893,7 +893,7 @@ mod tests {let d = agents_view(&i, &s, 0).detail.unwrap();assert_eq!(d.allow_this_machine_label.as_deref(),- Some("Allow on this computer")+ Some("Allow on this machine"));let s = agents_reduce(&i,diff --git a/libs/cua/crates/cua-spaces-app-core/src/relay_usage.rs b/libs/cua/crates/cua-spaces-app-core/src/relay_usage.rsindex ea91552a02..62593f2784 100644--- a/libs/cua/crates/cua-spaces-app-core/src/relay_usage.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/relay_usage.rs@@ -26,7 +26,7 @@ pub const ROW_LABEL: &str = "Remote use";/// Free plan card, `cua usage`). The relay meters the time an account has/// at least one live session through it; a computer used from itself never/// goes through the relay.-pub const REMOTE_HOURS_MEANING: &str = "Remote hours: time spent using your computers from somewhere else (your laptop, phone or an agent on another computer). Using a computer from itself is free.";+pub const REMOTE_HOURS_MEANING: &str = "Remote hours: time spent using your machines from somewhere else (your laptop, phone or an agent on another computer). Using a computer from itself is free.";/// The notice's button.pub const UPGRADE: &str = "Upgrade";@@ -759,7 +759,7 @@ mod tests {assert_eq!((f.plan.as_str(), f.label.as_str()), ("free", "Free plan"));assert_eq!(f.detail,- "2 live sessions and 20 remote hours a month. Remote hours: time spent using your computers from somewhere else (your laptop, phone or an agent on another computer). Using a computer from itself is free."+ "2 live sessions and 20 remote hours a month. Remote hours: time spent using your machines from somewhere else (your laptop, phone or an agent on another computer). Using a computer from itself is free.");let p = f.primary.unwrap();assert_eq!(diff --git a/libs/cua/crates/cua-spaces-app-core/src/spaces/access.rs b/libs/cua/crates/cua-spaces-app-core/src/spaces/access.rsindex 297027cf52..93ae723a36 100644--- a/libs/cua/crates/cua-spaces-app-core/src/spaces/access.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/spaces/access.rs@@ -129,7 +129,7 @@ fn own_place(row: &SpaceRow) -> String {SpaceProvider::Relay => text(&row.cloud_place).or_else(|| text(&row.host_name)).or_else(|| text(&row.cloud))- .unwrap_or_else(|| "My computers".into()),+ .unwrap_or_else(|| "My machines".into()),}}diff --git a/libs/cua/crates/cua-spaces-app-core/src/spaces/mod.rs b/libs/cua/crates/cua-spaces-app-core/src/spaces/mod.rsindex e7c1267a98..45d9121b13 100644--- a/libs/cua/crates/cua-spaces-app-core/src/spaces/mod.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/spaces/mod.rs@@ -125,7 +125,7 @@ fn provider_label(p: SpaceProvider) -> &'static str {match p {SpaceProvider::Local => "This Mac",SpaceProvider::Direct => "Direct",- SpaceProvider::Relay => "My computers",+ SpaceProvider::Relay => "My machines",}}@@ -164,7 +164,7 @@ fn detail_for(row: &SpaceRow, status: SpaceStatus) -> String {.filter(|n| !n.is_empty()).unwrap_or(host)),- None => "My computers \u{b7} via relay".into(),+ None => "My machines".into(),},p => provider_label(p).into(),}@@ -514,20 +514,20 @@ pub struct ListView {/// not empty yet (an app update restarting the daemon must not show it).pub empty: bool,/// One quiet line where the Spaces go while the list is not complete- /// ("Reaching 6 computers…"), below what is known so far.+ /// ("Reaching 6 machines…"), below what is known so far.pub reaching_line: Option<String>,}-/// The Spaces page's empty state and "Reaching N computers…" line, for+/// The Spaces page's empty state and "Reaching N machines…" line, for/// every shell.pub fn list_view(input: ListViewInput) -> ListView {let reaching_line = if !input.loaded {Some("Loading Spaces…".to_string())} else if input.incomplete {Some(match input.reaching {- 0 => "Reaching your computers…".to_string(),- 1 => "Reaching 1 computer…".to_string(),- n => format!("Reaching {n} computers…"),+ 0 => "Reaching your machines…".to_string(),+ 1 => "Reaching 1 machine…".to_string(),+ n => format!("Reaching {n} machines…"),})} else {None@@ -565,16 +565,16 @@ mod tests {v(true, true, 6, 0),ListView {empty: false,- reaching_line: Some("Reaching 6 computers…".into())+ reaching_line: Some("Reaching 6 machines…".into())});assert_eq!(v(true, true, 1, 2).reaching_line.as_deref(),- Some("Reaching 1 computer…")+ Some("Reaching 1 machine…"));assert_eq!(v(true, true, 0, 0).reaching_line.as_deref(),- Some("Reaching your computers…")+ Some("Reaching your machines…"));assert!(!v(true, true, 3, 0).empty);// Complete: empty only with no Space, and no line.diff --git a/libs/cua/crates/cua-spaces-app-core/src/spaces/sidebar.rs b/libs/cua/crates/cua-spaces-app-core/src/spaces/sidebar.rsindex 80ce105add..bbd4e0b5cd 100644--- a/libs/cua/crates/cua-spaces-app-core/src/spaces/sidebar.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/spaces/sidebar.rs@@ -572,7 +572,7 @@ pub fn desktop_note(space: &Space) -> Option<String> {pub fn host_desktop_note(os: crate::model::SpaceOs) -> String {format!("This is {}\u{2019}s own screen, so it isn\u{2019}t shown here. \- Your other devices see and control it while you let them use it.",+ Your other machines see and control it while you let them use it.",os.this_machine_lower())}@@ -745,7 +745,7 @@ fn delete_confirm(space: &Space, remove_only: bool, delete_label: &str) -> Deletlet elsewhere = space.cloud_delete.as_deref() == Some("elsewhere");let message = if elsewhere {format!(- "It runs in {place} and was created on another device. Remove from List keeps it running there."+ "It runs in {place} and was created on another machine. Remove from List keeps it running there.")} else {format!(@@ -758,7 +758,7 @@ fn delete_confirm(space: &Space, remove_only: bool, delete_label: &str) -> Deletconfirm_label: "Delete Permanently".into(),confirm_enabled: !elsewhere,disabled_reason: elsewhere.then(|| {- "Created on another device: delete it there, or remove it from this list.".into()+ "Created on another machine: delete it there, or remove it from this list.".into()}),remove_label: Some("Remove from List".into()),cancel_label: "Cancel".into(),@@ -1636,7 +1636,7 @@ mod tests {.sections.iter().find(|s| s.title.code == "spaces.sidebar.section.my_computers")- .unwrap_or_else(|| panic!("no My computers for {features:?} {error:?}: {view:?}"));+ .unwrap_or_else(|| panic!("no My machines for {features:?} {error:?}: {view:?}"));assert_eq!(mine.rows.iter().map(|r| r.id.as_str()).collect::<Vec<_>>(),[other.as_str()],diff --git a/libs/cua/crates/cua-spaces-app-core/src/wizard.rs b/libs/cua/crates/cua-spaces-app-core/src/wizard.rsindex db18b5748c..57e4e43f55 100644--- a/libs/cua/crates/cua-spaces-app-core/src/wizard.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/wizard.rs@@ -1311,7 +1311,7 @@ fn microvm_support(Ok(vec![])} else {Err(MicrovmBlock::Why(- "needs one of your computers to run microVMs".into(),+ "needs one of your machines to run microVMs".into(),))}}@@ -1496,12 +1496,12 @@ fn runtime_switch(image: &SandboxImage, env: &WizardEnv) -> Option<RuntimeSwitch/// The one line under "Run on" when nothing can run the Space here and/// none of your machines is listed: how another Mac of yours joins.pub const OTHER_MAC_HINT: &str = "To use another Mac, open Cua Spaces on it, choose Set up for \- access and turn on Spaces for your devices. It then shows up here.";+ access and turn on Spaces for your machines. It then shows up here.";/// [`OTHER_MAC_HINT`] on Windows and Linux, where the other machine may be/// any computer.pub const OTHER_COMPUTER_HINT: &str = "To use another computer, open Cua Spaces on it, choose \- Set up for access and turn on Spaces for your devices. It then shows up here.";+ Set up for access and turn on Spaces for your machines. It then shows up here.";/// The line under "Run on" naming how another machine joins, in the words/// of the system the app runs on.@@ -3729,7 +3729,7 @@ pub fn view_on(state: &WizardState, env: &WizardEnv, os: SpaceOs) -> WizardViewLocation::Host => host_why.clone().unwrap_or_else(|| "Choose a computer.".to_string()),- Location::Auto => "None of your computers can take it now.".to_string(),+ Location::Auto => "None of your machines can take it now.".to_string(),Location::Local if runtime_switch.is_some() => match image.local {Some(LocalEngine::Container) => {format!(@@ -5242,7 +5242,7 @@ mod tests {assert_eq!(placement_options(&s, &e)[0].label, "This Mac");for (os, here, lower) in [(SpaceOs::Windows, "This PC", "this PC"),- (SpaceOs::Linux, "This computer", "this computer"),+ (SpaceOs::Linux, "This machine", "this machine"),] {let local = &placement_options_on(&s, &e, os)[0];assert_eq!(local.label, here);diff --git a/libs/cua/crates/cua-spaces-ffi/src/app_core.rs b/libs/cua/crates/cua-spaces-ffi/src/app_core.rsindex 93f2e93cf2..a255cd57c6 100644--- a/libs/cua/crates/cua-spaces-ffi/src/app_core.rs+++ b/libs/cua/crates/cua-spaces-ffi/src/app_core.rs@@ -3129,8 +3129,8 @@ pub(crate) fn setup_options_for_request(request: AppHostSetupRequest,) -> Result<cua_sdk::HostSetupOptions> {let request = core::host::validate_setup(request).map_err(CuaError::InvalidArgument)?;- // The default choice is "let my other devices use this computer": its- // screen and Spaces. Pass what the core resolved, not the SDK's own+ // The default setup lets other machines create Spaces here and keeps+ // the desktop private. Pass what the core resolved, not the SDK's own// (CLI) profile defaults, so both agree.let (share_desktop, provide_spaces) = request.settings();Ok(cua_sdk::HostSetupOptions {@@ -3201,16 +3201,23 @@ mod host_setup_tests {(o.share_desktop, o.provide_spaces),(Some(false), Some(true)));- // The default choice, "let my other devices use this computer",- // turns on the screen and leaves Spaces to the host's default- // (cua_host::default_provide_spaces: on for a new relay setup, kept- // as it was on a machine set up before); a direct connection only- // the screen.+ // The default setup keeps the desktop private and leaves Spaces to+ // the host's default (cua_host::default_provide_spaces: on for a+ // new relay setup, kept as it was on a machine set up before); a+ // direct connection always shares the screen.let o = setup_options_for_request(AppHostSetupRequest {mode: "relay".into(),..Default::default()}).unwrap();+ assert_eq!((o.share_desktop, o.provide_spaces), (Some(false), None));+ // The desktop choice also lets other machines control this desktop.+ let o = setup_options_for_request(AppHostSetupRequest {+ mode: "relay".into(),+ profile: Some("desktop".into()),+ ..Default::default()+ })+ .unwrap();assert_eq!((o.share_desktop, o.provide_spaces), (Some(true), None));let o = setup_options_for_request(AppHostSetupRequest {mode: "direct".into(),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 236195e234..2e82d47d52 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@@ -522,7 +522,7 @@ pub struct AppListView {/// not empty yet (an app update restarting the daemon must not show it).pub empty: bool,/// One quiet line where the Spaces go while the list is not complete- /// ("Reaching 6 computers…"), below what is known so far.+ /// ("Reaching 6 machines…"), below what is known so far.pub reaching_line: Option<String>,}@@ -7463,6 +7463,8 @@ pub struct AppMenuInput {}/// The parts of the host status the summary reads (`cua-host`'s status).+/// The summary is about this machine's own desktop (its row in the Spaces+/// list), so `sharing` is on only while the desktop is shared.pub type AppHostSummaryInput = core::host::HostSummaryInput;#[uniffi::remote(Record)]pub struct AppHostSummaryInput {@@ -7498,16 +7500,15 @@ pub struct AppHostSetupRequest {pub name: Option<String>,/// Accounts (ids or emails) allowed besides the owner.pub allow: Option<Vec<String>>,- /// What the machine is for: `desktop` (share this desktop, and- /// provide Spaces on a new relay setup; the default) or `spare` (only- /// run Spaces for your other devices).+ /// What the machine is for: `spare` (the default: other machines+ /// create Spaces here, its desktop stays private) or `desktop` (also+ /// let other machines control this desktop).pub profile: Option<String>,/// Share this machine's own desktop (overrides the profile).pub share_desktop: Option<bool>,- /// Create Spaces for your other devices (overrides the profile).- /// `None` with the desktop profile: on for a new relay setup; a- /// machine set up before keeps its setting (the host decides,- /// `cua_host::default_provide_spaces`).+ /// Let other machines create Spaces here (overrides the profile).+ /// `None`: on for a new relay setup; a machine set up before keeps+ /// its setting (the host decides, `cua_host::default_provide_spaces`).pub provide_spaces: Option<bool>,}@@ -10341,7 +10342,7 @@ pub struct AppMachinesViewRelay {pub team: Option<String>,/// Its owner's email, when the relay says.pub owner_email: Option<String>,- /// It creates Spaces for your devices (`None`: it did not say).+ /// It lets your other machines create Spaces (`None`: it did not say).pub provides_spaces: Option<bool>,}@@ -10392,7 +10393,8 @@ pub type AppMachinesViewToggle = core::machines_view::MachinesViewToggle;pub struct AppMachinesViewToggle {/// `spaces` or `desktop`.pub id: String,- /// "Provide Spaces", "Share this desktop".+ /// "Let other machines create Spaces here", "Let other machines control+ /// this desktop".pub label: String,/// One line under it.pub help: String,@@ -10547,7 +10549,8 @@ pub struct AppMachinesViewMachine {pub notice: Option<String>,/// The notice's button (Sign In).pub notice_action: Option<AppHostAction>,- /// Provide Spaces, then Share this desktop.+ /// Create Spaces here, then control this desktop (This Mac: the+ /// desktop switch only).pub toggles: Vec<AppMachinesViewToggle>,/// Under read-only switches: where they change.pub toggles_note: Option<String>,diff --git a/libs/cua/crates/cua-telemetry/src/schema.rs b/libs/cua/crates/cua-telemetry/src/schema.rsindex aaf689791b..22ddfd447b 100644--- a/libs/cua/crates/cua-telemetry/src/schema.rs+++ b/libs/cua/crates/cua-telemetry/src/schema.rs@@ -1576,7 +1576,7 @@ pub const EVENTS: &[EventSpec] = &[p("profile",Kind::Enum(HOST_PROFILES),- "Share this desktop, only run Spaces for other devices, or both.",+ "Share this desktop, only run Spaces for other machines, or both.",),OUTCOME,ERROR_KIND,diff --git a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swiftindex 1d8529ca75..cab5632bc6 100644--- a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift+++ b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift@@ -20092,9 +20092,9 @@ public struct AppHostSetupRequest: Equatable, Hashable {*/public var allow: [String]?/**- * What the machine is for: `desktop` (share this desktop, and- * provide Spaces on a new relay setup; the default) or `spare` (only- * run Spaces for your other devices).+ * What the machine is for: `spare` (the default: other machines+ * create Spaces here, its desktop stays private) or `desktop` (also+ * let other machines control this desktop).*/public var profile: String?/**@@ -20102,10 +20102,9 @@ public struct AppHostSetupRequest: Equatable, Hashable {*/public var shareDesktop: Bool?/**- * Create Spaces for your other devices (overrides the profile).- * `None` with the desktop profile: on for a new relay setup; a- * machine set up before keeps its setting (the host decides,- * `cua_host::default_provide_spaces`).+ * Let other machines create Spaces here (overrides the profile).+ * `None`: on for a new relay setup; a machine set up before keeps+ * its setting (the host decides, `cua_host::default_provide_spaces`).*/public var provideSpaces: Bool?@@ -20128,18 +20127,17 @@ public struct AppHostSetupRequest: Equatable, Hashable {* Accounts (ids or emails) allowed besides the owner.*/allow: [String]?,/**- * What the machine is for: `desktop` (share this desktop, and- * provide Spaces on a new relay setup; the default) or `spare` (only- * run Spaces for your other devices).+ * What the machine is for: `spare` (the default: other machines+ * create Spaces here, its desktop stays private) or `desktop` (also+ * let other machines control this desktop).*/profile: String?,/*** Share this machine's own desktop (overrides the profile).*/shareDesktop: Bool?,/**- * Create Spaces for your other devices (overrides the profile).- * `None` with the desktop profile: on for a new relay setup; a- * machine set up before keeps its setting (the host decides,- * `cua_host::default_provide_spaces`).+ * Let other machines create Spaces here (overrides the profile).+ * `None`: on for a new relay setup; a machine set up before keeps+ * its setting (the host decides, `cua_host::default_provide_spaces`).*/provideSpaces: Bool?) {self.mode = modeself.relayUrl = relayUrl@@ -21809,7 +21807,7 @@ public struct AppListView: Equatable, Hashable {public var empty: Bool/*** One quiet line where the Spaces go while the list is not complete- * ("Reaching 6 computers…"), below what is known so far.+ * ("Reaching 6 machines…"), below what is known so far.*/public var reachingLine: String?@@ -21823,7 +21821,7 @@ public struct AppListView: Equatable, Hashable {*/empty: Bool,/*** One quiet line where the Spaces go while the list is not complete- * ("Reaching 6 computers…"), below what is known so far.+ * ("Reaching 6 machines…"), below what is known so far.*/reachingLine: String?) {self.empty = emptyself.reachingLine = reachingLine@@ -23968,7 +23966,8 @@ public struct AppMachinesViewMachine: Equatable, Hashable {*/public var noticeAction: AppHostAction?/**- * Provide Spaces, then Share this desktop.+ * Create Spaces here, then control this desktop (This Mac: the+ * desktop switch only).*/public var toggles: [AppMachinesViewToggle]/**@@ -24067,7 +24066,8 @@ public struct AppMachinesViewMachine: Equatable, Hashable {* The notice's button (Sign In).*/noticeAction: AppHostAction?,/**- * Provide Spaces, then Share this desktop.+ * Create Spaces here, then control this desktop (This Mac: the+ * desktop switch only).*/toggles: [AppMachinesViewToggle],/*** Under read-only switches: where they change.@@ -24322,7 +24322,7 @@ public struct AppMachinesViewRelay: Equatable, Hashable {*/public var ownerEmail: String?/**- * It creates Spaces for your devices (`None`: it did not say).+ * It lets your other machines create Spaces (`None`: it did not say).*/public var providesSpaces: Bool?@@ -24342,7 +24342,7 @@ public struct AppMachinesViewRelay: Equatable, Hashable {* Its owner's email, when the relay says.*/ownerEmail: String?,/**- * It creates Spaces for your devices (`None`: it did not say).+ * It lets your other machines create Spaces (`None`: it did not say).*/providesSpaces: Bool?) {self.id = idself.role = role@@ -24782,7 +24782,8 @@ public struct AppMachinesViewToggle: Equatable, Hashable {*/public var id: String/**- * "Provide Spaces", "Share this desktop".+ * "Let other machines create Spaces here", "Let other machines control+ * this desktop".*/public var label: String/**@@ -24818,7 +24819,8 @@ public struct AppMachinesViewToggle: Equatable, Hashable {* `spaces` or `desktop`.*/id: String,/**- * "Provide Spaces", "Share this desktop".+ * "Let other machines create Spaces here", "Let other machines control+ * this desktop".*/label: String,/*** One line under it.