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(spaces): shorten the macOS team-share refusal message (#5056)

ddupont1c985c2dee92
diff --git a/libs/cua/crates/cua-host/src/testing.rs b/libs/cua/crates/cua-host/src/testing.rs
index b6c4229ef0..7b3c3ac8b3 100644
--- a/libs/cua/crates/cua-host/src/testing.rs
+++ b/libs/cua/crates/cua-host/src/testing.rs
@@ -1531,7 +1531,7 @@ async fn team_add_machine(
if macos {
return err(
StatusCode::FORBIDDEN,
- "macOS Spaces (uVisor-backed or any other virtual macOS) cannot be shared with a team: macOS licensing allows one user per macOS copy",
+ "macOS Spaces cannot be shared with a team: macOS licensing allows one user per macOS copy",
);
}
let t = match require_team_manager(&mut st, &id, &who) {
diff --git a/libs/cua/crates/cua-spaces/src/share.rs b/libs/cua/crates/cua-spaces/src/share.rs
index 1e9dd337f8..5d688f467e 100644
--- a/libs/cua/crates/cua-spaces/src/share.rs
+++ b/libs/cua/crates/cua-spaces/src/share.rs
@@ -208,7 +208,7 @@ fn team_of_with(who: &str, teams: bool) -> Option<Result<String>> {
}
/// Why a macOS Space cannot be a team machine.
-pub const MACOS_TEAM_REFUSED: &str = "macOS Spaces (uVisor-backed or any other virtual macOS) cannot be shared with a team: macOS licensing allows one user per macOS copy. Share a Linux or Windows Space, or a whole Mac set up with `cua host setup`";
+pub const MACOS_TEAM_REFUSED: &str = "macOS Spaces cannot be shared with a team: macOS licensing allows one user per macOS copy. Share a Linux or Windows Space, or a whole Mac set up with `cua host setup`";
/// Moves `who` onto the list for `role` (or off both with `None`).
pub fn apply_share(