Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(cua-spaces): say "machine" in the macOS app's last device and computer messages (#6162)

ddupont204acb4e5e81
diff --git a/apps/cua-spaces-desktop/src/model/devices.ts b/apps/cua-spaces-desktop/src/model/devices.ts
index 17e6fdc734..a457d02441 100644
--- a/apps/cua-spaces-desktop/src/model/devices.ts
+++ b/apps/cua-spaces-desktop/src/model/devices.ts
@@ -215,6 +215,6 @@ export class DevicesUnavailable extends Error {
/** Only say "approved" when the relay says the device is enrolled: anything else would leave the other device waiting while this one reads success. */
export function requireEnrolled(device: RelayDevice): void {
if (device.state !== "enrolled") {
- throw new Error(`The relay did not enroll ${device.name} (${device.id}): it is ${device.state}. Ask that device for a new code and try again.`);
+ throw new Error(`The relay did not enroll ${device.name} (${device.id}): it is ${device.state}. Ask that machine for a new code and try again.`);
}
}
diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AgentKeysModel.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AgentKeysModel.swift
index 7b1231cf09..e71f4f6671 100644
--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AgentKeysModel.swift
+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AgentKeysModel.swift
@@ -82,7 +82,7 @@ public final class AgentKeysModel {
fields: (k["fields"] as? [String: String]) ?? [:])
}
let unavailable = report?["available"] as? Bool == false
- ? (report?["unavailable"] as? String ?? "this computer can't keep keys") : nil
+ ? (report?["unavailable"] as? String ?? "this machine can't keep keys") : nil
return AppAgentKeysInput(keys: keys.filter { !$0.env.isEmpty }, unavailable: unavailable, error: error)
}
diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppModel.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppModel.swift
index 2b2d1a6315..f655872a23 100644
--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppModel.swift
+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppModel.swift
@@ -524,7 +524,7 @@ public final class AppModel {
if let machine { try await backend.relayUnregister(id: "relay:\(machine)") }
if let device {
guard let relay = devices.devices else {
- throw CuaError.InvalidArgument(message: "Revoking a device needs a signed-in Cua account")
+ throw CuaError.InvalidArgument(message: "Revoking a machine needs a signed-in Cua account")
}
try await relay.revoke(id: device)
}
@@ -926,7 +926,7 @@ public final class AppModel {
// Your other computers could not be read: their rows are the
// last known ones (this Mac's are current).
rosterError = list.notice.isEmpty ? nil
- : "Could not reach your other computers. Their Spaces may be out of date."
+ : "Could not reach your other machines. Their Spaces may be out of date."
await hostRead
// Your machines' load for their sidebar lines, every so often
// (each machine is asked; never holds up the list).
diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swift
index c70a31c433..461c751a58 100644
--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swift
+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swift
@@ -69,7 +69,7 @@ public final class LiveDevices: DevicesRunning, @unchecked Sendable {
guard device.state == "enrolled" else {
throw CuaError.Runtime(
message: "The relay did not enroll \(device.name) (\(device.id)): it is \(device.state). "
- + "Ask that device for a new code and try again.")
+ + "Ask that machine for a new code and try again.")
}
}
public func rename(id: String, name: String) async throws { _ = try await inner.rename(id: id, name: name) }