Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(cua): require macOS 15 for computer use

Farhad Mammadove8ab4818a98e
diff --git a/docs/computer-use-integration.md b/docs/computer-use-integration.md
index 9fb28777b1..ccf3767f6b 100644
--- a/docs/computer-use-integration.md
+++ b/docs/computer-use-integration.md
@@ -109,6 +109,14 @@ GNOME/Wayland additionally requires WinRects v8 plus the exact Cua health-report
and `?Privacy_ScreenCapture`). Expect macOS 15's ~monthly screen-recording
re-prompt; the `persistent-content-capture` entitlement is Apple-gated and
not realistically available to us.
+- Computer use needs macOS 15 or later: the pinned 0.45.4 SDK declares
+ `minos 13.0` in `otool -l`, but links ScreenCaptureKit strongly and names
+ `SCScreenshotManager` (macOS 14) and `SCRecordingOutput` (macOS 15), so dyld
+ cannot load it below 15. `macDriverUnsupported` in
+ `electron/capabilities.cjs` is that floor: `startCua` stops there, and the app
+ itself still opens on macOS 12. When bumping `@trycua/cua-driver`, re-check
+ `otool -L | grep ScreenCaptureKit` for `(weak)` and the `nm -u` class list;
+ `minos` alone cannot see this.
### MCP exposure: the official `cua-driver mcp` proxy (no custom proxy)
diff --git a/electron/capabilities.cjs b/electron/capabilities.cjs
index 15ad767c8c..4ca09fed93 100644
--- a/electron/capabilities.cjs
+++ b/electron/capabilities.cjs
@@ -67,11 +67,11 @@ function linuxLocalControlSupport(platform, env, { hyprlandPlugin } = {}) {
});
}
-/** macOS 12 and older (Darwin before 22): the driver is built for macOS 13 and fails to load, so it is never tried there. */
+/** macOS 14 and older (Darwin before 24): the driver links ScreenCaptureKit classes added in 14 and 15 and fails to load, so it is never tried there. */
function macDriverUnsupported(platform, release) {
const darwinMajor = Number(String(release).split(".")[0]);
- if (platform !== "darwin" || !darwinMajor || darwinMajor >= 22) return null;
- return { reasonCode: "macos-version-unsupported", reason: "Local desktop control needs macOS 13 Ventura or later." };
+ if (platform !== "darwin" || !darwinMajor || darwinMajor >= 24) return null;
+ return { reasonCode: "macos-version-unsupported", reason: "Local desktop control needs macOS 15 Sequoia or later." };
}
/** Computer control's helper is gone, or the system refused to run it: access denied (os error 5), or Windows Security
diff --git a/electron/capabilities.test.mjs b/electron/capabilities.test.mjs
index ff6c6f1c9f..7020575064 100644
--- a/electron/capabilities.test.mjs
+++ b/electron/capabilities.test.mjs
@@ -365,11 +365,12 @@ describe("desktop capabilities", () => {
});
describe("Mac driver support", () => {
- it("names macOS 12 and older as too old for the driver, before it is loaded", () => {
- const tooOld = { reasonCode: "macos-version-unsupported", reason: "Local desktop control needs macOS 13 Ventura or later." };
+ it("names macOS 14 and older as too old for the driver, before it is loaded", () => {
+ const tooOld = { reasonCode: "macos-version-unsupported", reason: "Local desktop control needs macOS 15 Sequoia or later." };
expect(macDriverUnsupported("darwin", "21.6.0")).toEqual(tooOld);
expect(macDriverUnsupported("darwin", "20.6.0")).toEqual(tooOld);
- expect(macDriverUnsupported("darwin", "22.1.0")).toBeNull();
+ expect(macDriverUnsupported("darwin", "23.6.0")).toEqual(tooOld);
+ expect(macDriverUnsupported("darwin", "24.0.0")).toBeNull();
expect(macDriverUnsupported("darwin", "25.0.0")).toBeNull();
expect(macDriverUnsupported("win32", "10.0.19045")).toBeNull();
expect(macDriverUnsupported("darwin", "")).toBeNull();
@@ -378,7 +379,7 @@ describe("Mac driver support", () => {
it("keeps the too-old code for the page", () => {
const localConnection = { mode: "unavailable", ...macDriverUnsupported("darwin", "21.6.0") };
expect(desktopCapabilities({ platform: "darwin", localConnection }).localComputer).toMatchObject({
- available: false, reasonCode: "macos-version-unsupported", message: "Local desktop control needs macOS 13 Ventura or later.",
+ available: false, reasonCode: "macos-version-unsupported", message: "Local desktop control needs macOS 15 Sequoia or later.",
});
});
});
diff --git a/electron/cua-launch.test.mjs b/electron/cua-launch.test.mjs
index 13d48849d6..99542d6d58 100644
--- a/electron/cua-launch.test.mjs
+++ b/electron/cua-launch.test.mjs
@@ -102,7 +102,8 @@ afterEach(async () => {
rmSync(fixture.home, { recursive: true, force: true });
});
-describe.skipIf(process.platform !== "darwin")("async standalone CUA launch (isolated commands)", () => {
+// Darwin 24 is macOS 15: an older Mac stops at the gate before any of these launches.
+describe.skipIf(process.platform !== "darwin" || Number(os.release().split(".")[0]) < 24)("async standalone CUA launch (isolated commands)", () => {
it("keeps the event loop responsive and publishes the existing descriptor shape", async () => {
let ticks = 0;
const timer = setInterval(() => ticks++, 10);
@@ -265,22 +266,24 @@ describe.skipIf(process.platform !== "darwin")("async standalone CUA launch (iso
});
});
-it("keeps the too-old-macOS reason when the person retries", async () => {
- vi.spyOn(process, "platform", "get").mockReturnValue("darwin");
- vi.spyOn(os, "release").mockReturnValue("21.6.0");
- try {
- cua.registerCuaIpc();
- const retry = fixture.handlers.get("cua:linux-retry");
- await expect(retry({ senderFrame: { url: "http://127.0.0.1:19777/" } })).resolves.toMatchObject({
- enabled: false,
- status: "error",
- reasonCode: "macos-version-unsupported",
- });
- expect(fixture.hosts).toHaveLength(0);
- } finally {
- vi.restoreAllMocks();
- }
-});
+for (const [releaseVersion, macos] of [["21.6.0", "12"], ["23.6.0", "14"]]) {
+ it(`keeps the too-old-macOS reason on macOS ${macos} when the person retries`, async () => {
+ vi.spyOn(process, "platform", "get").mockReturnValue("darwin");
+ vi.spyOn(os, "release").mockReturnValue(releaseVersion);
+ try {
+ cua.registerCuaIpc();
+ const retry = fixture.handlers.get("cua:linux-retry");
+ await expect(retry({ senderFrame: { url: "http://127.0.0.1:19777/" } })).resolves.toMatchObject({
+ enabled: false,
+ status: "error",
+ reasonCode: "macos-version-unsupported",
+ });
+ expect(fixture.hosts).toHaveLength(0);
+ } finally {
+ vi.restoreAllMocks();
+ }
+ });
+}
it("does not add blocking subprocess calls to Electron runtime modules", () => {
const root = dirname(fileURLToPath(import.meta.url));
diff --git a/electron/cua-watch-restart.test.mjs b/electron/cua-watch-restart.test.mjs
index ed23fb0875..4e4ffe6535 100644
--- a/electron/cua-watch-restart.test.mjs
+++ b/electron/cua-watch-restart.test.mjs
@@ -1,7 +1,7 @@
// The Mac driver's watch as cua.mjs wires it: a real start, a socket that stops answering, and a real restart. Nothing here can
// start the operator's own driver: attachStandalone stops at the app it can't find, and no child process exists to launch.
import { mkdtempSync, rmSync } from "node:fs";
-import { tmpdir } from "node:os";
+import os, { tmpdir } from "node:os";
import { join } from "node:path";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
@@ -68,7 +68,8 @@ afterEach(async () => {
});
const pause = (ms = 60) => new Promise((resolve) => setTimeout(resolve, ms));
-describe.skipIf(process.platform !== "darwin")("the Mac driver dies after it started", () => {
+// Darwin 24 is macOS 15: an older Mac stops at the gate before any of this.
+describe.skipIf(process.platform !== "darwin" || Number(os.release().split(".")[0]) < 24)("the Mac driver dies after it started", () => {
it("leaves a driver that answers alone", async () => {
await cua.startCua();
await pause();
diff --git a/src/components/MacLocalControl.test.ts b/src/components/MacLocalControl.test.ts
index 4859249216..ad76a158c9 100644
--- a/src/components/MacLocalControl.test.ts
+++ b/src/components/MacLocalControl.test.ts
@@ -35,7 +35,7 @@ describe("Mac local computer status", () => {
});
it("offers no permission repair on a Mac too old for the driver", () => {
- fixture.localComputer = { available: false, status: "unavailable", reasonCode: "macos-version-unsupported", message: "Local desktop control needs macOS 13 Ventura or later." } as DesktopCapabilities["localComputer"];
+ fixture.localComputer = { available: false, status: "unavailable", reasonCode: "macos-version-unsupported", message: "Local desktop control needs macOS 15 Sequoia or later." } as DesktopCapabilities["localComputer"];
expect(renderToStaticMarkup(createElement(MacLocalControl))).toBe("");
});
diff --git a/src/lib/local-computer.test.ts b/src/lib/local-computer.test.ts
index 2cf56b144a..8860bdaed4 100644
--- a/src/lib/local-computer.test.ts
+++ b/src/lib/local-computer.test.ts
@@ -107,13 +107,13 @@ describe("local computer UI eligibility", () => {
);
});
- it("tells a Mac older than macOS 13 to update, not to grant permissions", () => {
+ it("tells a Mac older than macOS 15 to update, not to grant permissions", () => {
const capabilities = {
host: { platform: "darwin" as const, label: "Mac" },
localComputer: { available: false, enabled: false, status: "unavailable", reasonCode: "macos-version-unsupported" },
} as DesktopCapabilities;
expect(localComputerDisabledReason({ capabilities, providerSupportsLocal: true })).toBe(
- "Bots can't use this Mac: local desktop control needs macOS 13 Ventura or later. Update macOS to use it.",
+ "Bots can't use this Mac: local desktop control needs macOS 15 Sequoia or later. Update macOS to use it.",
);
expect(localComputerSelectable({ capabilities, providerSupportsLocal: true })).toBe(false);
});
diff --git a/src/locales/de.json b/src/locales/de.json
index 82a55132b1..c829dbb8a2 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -2767,7 +2767,7 @@
"computer.problem.localNeedsApp": "Nur die {app}-App auf diesem Computer kann einen Bot ihn benutzen lassen. Öffne die App hier, um ihn zu benutzen.",
"computer.problem.localWindows": "Bots können diesen PC gerade nicht benutzen. Starte {app} neu, und wenn das nicht hilft, öffne Einstellungen → Diese App → Hilfe.",
"computer.problem.localMac": "Bots können diesen Mac noch nicht benutzen. Prüfe, ob {app} in Systemeinstellungen → Datenschutz & Sicherheit unter Bildschirmaufnahme und Bedienungshilfen erlaubt ist, und starte es dann neu.",
- "computer.problem.localMacTooOld": "Bots können diesen Mac nicht benutzen: Die lokale Desktopsteuerung braucht macOS 13 Ventura oder neuer. Aktualisiere macOS, um sie zu nutzen.",
+ "computer.problem.localMacTooOld": "Bots können diesen Mac nicht benutzen: Die lokale Desktopsteuerung braucht macOS 15 Sequoia oder neuer. Aktualisiere macOS, um sie zu nutzen.",
"place.view.ccNeedsKey.short": "Zuerst Boat verbinden",
"place.action.addBoatKey": "Boat verbinden",
"place.view.browserOff.short": "Ausgeschaltet",
diff --git a/src/locales/en.json b/src/locales/en.json
index a172bf1117..0a5a8057b2 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -5350,7 +5350,7 @@
"computer.problem.localNeedsApp": "Only the {app} app on this computer can let a bot use it. Open the app here to use it.",
"computer.problem.localWindows": "Bots can't use this PC right now. Restart {app}, and if that doesn't help, open Settings → This app → Help.",
"computer.problem.localMac": "Bots can't use this Mac yet. Check that {app} is allowed under Screen Recording and Accessibility in System Settings → Privacy & Security, then restart it.",
- "computer.problem.localMacTooOld": "Bots can't use this Mac: local desktop control needs macOS 13 Ventura or later. Update macOS to use it.",
+ "computer.problem.localMacTooOld": "Bots can't use this Mac: local desktop control needs macOS 15 Sequoia or later. Update macOS to use it.",
"computer.problem.localRemoteServer": "Bots on your own server can't use this computer. Switch back to This computer to use it.",
"computer.problem.oldImage": "The private desktop is out of date; replace it",
"computer.problem.unmanaged": "The existing container was not created by {app}; recreate it",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 20958d5738..8b728e556b 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -8111,7 +8111,7 @@
"computer.problem.localNeedsApp": "Só o app {app} neste computador pode permitir que um bot use a máquina. Abra o app aqui para isso.",
"computer.problem.localWindows": "Os bots não conseguem usar este PC agora. Reinicie o app {app}. Se não resolver, abra Configurações → Este app → Ajuda.",
"computer.problem.localMac": "Os bots ainda não conseguem usar este Mac. Confira se o app {app} tem permissão em Gravação de Tela e Acessibilidade, em Ajustes do Sistema → Privacidade e Segurança, e reinicie o app.",
- "computer.problem.localMacTooOld": "Os bots não conseguem usar este Mac: o controle local da área de trabalho precisa do macOS 13 Ventura ou posterior. Atualize o macOS para usá-lo.",
+ "computer.problem.localMacTooOld": "Os bots não conseguem usar este Mac: o controle local da área de trabalho precisa do macOS 15 Sequoia ou posterior. Atualize o macOS para usá-lo.",
"computer.problem.localRemoteServer": "Os bots no seu próprio servidor não conseguem usar este computador. Volte para Este computador para usá-lo.",
"ask.header.asks": "{name} pergunta",
"ask.settled.chose": "Você escolheu:",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 466d357f44..7c427ed050 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -4052,7 +4052,7 @@
"server.checkBack.started": "65fea36da026916e99f81c23b26bd6204cd870d003bdde01b25e43f0fe8704c3",
"server.checkBack.cancelled": "2bc90e45e77b2d3a20a1d8a3bd9c6674080fb2897563103dcfdde6e267a33f22",
"server.checkBack.failed": "cab3bc124333339d06dc937a01b485c192040fad067a74e7558db8df3e2b0dda",
- "computer.problem.localMacTooOld": "bf3b76c9975f9e324731f76a694f19ebab0ef4dad5758b77176547c5953fc9ed",
+ "computer.problem.localMacTooOld": "4704202223ba0e31a713b9925a8e1d8effd8bf1014b2a9746d61aeed79b5738a",
"voice.hearWithEleven": "0e179499c302bb4e934abef524b14055911d4944188e205d34e7afadad716484",
"voice.hearWithEleven.help": "fb2aab6844f1ecd9bbbb92b589062d6317fbfa2c1384b4c3ceb4e9f88f49c53a",
"voice.hearLanguage": "e0e77e5c6f38efbd4bbb93e7b7641c5de9f88214c48133d6582fd0149cf8cbef",
@@ -37210,7 +37210,7 @@
"cloudAccount.resetKept": "9243efedc1e40bb499acadf970053efa1b7e3a9fc90e3662b3efdd67b89bf453",
"cloudAccount.unsaved": "69f16bd2ad4856e040d928ce9482507b14e26f66c500287859c8634ef6117149",
"homeScreen.offlineNetwork": "f628e51f2e014252ca9826b7828fb417ad2895267a42716fb41e7140615154c8",
- "computer.problem.localMacTooOld": "bf3b76c9975f9e324731f76a694f19ebab0ef4dad5758b77176547c5953fc9ed",
+ "computer.problem.localMacTooOld": "4704202223ba0e31a713b9925a8e1d8effd8bf1014b2a9746d61aeed79b5738a",
"homeScreen.offlineWait": "7de832bcc189e9fa19b386a0a67d938840772d5500985c835fa1db1afee4d49f",
"voice.hearWithEleven": "0e179499c302bb4e934abef524b14055911d4944188e205d34e7afadad716484",
"voice.hearWithEleven.help": "fb2aab6844f1ecd9bbbb92b589062d6317fbfa2c1384b4c3ceb4e9f88f49c53a",