From 8ab964ad598aef50b30619503cda2b1a76fccd4e Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 6 Oct 2026 10:27:40 -0700 Subject: [PATCH 1/3] feat(cua): turn on computer use from settings on any host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Settings → Integrations → Computer turns Cua computer use on for the selected environment, and shows whether its driver is running or why it could not start. Setup fits the host: on the Mac that runs the environment it walks through Accessibility and Screen Recording for T3 Code and restarts the driver after the grants; for a remote Mac it says who must grant them; Windows and Linux hosts need only a signed-in desktop. The mobile app's agent settings get the same switch. A new server.checkComputerUse RPC reports the host status, so every client reads the same answer. User docs cover each platform. Ported from #10899 (Julius's permission onboarding). Co-Authored-By: Claude Opus 5.5 (1M context) --- .../SettingsServerControlsRouteScreen.tsx | 15 ++ apps/server/src/auth/RpcAuthorization.ts | 1 + apps/server/src/cua/CuaDriver.ts | 19 ++- .../src/observability/RpcInstrumentation.ts | 1 + apps/server/src/ws.ts | 9 + .../components/settings/CuaSetupDialog.tsx | 156 ++++++++++++++++++ .../settings/IntegrationsSettings.tsx | 103 +++++++++++- .../components/settings/SettingsPanels.tsx | 2 + .../src/components/settings/settingsSearch.ts | 7 + docs/README.md | 1 + docs/user/computer-use.md | 42 +++++ packages/client-runtime/src/state/server.ts | 11 ++ packages/contracts/src/cua.ts | 14 ++ packages/contracts/src/rpc.ts | 9 + 14 files changed, 388 insertions(+), 2 deletions(-) create mode 100644 apps/web/src/components/settings/CuaSetupDialog.tsx create mode 100644 docs/user/computer-use.md diff --git a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx index c48328d62d66f..0e2bde2354f89 100644 --- a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx +++ b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx @@ -407,6 +407,21 @@ function ServerSettingsDetail(props: { readonly page: SettingsPage }) { onValueChange={(value) => write({ enableAgentBrowserAccess: value })} /> + + write({ enableCua: value })} + /> + 0} /> ) : null} diff --git a/apps/server/src/auth/RpcAuthorization.ts b/apps/server/src/auth/RpcAuthorization.ts index a765c28476322..fd09f944af2f2 100644 --- a/apps/server/src/auth/RpcAuthorization.ts +++ b/apps/server/src/auth/RpcAuthorization.ts @@ -67,6 +67,7 @@ export const RPC_REQUIRED_SCOPES = { [WS_METHODS.serverProbe]: AuthOrchestrationReadScope, [WS_METHODS.serverGetConfig]: AuthOrchestrationReadScope, [WS_METHODS.serverGetNpmRelease]: AuthOrchestrationReadScope, + [WS_METHODS.serverCheckComputerUse]: AuthOrchestrationReadScope, [WS_METHODS.serverRefreshProviders]: AuthOrchestrationReadScope, [WS_METHODS.serverUpdateProvider]: AuthProvidersManageScope, [WS_METHODS.providerAuthStart]: AuthProvidersManageScope, diff --git a/apps/server/src/cua/CuaDriver.ts b/apps/server/src/cua/CuaDriver.ts index 9c7d389b64b36..2b6e38828efba 100644 --- a/apps/server/src/cua/CuaDriver.ts +++ b/apps/server/src/cua/CuaDriver.ts @@ -1,6 +1,11 @@ import * as NodeModule from "node:module"; -import type { CuaDriverMcpConfiguration, DesktopCuaDriverReport } from "@t3tools/contracts"; +import type { + CuaDriverMcpConfiguration, + CuaHostStatus, + DesktopCuaDriverReport, +} from "@t3tools/contracts"; +import * as HostProcess from "@t3tools/shared/HostProcess"; import type { EmbeddedCuaDriverHost, EmbeddedDriverConnection } from "@trycua/cua-driver/embedded"; import * as Config from "effect/Config"; import * as Context from "effect/Context"; @@ -145,6 +150,8 @@ export class CuaDriver extends Context.Service< readonly acquire: Effect.Effect>; /** Why the last start failed, until a later start succeeds. */ readonly lastFailure: Effect.Effect>; + /** What setup flows show: the host OS, and whether the driver runs or why not. */ + readonly status: Effect.Effect; } >()("t3/cua/CuaDriver") {} @@ -176,6 +183,8 @@ export const make = Effect.fn("CuaDriver.make")(function* ( stopped?: boolean; /** Message of the typed error that ended this attempt, for the readiness signal. */ failure?: string; + /** Set once the host reported its MCP descriptor. */ + running?: boolean; }; let current: Attempt | undefined; let closed = false; @@ -242,6 +251,7 @@ export const make = Effect.fn("CuaDriver.make")(function* ( return; } lastFailure = undefined; + attempt.running = true; yield* Deferred.succeed(attempt.ready, Option.some(mcp)); }), ); @@ -291,10 +301,17 @@ export const make = Effect.fn("CuaDriver.make")(function* ( return attempt ? yield* Deferred.await(attempt.ready) : Option.none(); }); + const platform = yield* HostProcess.Platform; return CuaDriver.of({ enabled: enabled, acquire, lastFailure: Effect.sync(() => Option.fromNullishOr(lastFailure)), + status: Effect.sync(() => ({ + platform: + platform === "darwin" || platform === "linux" || platform === "win32" ? platform : "other", + running: current?.running === true, + ...(lastFailure === undefined ? {} : { failure: lastFailure }), + })), }); }); diff --git a/apps/server/src/observability/RpcInstrumentation.ts b/apps/server/src/observability/RpcInstrumentation.ts index a103dc14e3678..2e5f6c25ef0e8 100644 --- a/apps/server/src/observability/RpcInstrumentation.ts +++ b/apps/server/src/observability/RpcInstrumentation.ts @@ -37,6 +37,7 @@ const RPC_AGGREGATES = { [ORCHESTRATION_V2_WS_METHODS.subscribePromptSuggestion]: "orchestrationV2", [WS_METHODS.projectsMutate]: "orchestration", [WS_METHODS.serverProbe]: "server", + [WS_METHODS.serverCheckComputerUse]: "server", [WS_METHODS.serverGetConfig]: "server", [WS_METHODS.serverGetNpmRelease]: "server", [WS_METHODS.serverRefreshProviders]: "server", diff --git a/apps/server/src/ws.ts b/apps/server/src/ws.ts index bbe80f28e9681..c5ca5905af36b 100644 --- a/apps/server/src/ws.ts +++ b/apps/server/src/ws.ts @@ -197,6 +197,7 @@ import { makePrepareTerminalLaunch } from "./workspace/restoreMissingWorktree.ts import { terminalOutputStream, withOutputWindow } from "./terminal/OutputProtocol.ts"; import * as ServerBrowser from "./preview/ServerBrowser.ts"; import * as DeviceService from "./device/DeviceService.ts"; +import * as CuaDriver from "./cua/CuaDriver.ts"; import { remoteSshDeviceHosts } from "./device/localSshDeviceHost.ts"; import * as PreviewManager from "./preview/Manager.ts"; import { issueAssetUrl } from "./assets/AssetAccess.ts"; @@ -2360,6 +2361,14 @@ export const layerWsRpc = ( Effect.andThen(scheduledTasks.getWebhookDelivery(input)), ), [WS_METHODS.serverProbe]: (_input) => Effect.succeed({}), + [WS_METHODS.serverCheckComputerUse]: (_input) => + Effect.serviceOption(CuaDriver.CuaDriver).pipe( + Effect.flatMap((driver) => + Option.isSome(driver) + ? driver.value.status + : Effect.succeed({ platform: "other", running: false } as const), + ), + ), [WS_METHODS.serverGetConfig]: (_input) => loadServerConfig({ usageLimitsCommand: false, diff --git a/apps/web/src/components/settings/CuaSetupDialog.tsx b/apps/web/src/components/settings/CuaSetupDialog.tsx new file mode 100644 index 0000000000000..44e4f2eec3023 --- /dev/null +++ b/apps/web/src/components/settings/CuaSetupDialog.tsx @@ -0,0 +1,156 @@ +import type { CuaHostStatus } from "@t3tools/contracts"; +import { useState } from "react"; + +import { MacAccessibilityIcon, MacScreenRecordingIcon } from "../Icons"; +import { PermissionChecklist, PermissionContinueButton } from "../permissions/PermissionChecklist"; +import { usePermissionStatus } from "../permissions/usePermissionStatus"; +import { Button } from "../ui/button"; +import { + Dialog, + DialogDescription, + DialogFooter, + DialogHeader, + DialogPanel, + DialogPopup, + DialogTitle, +} from "../ui/dialog"; + +export type CuaPermission = "accessibility" | "screen-recording"; + +const CUA_PERMISSIONS: readonly CuaPermission[] = ["accessibility", "screen-recording"]; + +/** What the host itself needs before computer use can work there. */ +function hostRequirements(platform: CuaHostStatus["platform"], hostLabel: string): string { + switch (platform) { + case "darwin": + return `T3 Code on ${hostLabel} needs Accessibility and Screen Recording. Open T3 Code on that Mac to grant them; the setting turns on from here either way.`; + case "linux": + return `${hostLabel} needs a signed-in graphical session. On Wayland, someone at ${hostLabel} approves the screen capture prompt the first time an agent looks at the screen.`; + case "win32": + return `${hostLabel} needs a signed-in desktop session. No permissions are needed; Windows Defender may ask once before Cua Driver first runs.`; + default: + return `Computer use needs a desktop on ${hostLabel}.`; + } +} + +/** + * Setup for Cua computer use. On the Mac that hosts the environment it walks + * through Accessibility and Screen Recording, which macOS grants to T3 Code; + * elsewhere it explains what the host needs, since only someone at it can act. + */ +export function CuaSetupDialog({ + enabled, + hostLabel, + platform, + localMac, + onCheck, + onAllow, + onEnable, + onClose, +}: { + enabled: boolean; + hostLabel: string; + platform: CuaHostStatus["platform"]; + /** This desktop is the Mac that runs the environment, so it can grant access here. */ + localMac: boolean; + onCheck: (permission: CuaPermission) => Promise; + onAllow: (permission: CuaPermission) => Promise; + onEnable: () => Promise; + onClose: () => void; +}) { + const [busy, setBusy] = useState(false); + const [error, setError] = useState(null); + const permission = usePermissionStatus( + async () => ({ + accessibility: await onCheck("accessibility"), + "screen-recording": await onCheck("screen-recording"), + }), + { accessibility: false, "screen-recording": false }, + localMac && !busy, + ); + const ready = !localMac || permission.isReady(CUA_PERMISSIONS); + const allow = (target: CuaPermission) => { + if (busy) return; + setBusy(true); + setError(null); + void onAllow(target) + .catch(() => setError("Could not open System Settings. Try Allow again.")) + .finally(() => setBusy(false)); + }; + const finish = async () => { + if (busy) return; + setBusy(true); + setError(null); + try { + await onEnable(); + onClose(); + } catch { + setError("Could not save the setting. Try again."); + } finally { + setBusy(false); + } + }; + return ( + { + if (!open && !busy) onClose(); + }} + > + + + Let agents use {hostLabel} + + Cua Driver lets agents see and use apps on {hostLabel} in the background, without moving + your cursor. Agent sessions started afterwards get the computer use tools. + + + + {localMac ? ( + , + title: "Accessibility", + description: "Click, type, and read controls in other apps.", + granted: permission.status.accessibility, + onAllow: () => allow("accessibility"), + }, + { + id: "screen-recording", + icon: , + title: "Screen Recording", + description: "See the screen to decide what to do next.", + granted: permission.status["screen-recording"], + onAllow: () => allow("screen-recording"), + }, + ]} + /> + ) : ( +

{hostRequirements(platform, hostLabel)}

+ )} + {error || (localMac && permission.error) ? ( +

+ {error ?? permission.error} +

+ ) : null} + {localMac && !ready ? ( +

+ If a permission stays off after you allow it, quit and reopen T3 Code. +

+ ) : null} +
+ + + void finish()}> + {enabled ? "Done" : "Turn on"} + + +
+
+ ); +} diff --git a/apps/web/src/components/settings/IntegrationsSettings.tsx b/apps/web/src/components/settings/IntegrationsSettings.tsx index 197556552b4d8..ed77239dc3f92 100644 --- a/apps/web/src/components/settings/IntegrationsSettings.tsx +++ b/apps/web/src/components/settings/IntegrationsSettings.tsx @@ -4,6 +4,7 @@ import { DeviceToolVersions } from "../device/DeviceToolVersions"; import { useScopedSettings, useUpdateScopedSettings } from "./useScopedSettings"; import { ScopedSwitch } from "./ScopedSwitch"; import { DeviceSourcesSettings } from "./DeviceSourcesSettings"; +import { CuaSetupDialog } from "./CuaSetupDialog"; import { AuthSettingsWriteScope, BrowserImportFailureReason, @@ -53,7 +54,8 @@ import { useEnvironments, usePrimaryEnvironment } from "~/state/environments"; import { deviceEnvironment, useDeviceState } from "~/state/device"; import { readEnvironmentScope, useEnvironmentScope } from "~/state/session"; import { useAtomCommand } from "~/state/use-atom-command"; -import { formatEnvironmentQueryError } from "~/state/query"; +import { formatEnvironmentQueryError, useEnvironmentQuery } from "~/state/query"; +import { serverEnvironment } from "~/state/server"; import { previewEnvironment } from "~/state/preview"; import { useServerConfigs } from "~/state/entities"; import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime"; @@ -1141,6 +1143,104 @@ function AgentBrowserAccessSetting() { ); } +/** + * Cua computer use for the selected environment. The switch records intent; + * the host status shows whether the driver can actually start there. + */ +function ComputerUseSettings() { + const { environment: selected } = useSettingsScope(); + const settings = useScopedSettings(); + const updateSettings = useUpdateScopedSettings(); + const [setupOpen, setSetupOpen] = useState(false); + const environmentId = + selected?.connection.phase === "connected" && selected.serverConfig !== null + ? selected.environmentId + : null; + const hostLabel = selected?.label ?? "this computer"; + const { data: status, refresh } = useEnvironmentQuery( + environmentId === null ? null : serverEnvironment.computerUse({ environmentId, input: {} }), + ); + const platform = status?.platform ?? "other"; + // Only the Mac that runs the environment can grant it macOS permissions. + const localMac = + isElectron && + platform === "darwin" && + window.desktopBridge?.getClientPlatform() === "darwin" && + selected?.entry.target._tag === "PrimaryConnectionTarget"; + const enabled = settings.enableCua; + const statusText = !enabled + ? null + : status?.running + ? "Running" + : status?.failure + ? status.failure + : "Starts with the next agent session"; + + return ( + + void updateSettings({ enableCua: DEFAULT_SERVER_SETTINGS.enableCua })} + /> + ) : null + } + control={ + <> + {enabled && platform !== "other" ? ( + + ) : null} + { + if (checked) setSetupOpen(true); + else void updateSettings({ enableCua: false }); + }} + /> + + } + /> + {setupOpen ? ( + + window.desktopBridge?.checkSystemPermission(permission) ?? Promise.resolve(false) + } + onAllow={async (permission) => { + const api = readLocalApi(); + if (!api) throw new Error("Unable to open System Settings."); + await api.shell.openSystemSettings(permission); + }} + onEnable={async () => { + if (!enabled) await updateSettings({ enableCua: true }); + // A driver started before the grants keeps macOS's cached denial. + if (localMac) await window.desktopBridge?.restartCuaDriver(); + }} + onClose={() => { + setSetupOpen(false); + refresh(); + }} + /> + ) : null} + + ); +} + function BrowserAutoShowFloatingPreviewSetting({ disabled }: { readonly disabled: boolean }) { const searchableSetting = useSearchableSetting(); const gt = useGT(); @@ -1732,6 +1832,7 @@ export function DevicesSettingsPanel() { return ( + ); } diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx index e0a12417848fa..d1a78fe197254 100644 --- a/apps/web/src/components/settings/SettingsPanels.tsx +++ b/apps/web/src/components/settings/SettingsPanels.tsx @@ -636,6 +636,7 @@ export function useSettingsRestore(onRestored?: () => void) { ...(settings.enableAgentBrowserAccess !== DEFAULT_UNIFIED_SETTINGS.enableAgentBrowserAccess ? [gt("Agent browser access")] : []), + ...(settings.enableCua !== DEFAULT_UNIFIED_SETTINGS.enableCua ? ["Computer use"] : []), ]; const restoreDefaults = async () => { @@ -764,6 +765,7 @@ export function useSettingsRestore(onRestored?: () => void) { browserAutoShowFloatingPreview: DEFAULT_UNIFIED_SETTINGS.browserAutoShowFloatingPreview, pullRequestLinksOpenInApp: DEFAULT_UNIFIED_SETTINGS.pullRequestLinksOpenInApp, enableAgentBrowserAccess: DEFAULT_UNIFIED_SETTINGS.enableAgentBrowserAccess, + enableCua: DEFAULT_UNIFIED_SETTINGS.enableCua, }); onRestored?.(); }; diff --git a/apps/web/src/components/settings/settingsSearch.ts b/apps/web/src/components/settings/settingsSearch.ts index b02f8d2f0b0c8..03da2301f144b 100644 --- a/apps/web/src/components/settings/settingsSearch.ts +++ b/apps/web/src/components/settings/settingsSearch.ts @@ -1098,6 +1098,13 @@ export const SETTINGS_SEARCH_ITEMS = [ targetId: "devices", searchTerms: [msg("allow simulator emulator ios android drive tools sessions")], }, + { + id: "cua-computer-use", + title: "Computer use", + to: "/settings/devices", + targetId: "computer", + searchTerms: ["cua driver apps desktop screen click type agents control mac linux windows"], + }, { id: "device-hub", title: msg("Use devices"), diff --git a/docs/README.md b/docs/README.md index 264d509d97642..3abd20c38002a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -14,6 +14,7 @@ - [Voice input](./user/voice-input.md) - [Text generation models](./user/text-generation.md) - [SnapShots](./user/snap-shot.md) +- [Computer use](./user/computer-use.md) - [Visual replies](./user/html-renders.md) - [Import browser sessions](./user/browser-import.md) - [Use T3 Code as your default browser](./user/default-browser.md) diff --git a/docs/user/computer-use.md b/docs/user/computer-use.md new file mode 100644 index 0000000000000..4f1f135d337b7 --- /dev/null +++ b/docs/user/computer-use.md @@ -0,0 +1,42 @@ +# Computer use + +Computer use lets agents see and use apps on the computer that runs your T3 +Code environment. Every provider gets it: Claude, Codex, Cursor, Grok, +Antigravity, OpenCode, Pi, and ACP agents. It runs through +[Cua Driver](https://cua.ai/docs/cua-driver), which acts on windows in the +background, so agents do not take over your cursor or keyboard while you work. + +It works on macOS, Windows, and Linux. It is off by default. + +## Turn it on + +Open **Settings → Integrations → Computer**, select the environment, and turn +on **Computer use**. Agent sessions started afterwards get the computer use +tools. Turning it off stops the driver; sessions already running lose the tools +on their next start. + +What the host needs depends on its OS: + +- **macOS:** T3 Code needs Accessibility and Screen Recording. On the Mac that + runs the environment, the setup walks you through both. From another computer + or the mobile app, the switch turns on, but someone at that Mac still has to + grant them from T3 Code there. Choose **Setup** next to the switch to check + them again later. +- **Windows:** someone must be signed in to the desktop. No permissions are + needed. Windows Defender may ask once before Cua Driver first runs. +- **Linux:** the host needs a signed-in graphical session. On Wayland, someone + at the computer approves the screen capture prompt the first time an agent + looks at the screen. + +The desktop app includes Cua Driver. A server started with `npx t3` downloads +the same version into T3 Code's home the first time an agent session needs it. +To use your own build instead, set `T3CODE_CUA_DRIVER_PATH` to its executable +before starting the server. + +If you already configured a `cua-driver` MCP server for Codex yourself, Codex +keeps yours and T3 Code does not add a second one. + +## What you see + +Each action an agent takes shows in the thread with the app's icon and a plain +title, such as **Clicked in Safari**. diff --git a/packages/client-runtime/src/state/server.ts b/packages/client-runtime/src/state/server.ts index cb02405722fe0..193dc154137a7 100644 --- a/packages/client-runtime/src/state/server.ts +++ b/packages/client-runtime/src/state/server.ts @@ -1378,6 +1378,11 @@ export function createServerEnvironmentAtoms( Atom.withLabel(`environment-data:server:usage-model-filter:${environmentId}`), ), ); + const computerUseSettingAtom = Atom.family((environmentId: EnvironmentId) => + Atom.make((get) => get(settingsValueAtom(environmentId))?.enableCua ?? false).pipe( + Atom.withLabel(`environment-data:server:computer-use-setting:${environmentId}`), + ), + ); const providersValueAtom = Atom.family((environmentId: EnvironmentId) => Atom.make((get) => get(configValueAtom(environmentId))?.providers ?? null).pipe( Atom.withLabel(`environment-data:server:providers:${environmentId}`), @@ -1538,6 +1543,12 @@ export function createServerEnvironmentAtoms( label: "environment-data:provider:install-remove", tag: WS_METHODS.providerInstallRemove, }), + /** Whether the host can run computer use; rechecked when the switch flips. */ + computerUse: createEnvironmentRpcQueryAtomFamily(runtime, { + label: "environment-data:server:computer-use", + tag: WS_METHODS.serverCheckComputerUse, + refreshTrigger: ({ environmentId }) => computerUseSettingAtom(environmentId), + }), traceDiagnostics: createEnvironmentRpcQueryAtomFamily(runtime, { label: "environment-data:server:trace-diagnostics", tag: WS_METHODS.serverGetTraceDiagnostics, diff --git a/packages/contracts/src/cua.ts b/packages/contracts/src/cua.ts index c3734c1930322..eb7b3600185dc 100644 --- a/packages/contracts/src/cua.ts +++ b/packages/contracts/src/cua.ts @@ -37,3 +37,17 @@ export const DesktopCuaDriverReport = Schema.Union([ }), ]); export type DesktopCuaDriverReport = typeof DesktopCuaDriverReport.Type; + +/** + * Whether the environment's host can run computer use right now. Setup flows + * show it; the switch itself records intent and is not a readiness signal. + */ +export const CuaHostStatus = Schema.Struct({ + /** The host's OS, which decides what the user must grant. */ + platform: Schema.Literals(["darwin", "linux", "win32", "other"]), + /** The driver started for an agent session and is running. */ + running: Schema.Boolean, + /** Why the last start failed, until a later start succeeds. */ + failure: Schema.optionalKey(Schema.String), +}); +export type CuaHostStatus = typeof CuaHostStatus.Type; diff --git a/packages/contracts/src/rpc.ts b/packages/contracts/src/rpc.ts index d4206b74f2f57..b2e446ba5fc19 100644 --- a/packages/contracts/src/rpc.ts +++ b/packages/contracts/src/rpc.ts @@ -337,6 +337,7 @@ import { DeviceSession, DeviceShutdownInput, } from "./device.ts"; +import { CuaHostStatus } from "./cua.ts"; import { ServerConfigStreamEvent, DesktopUpdateCommitInput, @@ -532,6 +533,7 @@ export const WS_METHODS = { serverProbe: "server.probe", serverGetConfig: "server.getConfig", serverGetNpmRelease: "server.getNpmRelease", + serverCheckComputerUse: "server.checkComputerUse", serverRefreshProviders: "server.refreshProviders", serverUpdateProvider: "server.updateProvider", serverUpdateServer: "server.updateServer", @@ -688,6 +690,12 @@ const WsServerProbeRpc = Rpc.make(WS_METHODS.serverProbe, { error: EnvironmentAuthorizationError, }); +const WsServerCheckComputerUseRpc = Rpc.make(WS_METHODS.serverCheckComputerUse, { + payload: Schema.Struct({}), + success: CuaHostStatus, + error: EnvironmentAuthorizationError, +}); + const WsServerGetConfigRpc = Rpc.make(WS_METHODS.serverGetConfig, { payload: Schema.Struct({}), success: ServerConfig, @@ -2262,6 +2270,7 @@ export const WsRpcGroup = RpcGroup.make( WsGuestShareCreateRpc, WsServerProbeRpc, WsServerGetConfigRpc, + WsServerCheckComputerUseRpc, WsServerRefreshProvidersRpc, WsServerUpdateProviderRpc, WsProviderConsumeResetCreditRpc, From 8024106ade8b1864283194cb6c238ec6410b9c29 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 19 Oct 2026 21:50:03 +0000 Subject: [PATCH 2/3] fix(cua): finish host setup and restore settings --- .../SettingsServerControlsRouteScreen.tsx | 2 +- apps/server/src/auth/RpcAuthorization.test.ts | 26 ++++ apps/server/src/cua/CuaDriver.test.ts | 67 +++++++++ apps/server/src/cua/CuaDriver.ts | 1 - .../components/settings/CuaSetupDialog.tsx | 54 +++++--- .../settings/IntegrationsSettings.tsx | 131 ++++++++++++++---- .../components/settings/SettingsPanels.tsx | 4 +- ...rceControlWritingSettings.browser.test.tsx | 4 +- .../components/settings/useScopedSettings.ts | 102 ++++++++------ docs/user/computer-use.md | 23 ++- packages/client-runtime/src/state/server.ts | 1 - packages/contracts/src/cua.ts | 7 +- 12 files changed, 304 insertions(+), 118 deletions(-) diff --git a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx index 0e2bde2354f89..3a13d89e41ffc 100644 --- a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx +++ b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsx @@ -414,7 +414,7 @@ function ServerSettingsDetail(props: { readonly page: SettingsPage }) { subtitle={managedSubtitle( "enableCua", gt( - "Allow agents to use apps on this environment's computer through Cua Driver. On a Mac, grant Accessibility and Screen Recording from T3 Code on that Mac.", + "Allow agents to use apps on the selected environments' computers through Cua Driver. On macOS, grant Accessibility and Screen Recording on each host.", ), )} value={uniform("enableCua")} diff --git a/apps/server/src/auth/RpcAuthorization.test.ts b/apps/server/src/auth/RpcAuthorization.test.ts index 8afe47e715a9f..1e5f6099ccefe 100644 --- a/apps/server/src/auth/RpcAuthorization.test.ts +++ b/apps/server/src/auth/RpcAuthorization.test.ts @@ -25,6 +25,7 @@ import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Stream from "effect/Stream"; import * as RpcTest from "effect/rpc/RpcTest"; +import { applyServerSettingsPatch } from "@t3tools/shared/serverSettings"; import { RPC_REQUIRED_SCOPES, @@ -266,6 +267,31 @@ describe("settings mutation authorization", () => { instanceId: ProviderInstanceId.make("codex_work"), }; + it.effect("restores computer use alongside duration settings through authorization", () => + Effect.gen(function* () { + const client = yield* RpcTest.makeClient(group).pipe( + Effect.provide( + Layer.mergeAll( + group.toLayerHandler(WS_METHODS.serverUpdateSettings, ({ patch }) => + Effect.succeed( + applyServerSettingsPatch({ ...DEFAULT_SERVER_SETTINGS, enableCua: true }, patch), + ), + ), + RpcAuthorization.layer([AuthSettingsWriteScope]), + ), + ), + ); + const defaults = { + enableCua: DEFAULT_SERVER_SETTINGS.enableCua, + automaticGitFetchInterval: DEFAULT_SERVER_SETTINGS.automaticGitFetchInterval, + providerHealthRefreshInterval: DEFAULT_SERVER_SETTINGS.providerHealthRefreshInterval, + }; + expect(yield* client[WS_METHODS.serverUpdateSettings]({ patch: defaults })).toMatchObject( + defaults, + ); + }).pipe(Effect.scoped), + ); + it.effect("allows provider-only mutations while denying mixed settings without their grant", () => Effect.gen(function* () { let handled = 0; diff --git a/apps/server/src/cua/CuaDriver.test.ts b/apps/server/src/cua/CuaDriver.test.ts index 7d3fc531b18a3..ba423c3569472 100644 --- a/apps/server/src/cua/CuaDriver.test.ts +++ b/apps/server/src/cua/CuaDriver.test.ts @@ -1,6 +1,7 @@ import * as NodeCrypto from "@effect/platform-node/NodeCrypto"; import { it } from "@effect/vitest"; import type { CuaDriverMcpConfiguration, DesktopCuaDriverReport } from "@t3tools/contracts"; +import * as HostProcess from "@t3tools/shared/HostProcess"; import type { EmbeddedDriverConnection } from "@trycua/cua-driver/embedded"; import { Deferred, Effect, Exit, Fiber, Option, PubSub, Ref, Scope, Stream } from "effect"; import { TestClock } from "effect/testing"; @@ -501,8 +502,10 @@ describe("CuaDriver", () => { yield* Deferred.succeed(f.result, mcp); expect(yield* f.service.acquire).toEqual(Option.some(mcp)); yield* Deferred.await(f.watching); + expect((yield* f.service.status).running).toBe(true); yield* Deferred.succeed(f.exited, undefined); yield* Deferred.await(f.stopped); + expect((yield* f.service.status).running).toBe(false); expect(f.starts()).toBe(1); expect(yield* f.service.acquire).toEqual(Option.some(mcp)); expect(f.starts()).toBe(2); @@ -543,6 +546,70 @@ describe("CuaDriver", () => { }); describe("Cua Driver readiness", () => { + it.effect("reports the host platform and runs only between readiness and disable", () => + Effect.scoped( + Effect.gen(function* () { + const f = yield* fixture(false).pipe(Effect.provideService(HostProcess.Platform, "darwin")); + expect(yield* f.service.status).toEqual({ platform: "darwin", running: false }); + yield* f.setEnabled(true); + const caller = yield* f.service.acquire.pipe(Effect.forkChild); + yield* Deferred.await(f.started); + expect(yield* f.service.status).toEqual({ platform: "darwin", running: false }); + yield* Deferred.succeed(f.result, mcp); + expect(yield* Fiber.join(caller)).toEqual(Option.some(mcp)); + expect(yield* f.service.status).toEqual({ platform: "darwin", running: true }); + yield* f.setEnabled(false); + yield* Deferred.await(f.stopped); + expect(yield* f.service.status).toEqual({ platform: "darwin", running: false }); + expect(yield* f.service.acquire).toEqual(Option.none()); + }), + ), + ); + + it.effect("reports a host start failure until the replacement is ready", () => + Effect.scoped( + Effect.gen(function* () { + const failure = new CuaDriver.CuaDriverStartError({ + binaryPath: "/driver", + cause: new Error("native start failed"), + }); + const restarting = yield* Deferred.make(); + const ready = yield* Deferred.make(); + let attempts = 0; + const service = yield* makeCuaDriver({ + enabled: Effect.succeed(true), + changes: Stream.empty, + createHost: Effect.sync(() => ({ + start: + ++attempts === 1 + ? Effect.fail(failure) + : Deferred.succeed(restarting, undefined).pipe( + Effect.andThen(Deferred.await(ready)), + ), + stop: Effect.void, + waitForExit: Effect.never, + })), + }).pipe(Effect.provideService(HostProcess.Platform, "win32")); + expect(yield* service.acquire).toEqual(Option.none()); + expect(yield* service.status).toEqual({ + platform: "win32", + running: false, + failure: failure.message, + }); + const retry = yield* service.acquire.pipe(Effect.forkChild); + yield* Deferred.await(restarting); + expect(yield* service.status).toEqual({ + platform: "win32", + running: false, + failure: failure.message, + }); + yield* Deferred.succeed(ready, mcp); + expect(yield* Fiber.join(retry)).toEqual(Option.some(mcp)); + expect(yield* service.status).toEqual({ platform: "win32", running: true }); + }), + ), + ); + it.effect("remembers why the last start failed until a start succeeds", () => Effect.scoped( Effect.gen(function* () { diff --git a/apps/server/src/cua/CuaDriver.ts b/apps/server/src/cua/CuaDriver.ts index 2b6e38828efba..a69ae11225a69 100644 --- a/apps/server/src/cua/CuaDriver.ts +++ b/apps/server/src/cua/CuaDriver.ts @@ -150,7 +150,6 @@ export class CuaDriver extends Context.Service< readonly acquire: Effect.Effect>; /** Why the last start failed, until a later start succeeds. */ readonly lastFailure: Effect.Effect>; - /** What setup flows show: the host OS, and whether the driver runs or why not. */ readonly status: Effect.Effect; } >()("t3/cua/CuaDriver") {} diff --git a/apps/web/src/components/settings/CuaSetupDialog.tsx b/apps/web/src/components/settings/CuaSetupDialog.tsx index 44e4f2eec3023..1d51e8c82557e 100644 --- a/apps/web/src/components/settings/CuaSetupDialog.tsx +++ b/apps/web/src/components/settings/CuaSetupDialog.tsx @@ -1,5 +1,5 @@ import type { CuaHostStatus } from "@t3tools/contracts"; -import { useState } from "react"; +import { useRef, useState } from "react"; import { MacAccessibilityIcon, MacScreenRecordingIcon } from "../Icons"; import { PermissionChecklist, PermissionContinueButton } from "../permissions/PermissionChecklist"; @@ -19,25 +19,19 @@ export type CuaPermission = "accessibility" | "screen-recording"; const CUA_PERMISSIONS: readonly CuaPermission[] = ["accessibility", "screen-recording"]; -/** What the host itself needs before computer use can work there. */ function hostRequirements(platform: CuaHostStatus["platform"], hostLabel: string): string { switch (platform) { case "darwin": - return `T3 Code on ${hostLabel} needs Accessibility and Screen Recording. Open T3 Code on that Mac to grant them; the setting turns on from here either way.`; + return `${hostLabel} needs Accessibility and Screen Recording. Finish setup at that Mac: in System Settings → Privacy & Security, grant access to the app or process running this environment. You can turn the setting on from here.`; case "linux": - return `${hostLabel} needs a signed-in graphical session. On Wayland, someone at ${hostLabel} approves the screen capture prompt the first time an agent looks at the screen.`; + return `${hostLabel} needs a signed-in graphical session. On Wayland, someone at ${hostLabel} may need to approve a screen capture prompt.`; case "win32": - return `${hostLabel} needs a signed-in desktop session. No permissions are needed; Windows Defender may ask once before Cua Driver first runs.`; + return `${hostLabel} needs a signed-in desktop session. If Windows shows a security prompt for Cua Driver, someone at that computer must respond.`; default: return `Computer use needs a desktop on ${hostLabel}.`; } } -/** - * Setup for Cua computer use. On the Mac that hosts the environment it walks - * through Accessibility and Screen Recording, which macOS grants to T3 Code; - * elsewhere it explains what the host needs, since only someone at it can act. - */ export function CuaSetupDialog({ enabled, hostLabel, @@ -51,7 +45,6 @@ export function CuaSetupDialog({ enabled: boolean; hostLabel: string; platform: CuaHostStatus["platform"]; - /** This desktop is the Mac that runs the environment, so it can grant access here. */ localMac: boolean; onCheck: (permission: CuaPermission) => Promise; onAllow: (permission: CuaPermission) => Promise; @@ -59,6 +52,7 @@ export function CuaSetupDialog({ onClose: () => void; }) { const [busy, setBusy] = useState(false); + const pending = useRef(false); const [error, setError] = useState(null); const permission = usePermissionStatus( async () => ({ @@ -69,24 +63,32 @@ export function CuaSetupDialog({ localMac && !busy, ); const ready = !localMac || permission.isReady(CUA_PERMISSIONS); - const allow = (target: CuaPermission) => { - if (busy) return; + const allow = async (target: CuaPermission) => { + if (pending.current) return; + pending.current = true; setBusy(true); setError(null); - void onAllow(target) - .catch(() => setError("Could not open System Settings. Try Allow again.")) - .finally(() => setBusy(false)); + try { + await onAllow(target); + } catch { + setError("Could not open System Settings. Try Allow again."); + } finally { + pending.current = false; + setBusy(false); + } }; const finish = async () => { - if (busy) return; + if (pending.current || !ready) return; + pending.current = true; setBusy(true); setError(null); try { await onEnable(); onClose(); - } catch { - setError("Could not save the setting. Try again."); + } catch (error) { + setError(error instanceof Error ? error.message : "Could not save the setting. Try again."); } finally { + pending.current = false; setBusy(false); } }; @@ -94,7 +96,7 @@ export function CuaSetupDialog({ { - if (!open && !busy) onClose(); + if (!open && !pending.current) onClose(); }} > @@ -116,7 +118,7 @@ export function CuaSetupDialog({ title: "Accessibility", description: "Click, type, and read controls in other apps.", granted: permission.status.accessibility, - onAllow: () => allow("accessibility"), + onAllow: () => void allow("accessibility"), }, { id: "screen-recording", @@ -124,7 +126,7 @@ export function CuaSetupDialog({ title: "Screen Recording", description: "See the screen to decide what to do next.", granted: permission.status["screen-recording"], - onAllow: () => allow("screen-recording"), + onAllow: () => void allow("screen-recording"), }, ]} /> @@ -143,7 +145,13 @@ export function CuaSetupDialog({ ) : null} - void finish()}> diff --git a/apps/web/src/components/settings/IntegrationsSettings.tsx b/apps/web/src/components/settings/IntegrationsSettings.tsx index ed77239dc3f92..851b60935201b 100644 --- a/apps/web/src/components/settings/IntegrationsSettings.tsx +++ b/apps/web/src/components/settings/IntegrationsSettings.tsx @@ -5,6 +5,7 @@ import { useScopedSettings, useUpdateScopedSettings } from "./useScopedSettings" import { ScopedSwitch } from "./ScopedSwitch"; import { DeviceSourcesSettings } from "./DeviceSourcesSettings"; import { CuaSetupDialog } from "./CuaSetupDialog"; +import { SettingsScopeNotice } from "./SettingsScopeNotice"; import { AuthSettingsWriteScope, BrowserImportFailureReason, @@ -42,7 +43,7 @@ import { isValidSearchUrlTemplate } from "@t3tools/shared/preview"; import { PREVIEW_VIEWPORT_PRESETS } from "@t3tools/shared/previewViewport"; import { MoreVertical, Plus as PlusIcon } from "lucide-react"; import * as Schema from "effect/Schema"; -import { useRef, useState } from "react"; +import { useEffect, useEffectEvent, useRef, useState } from "react"; import { msg, T, useGT, useMessages, Var } from "gt-react"; import { m as resolveNow, type MessageResolver } from "../../i18n/messages"; @@ -1143,23 +1144,61 @@ function AgentBrowserAccessSetting() { ); } -/** - * Cua computer use for the selected environment. The switch records intent; - * the host status shows whether the driver can actually start there. - */ function ComputerUseSettings() { + const { scope, environment, search } = useSettingsScope(); + const singleHost = + scope.kind === "environment" || (scope.kind === "all" && scope.environmentIds.length === 1); + return ( + + {singleHost && environment ? ( + + ) : ( + + {singleHost + ? "Connect the selected environment to configure computer use." + : "Choose one environment to configure computer use on its host."} + + )} + + ); +} + +function ComputerUseControls() { const { environment: selected } = useSettingsScope(); const settings = useScopedSettings(); const updateSettings = useUpdateScopedSettings(); const [setupOpen, setSetupOpen] = useState(false); + const [saving, setSaving] = useState(false); const environmentId = selected?.connection.phase === "connected" && selected.serverConfig !== null ? selected.environmentId : null; const hostLabel = selected?.label ?? "this computer"; - const { data: status, refresh } = useEnvironmentQuery( + const { + data: status, + error, + isPending, + refresh, + } = useEnvironmentQuery( environmentId === null ? null : serverEnvironment.computerUse({ environmentId, input: {} }), ); + const canConfigure = useEnvironmentScope(environmentId, AuthSettingsWriteScope); + if (setupOpen && !canConfigure) setSetupOpen(false); + const refreshVisible = useEffectEvent(() => { + if (!isPending && document.visibilityState !== "hidden") refresh(); + }); + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- Polls the host's Cua status through a timer and focus/visibility listeners while this row is mounted. + useEffect(() => { + if (environmentId === null) return; + const timer = window.setInterval(refreshVisible, 3000); + window.addEventListener("focus", refreshVisible); + document.addEventListener("visibilitychange", refreshVisible); + return () => { + window.clearInterval(timer); + window.removeEventListener("focus", refreshVisible); + document.removeEventListener("visibilitychange", refreshVisible); + }; + }, [environmentId]); const platform = status?.platform ?? "other"; // Only the Mac that runs the environment can grant it macOS permissions. const localMac = @@ -1168,51 +1207,76 @@ function ComputerUseSettings() { window.desktopBridge?.getClientPlatform() === "darwin" && selected?.entry.target._tag === "PrimaryConnectionTarget"; const enabled = settings.enableCua; - const statusText = !enabled - ? null - : status?.running - ? "Running" - : status?.failure - ? status.failure - : "Starts with the next agent session"; + const statusText = error + ? `Could not check computer use: ${error}` + : status === null + ? "Checking host…" + : platform === "other" + ? "Computer use is not supported on this host." + : !enabled + ? null + : status.running + ? "Running" + : (status.failure ?? "Starts with the next agent session"); + + const save = async (enableCua: boolean) => { + setSaving(true); + try { + const result = await updateSettings({ enableCua }); + refresh(); + return result; + } finally { + setSaving(false); + } + }; return ( - + <> void updateSettings({ enableCua: DEFAULT_SERVER_SETTINGS.enableCua })} + onClick={() => void save(DEFAULT_SERVER_SETTINGS.enableCua)} /> ) : null } control={ <> - {enabled && platform !== "other" ? ( - ) : null} { if (checked) setSetupOpen(true); - else void updateSettings({ enableCua: false }); + else void save(false); }} /> } /> - {setupOpen ? ( + {setupOpen && canConfigure && environmentId !== null ? ( { - if (!enabled) await updateSettings({ enableCua: true }); + if (!readEnvironmentScope(environmentId, AuthSettingsWriteScope)) { + throw new Error("This connection cannot change settings on this host."); + } + if (!enabled) { + const result = await save(true); + if (!result.saved) + throw new Error(result.message ?? "Could not save the setting. Try again."); + } // A driver started before the grants keeps macOS's cached denial. - if (localMac) await window.desktopBridge?.restartCuaDriver(); + if (localMac) { + try { + await window.desktopBridge?.restartCuaDriver(); + } catch { + throw new Error( + "Computer use is on, but Cua Driver could not restart. Try Setup again.", + ); + } + } }} onClose={() => { setSetupOpen(false); @@ -1237,7 +1316,7 @@ function ComputerUseSettings() { }} /> ) : null} - + ); } diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx index d1a78fe197254..3853208b58092 100644 --- a/apps/web/src/components/settings/SettingsPanels.tsx +++ b/apps/web/src/components/settings/SettingsPanels.tsx @@ -691,7 +691,7 @@ export function useSettingsRestore(onRestored?: () => void) { notifyThemeRestoreFailure(); return; } - updateSettings({ + const result = await updateSettings({ appearanceContrast: DEFAULT_UNIFIED_SETTINGS.appearanceContrast, diffColorScheme: DEFAULT_UNIFIED_SETTINGS.diffColorScheme, chatWidth: DEFAULT_UNIFIED_SETTINGS.chatWidth, @@ -767,7 +767,7 @@ export function useSettingsRestore(onRestored?: () => void) { enableAgentBrowserAccess: DEFAULT_UNIFIED_SETTINGS.enableAgentBrowserAccess, enableCua: DEFAULT_UNIFIED_SETTINGS.enableCua, }); - onRestored?.(); + if (result.saved) onRestored?.(); }; return { diff --git a/apps/web/src/components/settings/SourceControlWritingSettings.browser.test.tsx b/apps/web/src/components/settings/SourceControlWritingSettings.browser.test.tsx index 03ed8c3e3808c..242d41f7b5f35 100644 --- a/apps/web/src/components/settings/SourceControlWritingSettings.browser.test.tsx +++ b/apps/web/src/components/settings/SourceControlWritingSettings.browser.test.tsx @@ -5,12 +5,11 @@ import { describe, expect, it, vi } from "vite-plus/test"; import { page, userEvent } from "vite-plus/test/browser"; import "../../index.css"; -import type { ScopedSettingsPatch } from "./scopedSettings"; type WritingStyle = typeof DEFAULT_UNIFIED_SETTINGS.sourceControlWritingStyle; const state = vi.hoisted(() => ({ styles: [] as WritingStyle[], - updateSettings: vi.fn<(patch: ScopedSettingsPatch) => void>(), + updateSettings: vi.fn>(), })); vi.mock(import("@tanstack/react-router"), async (original) => ({ @@ -87,6 +86,7 @@ async function setup() { state.updateSettings.mockReset().mockImplementation((patch) => { state.styles = state.styles.map((style) => ({ ...style, ...patch.sourceControlWritingStyle })); void screen.rerender(content()); + return Promise.resolve({ saved: true, message: null }); }); return screen; } diff --git a/apps/web/src/components/settings/useScopedSettings.ts b/apps/web/src/components/settings/useScopedSettings.ts index 23496f5e9fb9b..b05e8b950464e 100644 --- a/apps/web/src/components/settings/useScopedSettings.ts +++ b/apps/web/src/components/settings/useScopedSettings.ts @@ -60,11 +60,11 @@ export function useScopedSettingSource(keys: readonly (keyof ServerSettings)[]) function useRunScopedPlan() { const persistServer = useAtomCommand(serverEnvironment.updateSettings, { reportFailure: false }); - return ( + return async ( environments: Parameters[0], planner: Parameters[1], onFailed?: () => void, - ) => { + ): Promise<{ readonly saved: boolean; readonly message: string | null }> => { const plan = planner(environments); if (plan.unavailableReason) { toastManager.add({ @@ -73,7 +73,7 @@ function useRunScopedPlan() { description: plan.unavailableReason, }); onFailed?.(); - return; + return { saved: false, message: plan.unavailableReason }; } const save = {}; const settle = (environmentId: EnvironmentId, saved?: ServerSettings) => @@ -89,55 +89,69 @@ function useRunScopedPlan() { ...writes, ...plan.serverWrites.map(({ environmentId, patch }) => ({ save, environmentId, patch })), ]); - void writeScopedSettings( - environments, - planner, - async (request) => { - const missing = requiredScopesForServerSettingsPatch(request.input.patch).find( - (scope) => !readEnvironmentScope(request.environmentId, scope), + try { + const { failedEnvironments, savedEnvironments, savedEnvironmentCount } = + await writeScopedSettings( + environments, + planner, + async (request) => { + const missing = requiredScopesForServerSettingsPatch(request.input.patch).find( + (scope) => !readEnvironmentScope(request.environmentId, scope), + ); + const result = missing + ? AsyncResult.failure( + Cause.fail( + new EnvironmentAuthorizationError({ + requiredScope: missing, + message: m(msg("This connection lacks permission to change these settings.")), + }), + ), + ) + : await persistServer(request).catch((error: unknown) => { + settle(request.environmentId); + throw error; + }); + settle(request.environmentId, result._tag === "Success" ? result.value : undefined); + return result; + }, + persistClientSettingsPatch, ); - const result = missing - ? AsyncResult.failure( - Cause.fail( - new EnvironmentAuthorizationError({ - requiredScope: missing, - message: m(msg("This connection lacks permission to change these settings.")), + if (failedEnvironments.length === 0) return { saved: true, message: null }; + onFailed?.(); + const message = [ + ...failedEnvironments.map(({ label, message }) => + m(msg("Could not save on {label}: {message}", { label, message })), + ), + ...(savedEnvironmentCount > 0 + ? [ + m( + msg("Saved on {environments}.", { + environments: savedEnvironments.map(({ label }) => label).join(", "), }), ), - ) - : await persistServer(request).catch((error: unknown) => { - settle(request.environmentId); - throw error; - }); - settle(request.environmentId, result._tag === "Success" ? result.value : undefined); - return result; - }, - persistClientSettingsPatch, - ).then(({ failedEnvironments, savedEnvironments, savedEnvironmentCount }) => { - if (failedEnvironments.length === 0) return; - onFailed?.(); + ] + : []), + ].join("\n"); toastManager.add({ type: "error", title: savedEnvironmentCount > 0 ? m(msg("Setting saved on some environments")) : m(msg("Setting not saved")), - description: [ - ...failedEnvironments.map(({ label, message }) => - m(msg("Could not save on {label}: {message}", { label, message })), - ), - ...(savedEnvironmentCount > 0 - ? [ - m( - msg("Saved on {environments}.", { - environments: savedEnvironments.map(({ label }) => label).join(", "), - }), - ), - ] - : []), - ].join("\n"), + description: message, }); - }); + return { saved: false, message }; + } catch (error) { + onFailed?.(); + const message = + error instanceof Error ? error.message : m(msg("The save failed. Try again.")); + toastManager.add({ + type: "error", + title: m(msg("Setting not saved")), + description: message, + }); + return { saved: false, message }; + } }; } @@ -158,7 +172,7 @@ export function useClearScopedSettings() { const run = useRunScopedPlan(); return (keys: readonly ProjectScopedServerSettingKey[]) => { if (context === null) return; - run(context.environments, (current) => planScopedSettingsClear(context.scope, current, keys)); + void run(context.environments, (current) => planScopedSettingsClear(context.scope, current, keys)); }; } @@ -170,7 +184,7 @@ export function useClearProjectOverrides() { keys: readonly ProjectScopedServerSettingKey[], ) => { if (context === null) return; - run(context.environments, (current) => planProjectOverridesClear(current, entries, keys)); + void run(context.environments, (current) => planProjectOverridesClear(current, entries, keys)); }; } diff --git a/docs/user/computer-use.md b/docs/user/computer-use.md index 4f1f135d337b7..991e3b27a2c88 100644 --- a/docs/user/computer-use.md +++ b/docs/user/computer-use.md @@ -1,8 +1,7 @@ # Computer use Computer use lets agents see and use apps on the computer that runs your T3 -Code environment. Every provider gets it: Claude, Codex, Cursor, Grok, -Antigravity, OpenCode, Pi, and ACP agents. It runs through +Code environment. It runs through [Cua Driver](https://cua.ai/docs/cua-driver), which acts on windows in the background, so agents do not take over your cursor or keyboard while you work. @@ -10,23 +9,23 @@ It works on macOS, Windows, and Linux. It is off by default. ## Turn it on -Open **Settings → Integrations → Computer**, select the environment, and turn -on **Computer use**. Agent sessions started afterwards get the computer use -tools. Turning it off stops the driver; sessions already running lose the tools -on their next start. +Open **Settings → Devices → Computer**, choose one environment, and turn +on **Computer use**. On mobile, use **Settings → Threads → Computer**. +Agent sessions started afterwards get the computer use tools. Turning it off +stops the driver immediately; restart existing agent sessions to remove their tools. What the host needs depends on its OS: - **macOS:** T3 Code needs Accessibility and Screen Recording. On the Mac that runs the environment, the setup walks you through both. From another computer or the mobile app, the switch turns on, but someone at that Mac still has to - grant them from T3 Code there. Choose **Setup** next to the switch to check - them again later. -- **Windows:** someone must be signed in to the desktop. No permissions are - needed. Windows Defender may ask once before Cua Driver first runs. + grant them there. For a server run from a terminal or service, grant access to + the process hosting the server in **System Settings → Privacy & Security**. + Choose **Setup** next to the switch in the desktop app to check its grants again. +- **Windows:** someone must be signed in to the desktop and respond to any + security prompts for Cua Driver at that computer. - **Linux:** the host needs a signed-in graphical session. On Wayland, someone - at the computer approves the screen capture prompt the first time an agent - looks at the screen. + at the computer may need to approve a screen capture prompt. The desktop app includes Cua Driver. A server started with `npx t3` downloads the same version into T3 Code's home the first time an agent session needs it. diff --git a/packages/client-runtime/src/state/server.ts b/packages/client-runtime/src/state/server.ts index 193dc154137a7..48a0acb3fe857 100644 --- a/packages/client-runtime/src/state/server.ts +++ b/packages/client-runtime/src/state/server.ts @@ -1543,7 +1543,6 @@ export function createServerEnvironmentAtoms( label: "environment-data:provider:install-remove", tag: WS_METHODS.providerInstallRemove, }), - /** Whether the host can run computer use; rechecked when the switch flips. */ computerUse: createEnvironmentRpcQueryAtomFamily(runtime, { label: "environment-data:server:computer-use", tag: WS_METHODS.serverCheckComputerUse, diff --git a/packages/contracts/src/cua.ts b/packages/contracts/src/cua.ts index eb7b3600185dc..c0b97a7bd75b5 100644 --- a/packages/contracts/src/cua.ts +++ b/packages/contracts/src/cua.ts @@ -38,14 +38,9 @@ export const DesktopCuaDriverReport = Schema.Union([ ]); export type DesktopCuaDriverReport = typeof DesktopCuaDriverReport.Type; -/** - * Whether the environment's host can run computer use right now. Setup flows - * show it; the switch itself records intent and is not a readiness signal. - */ +/** Driver readiness is independent of the enableCua setting. */ export const CuaHostStatus = Schema.Struct({ - /** The host's OS, which decides what the user must grant. */ platform: Schema.Literals(["darwin", "linux", "win32", "other"]), - /** The driver started for an agent session and is running. */ running: Schema.Boolean, /** Why the last start failed, until a later start succeeds. */ failure: Schema.optionalKey(Schema.String), From a15985269acaa1ecf44d407a8104a225bec6d58d Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 19 Oct 2026 22:19:34 +0000 Subject: [PATCH 3/3] fix(web): keep computer use handlers compatible with React Compiler --- apps/mobile/src/i18n/translations/de.json | 2 + apps/mobile/src/i18n/translations/en.json | 2 + apps/mobile/src/i18n/translations/es.json | 2 + apps/mobile/src/i18n/translations/fr.json | 2 + apps/mobile/src/i18n/translations/ja.json | 2 + apps/mobile/src/i18n/translations/ko.json | 2 + apps/mobile/src/i18n/translations/pt-BR.json | 2 + apps/mobile/src/i18n/translations/ru.json | 2 + apps/mobile/src/i18n/translations/sv.json | 2 + apps/mobile/src/i18n/translations/zh.json | 2 + .../components/settings/CuaSetupDialog.tsx | 77 +++++++++++-------- .../settings/IntegrationsSettings.tsx | 49 ++++++------ .../src/components/settings/settingsSearch.ts | 6 +- .../components/settings/useScopedSettings.ts | 4 +- apps/web/src/i18n/translations/de.json | 45 ++++++++++- apps/web/src/i18n/translations/en.json | 44 ++++++++++- apps/web/src/i18n/translations/es.json | 44 ++++++++++- apps/web/src/i18n/translations/fr.json | 44 ++++++++++- apps/web/src/i18n/translations/ja.json | 45 ++++++++++- apps/web/src/i18n/translations/ko.json | 45 ++++++++++- apps/web/src/i18n/translations/pt-BR.json | 44 ++++++++++- apps/web/src/i18n/translations/ru.json | 44 ++++++++++- apps/web/src/i18n/translations/sv.json | 44 ++++++++++- apps/web/src/i18n/translations/zh.json | 44 ++++++++++- 24 files changed, 521 insertions(+), 78 deletions(-) diff --git a/apps/mobile/src/i18n/translations/de.json b/apps/mobile/src/i18n/translations/de.json index c9d43d96b3eb8..a6fd18f667c7b 100644 --- a/apps/mobile/src/i18n/translations/de.json +++ b/apps/mobile/src/i18n/translations/de.json @@ -3535,6 +3535,8 @@ "006f2c2416a56768": "Vorschau-Browser", "19e1f74805f4a1fb": "Browserzugriff für Agenten", "74d09db9719594eb": "Agenten den In-App-Vorschau-Browser nutzen lassen.", + "5511e975ba69f726": "Computer", + "53d1d96a2699764a": "Agenten über Cua Driver Apps auf den Computern der ausgewählten Umgebungen nutzen lassen. Erteile unter macOS auf jedem Host Barrierefreiheit und Bildschirmaufnahme.", "13087312bc6a0b45": "Pull Requests", "efb65f53a2382026": "Agenten-Credits beim Mergen entfernen", "88631d9ea293eccd": "Erkannte Agenten-Credits aus Merge- und Squash-Nachrichten entfernen, sofern der Host das unterstützt; menschliche Co-Autoren bleiben erhalten. Gilt auch für Auto-Merge. Ausgenommen sind Merge-Queues, Stack-Merges und bestehende Commits.", diff --git a/apps/mobile/src/i18n/translations/en.json b/apps/mobile/src/i18n/translations/en.json index 7a89a1cf37c22..28ba0f99b99cb 100644 --- a/apps/mobile/src/i18n/translations/en.json +++ b/apps/mobile/src/i18n/translations/en.json @@ -3536,6 +3536,8 @@ "006f2c2416a56768": "Preview browser", "19e1f74805f4a1fb": "Agent browser access", "74d09db9719594eb": "Allow agents to use the in-app preview browser.", + "5511e975ba69f726": "Computer", + "53d1d96a2699764a": "Allow agents to use apps on the selected environments' computers through Cua Driver. On macOS, grant Accessibility and Screen Recording on each host.", "13087312bc6a0b45": "Pull requests", "efb65f53a2382026": "Remove agent credits when merging", "88631d9ea293eccd": "Remove recognized agent credits from merge and squash messages on hosts that support it, keeping human co-authors. Includes auto-merge. Excludes merge queues, stack merges, and existing commits.", diff --git a/apps/mobile/src/i18n/translations/es.json b/apps/mobile/src/i18n/translations/es.json index 288dbfc7da2cf..8045bdbeb0322 100644 --- a/apps/mobile/src/i18n/translations/es.json +++ b/apps/mobile/src/i18n/translations/es.json @@ -3530,6 +3530,8 @@ "006f2c2416a56768": "Navegador de vista previa", "19e1f74805f4a1fb": "Acceso de agentes al navegador", "74d09db9719594eb": "Permite que los agentes usen el navegador de vista previa de la app.", + "5511e975ba69f726": "Ordenador", + "53d1d96a2699764a": "Permite que los agentes usen apps en los ordenadores de los entornos seleccionados mediante Cua Driver. En macOS, concede Accesibilidad y Grabación de pantalla en cada host.", "13087312bc6a0b45": "Pull requests", "efb65f53a2382026": "Quitar créditos de agentes al fusionar", "88631d9ea293eccd": "Quita los créditos de agentes reconocidos de los mensajes de fusión y squash en los hosts compatibles, manteniendo a los coautores humanos. Incluye la fusión automática. Excluye las colas de fusión, las fusiones de pilas y los commits existentes.", diff --git a/apps/mobile/src/i18n/translations/fr.json b/apps/mobile/src/i18n/translations/fr.json index 28ec2284fca74..171c6d3c36024 100644 --- a/apps/mobile/src/i18n/translations/fr.json +++ b/apps/mobile/src/i18n/translations/fr.json @@ -3530,6 +3530,8 @@ "006f2c2416a56768": "Navigateur d’aperçu", "19e1f74805f4a1fb": "Accès des agents au navigateur", "74d09db9719594eb": "Autorise les agents à utiliser le navigateur d’aperçu intégré.", + "5511e975ba69f726": "Ordinateur", + "53d1d96a2699764a": "Autorise les agents à utiliser les apps des ordinateurs des environnements sélectionnés via Cua Driver. Sous macOS, accordez l’Accessibilité et l’Enregistrement de l’écran sur chaque hôte.", "13087312bc6a0b45": "Pull requests", "efb65f53a2382026": "Retirer les crédits d’agent lors de la fusion", "88631d9ea293eccd": "Retire les crédits d’agent reconnus des messages de fusion et de squash sur les hébergeurs qui le permettent, en gardant les co-auteurs humains. Inclut la fusion automatique. Exclut les files de fusion, les fusions de pile et les commits existants.", diff --git a/apps/mobile/src/i18n/translations/ja.json b/apps/mobile/src/i18n/translations/ja.json index f6741fdb8b775..9bea9a00ab838 100644 --- a/apps/mobile/src/i18n/translations/ja.json +++ b/apps/mobile/src/i18n/translations/ja.json @@ -3527,6 +3527,8 @@ "006f2c2416a56768": "プレビューブラウザー", "19e1f74805f4a1fb": "エージェントのブラウザーアクセス", "74d09db9719594eb": "エージェントにアプリ内のプレビューブラウザーの使用を許可します。", + "5511e975ba69f726": "コンピューター", + "53d1d96a2699764a": "Cua Driver を通じて、選択した環境のコンピューター上のアプリをエージェントが使えるようにします。macOS では、各ホストでアクセシビリティと画面収録を許可してください。", "13087312bc6a0b45": "プルリクエスト", "efb65f53a2382026": "マージ時にエージェントのクレジットを削除", "88631d9ea293eccd": "対応しているホストでは、マージとスカッシュのメッセージから認識されたエージェントのクレジットを削除し、人間の共同作成者は残します。自動マージにも適用されます。マージキュー、スタックのマージ、既存のコミットは対象外です。", diff --git a/apps/mobile/src/i18n/translations/ko.json b/apps/mobile/src/i18n/translations/ko.json index b1ef20ba0f347..7f56b73e6b367 100644 --- a/apps/mobile/src/i18n/translations/ko.json +++ b/apps/mobile/src/i18n/translations/ko.json @@ -3531,6 +3531,8 @@ "006f2c2416a56768": "미리 보기 브라우저", "19e1f74805f4a1fb": "에이전트 브라우저 액세스", "74d09db9719594eb": "에이전트가 앱 내 미리 보기 브라우저를 사용하도록 허용합니다.", + "5511e975ba69f726": "컴퓨터", + "53d1d96a2699764a": "에이전트가 Cua Driver를 통해 선택한 환경의 컴퓨터에서 앱을 사용할 수 있게 합니다. macOS에서는 각 호스트에서 손쉬운 사용과 화면 녹화 권한을 허용하세요.", "13087312bc6a0b45": "풀 리퀘스트", "efb65f53a2382026": "병합 시 에이전트 크레딧 제거", "88631d9ea293eccd": "지원하는 호스트에서 병합 및 스쿼시 메시지에 포함된 에이전트 크레딧을 제거하고 사람 공동 작성자는 유지합니다. 자동 병합에도 적용됩니다. 병합 큐, 스택 병합, 기존 커밋은 제외됩니다.", diff --git a/apps/mobile/src/i18n/translations/pt-BR.json b/apps/mobile/src/i18n/translations/pt-BR.json index b40494fca3885..3db2ab9a64a15 100644 --- a/apps/mobile/src/i18n/translations/pt-BR.json +++ b/apps/mobile/src/i18n/translations/pt-BR.json @@ -3530,6 +3530,8 @@ "006f2c2416a56768": "Navegador de pré-visualização", "19e1f74805f4a1fb": "Acesso dos agentes ao navegador", "74d09db9719594eb": "Permite que os agentes usem o navegador de pré-visualização do app.", + "5511e975ba69f726": "Computador", + "53d1d96a2699764a": "Permite que agentes usem apps nos computadores dos ambientes selecionados pelo Cua Driver. No macOS, conceda Acessibilidade e Gravação de Tela em cada host.", "13087312bc6a0b45": "Pull requests", "efb65f53a2382026": "Remover créditos de agentes ao mesclar", "88631d9ea293eccd": "Remove os créditos de agentes reconhecidos das mensagens de merge e squash nos hosts que oferecem suporte, mantendo os coautores humanos. Inclui o auto-merge. Exclui merge queues, merges de stack e commits existentes.", diff --git a/apps/mobile/src/i18n/translations/ru.json b/apps/mobile/src/i18n/translations/ru.json index cadf07e57eda9..25a931be808db 100644 --- a/apps/mobile/src/i18n/translations/ru.json +++ b/apps/mobile/src/i18n/translations/ru.json @@ -3584,6 +3584,8 @@ "006f2c2416a56768": "Браузер предпросмотра", "19e1f74805f4a1fb": "Доступ агентов к браузеру", "74d09db9719594eb": "Разрешить агентам использовать встроенный браузер предпросмотра.", + "5511e975ba69f726": "Компьютер", + "53d1d96a2699764a": "Разрешить агентам использовать приложения на компьютерах выбранных окружений через Cua Driver. В macOS предоставьте «Специальные возможности» и «Запись экрана» на каждом хосте.", "13087312bc6a0b45": "Пул-реквесты", "efb65f53a2382026": "Удалять авторство агентов при слиянии", "88631d9ea293eccd": "Удалять распознанное авторство агентов из сообщений merge и squash на хостингах, которые это поддерживают, сохраняя соавторов-людей. Включая автослияние. Не касается очередей слияния, слияний стеков и существующих коммитов.", diff --git a/apps/mobile/src/i18n/translations/sv.json b/apps/mobile/src/i18n/translations/sv.json index 3a0273aef36fd..fc915a256ca87 100644 --- a/apps/mobile/src/i18n/translations/sv.json +++ b/apps/mobile/src/i18n/translations/sv.json @@ -3536,6 +3536,8 @@ "006f2c2416a56768": "Förhandsvisningswebbläsare", "19e1f74805f4a1fb": "Agenters webbläsaråtkomst", "74d09db9719594eb": "Låt agenter använda förhandsvisningswebbläsaren i appen.", + "5511e975ba69f726": "Dator", + "53d1d96a2699764a": "Låt agenter använda appar på de valda miljöernas datorer via Cua Driver. På macOS, ge Tillgänglighet och Skärminspelning på varje värd.", "13087312bc6a0b45": "Pull requests", "efb65f53a2382026": "Ta bort agentmedförfattare vid merge", "88631d9ea293eccd": "Ta bort igenkända agentmedförfattare från merge- och squash-meddelanden hos värdar som stöder det, och behåll mänskliga medförfattare. Gäller även automatisk merge. Gäller inte merge-köer, stack-merges och befintliga commits.", diff --git a/apps/mobile/src/i18n/translations/zh.json b/apps/mobile/src/i18n/translations/zh.json index f1c394c60c606..103c33f69107f 100644 --- a/apps/mobile/src/i18n/translations/zh.json +++ b/apps/mobile/src/i18n/translations/zh.json @@ -3532,6 +3532,8 @@ "006f2c2416a56768": "预览浏览器", "19e1f74805f4a1fb": "智能体浏览器访问", "74d09db9719594eb": "允许智能体使用应用内预览浏览器。", + "5511e975ba69f726": "计算机", + "53d1d96a2699764a": "允许智能体通过 Cua Driver 使用所选环境计算机上的应用。在 macOS 上,请在每台主机上授予辅助功能和屏幕录制权限。", "13087312bc6a0b45": "PR", "efb65f53a2382026": "合并时移除智能体署名", "88631d9ea293eccd": "在支持的托管平台上,从合并和压缩合并的提交信息中移除可识别的智能体署名,保留人类共同作者。包括自动合并。不包括合并队列、堆叠合并和已有提交。", diff --git a/apps/web/src/components/settings/CuaSetupDialog.tsx b/apps/web/src/components/settings/CuaSetupDialog.tsx index 1d51e8c82557e..b88a49bfd58fb 100644 --- a/apps/web/src/components/settings/CuaSetupDialog.tsx +++ b/apps/web/src/components/settings/CuaSetupDialog.tsx @@ -1,4 +1,5 @@ import type { CuaHostStatus } from "@t3tools/contracts"; +import { T, useGT, Var } from "gt-react"; import { useRef, useState } from "react"; import { MacAccessibilityIcon, MacScreenRecordingIcon } from "../Icons"; @@ -19,19 +20,6 @@ export type CuaPermission = "accessibility" | "screen-recording"; const CUA_PERMISSIONS: readonly CuaPermission[] = ["accessibility", "screen-recording"]; -function hostRequirements(platform: CuaHostStatus["platform"], hostLabel: string): string { - switch (platform) { - case "darwin": - return `${hostLabel} needs Accessibility and Screen Recording. Finish setup at that Mac: in System Settings → Privacy & Security, grant access to the app or process running this environment. You can turn the setting on from here.`; - case "linux": - return `${hostLabel} needs a signed-in graphical session. On Wayland, someone at ${hostLabel} may need to approve a screen capture prompt.`; - case "win32": - return `${hostLabel} needs a signed-in desktop session. If Windows shows a security prompt for Cua Driver, someone at that computer must respond.`; - default: - return `Computer use needs a desktop on ${hostLabel}.`; - } -} - export function CuaSetupDialog({ enabled, hostLabel, @@ -51,6 +39,7 @@ export function CuaSetupDialog({ onEnable: () => Promise; onClose: () => void; }) { + const gt = useGT(); const [busy, setBusy] = useState(false); const pending = useRef(false); const [error, setError] = useState(null); @@ -71,11 +60,10 @@ export function CuaSetupDialog({ try { await onAllow(target); } catch { - setError("Could not open System Settings. Try Allow again."); - } finally { - pending.current = false; - setBusy(false); + setError(gt("Could not open System Settings. Try Allow again.")); } + pending.current = false; + setBusy(false); }; const finish = async () => { if (pending.current || !ready) return; @@ -86,12 +74,30 @@ export function CuaSetupDialog({ await onEnable(); onClose(); } catch (error) { - setError(error instanceof Error ? error.message : "Could not save the setting. Try again."); - } finally { - pending.current = false; - setBusy(false); + setError( + error instanceof Error ? error.message : gt("Could not save the setting. Try again."), + ); } + pending.current = false; + setBusy(false); }; + const hostRequirements = + platform === "darwin" + ? gt( + "{host} needs Accessibility and Screen Recording. Finish setup at that Mac: in System Settings → Privacy & Security, grant access to the app or process running this environment. You can turn the setting on from here.", + { host: hostLabel }, + ) + : platform === "linux" + ? gt( + "{host} needs a signed-in graphical session. On Wayland, someone at {host} may need to approve a screen capture prompt.", + { host: hostLabel }, + ) + : platform === "win32" + ? gt( + "{host} needs a signed-in desktop session. If Windows shows a security prompt for Cua Driver, someone at that computer must respond.", + { host: hostLabel }, + ) + : gt("Computer use needs a desktop on {host}.", { host: hostLabel }); return ( - Let agents use {hostLabel} + + + Let agents use {hostLabel} + + - Cua Driver lets agents see and use apps on {hostLabel} in the background, without moving - your cursor. Agent sessions started afterwards get the computer use tools. + + Cua Driver lets agents see and use apps on {hostLabel} in the background, + without moving your cursor. Agent sessions started afterwards get the computer use + tools. + @@ -115,23 +128,23 @@ export function CuaSetupDialog({ { id: "accessibility", icon: , - title: "Accessibility", - description: "Click, type, and read controls in other apps.", + title: gt("Accessibility"), + description: gt("Click, type, and read controls in other apps."), granted: permission.status.accessibility, onAllow: () => void allow("accessibility"), }, { id: "screen-recording", icon: , - title: "Screen Recording", - description: "See the screen to decide what to do next.", + title: gt("Screen Recording"), + description: gt("See the screen to decide what to do next."), granted: permission.status["screen-recording"], onAllow: () => void allow("screen-recording"), }, ]} /> ) : ( -

{hostRequirements(platform, hostLabel)}

+

{hostRequirements}

)} {error || (localMac && permission.error) ? (

@@ -140,7 +153,7 @@ export function CuaSetupDialog({ ) : null} {localMac && !ready ? (

- If a permission stays off after you allow it, quit and reopen T3 Code. + If a permission stays off after you allow it, quit and reopen T3 Code.

) : null}
@@ -152,10 +165,10 @@ export function CuaSetupDialog({ if (!pending.current) onClose(); }} > - {enabled ? "Close" : "Finish later"} + {enabled ? gt("Close") : gt("Finish later")} void finish()}> - {enabled ? "Done" : "Turn on"} + {enabled ? gt("Done") : gt("Turn on")}
diff --git a/apps/web/src/components/settings/IntegrationsSettings.tsx b/apps/web/src/components/settings/IntegrationsSettings.tsx index 851b60935201b..5c40adbd8da55 100644 --- a/apps/web/src/components/settings/IntegrationsSettings.tsx +++ b/apps/web/src/components/settings/IntegrationsSettings.tsx @@ -1145,18 +1145,19 @@ function AgentBrowserAccessSetting() { } function ComputerUseSettings() { + const gt = useGT(); const { scope, environment, search } = useSettingsScope(); const singleHost = scope.kind === "environment" || (scope.kind === "all" && scope.environmentIds.length === 1); return ( - + {singleHost && environment ? ( ) : ( {singleHost - ? "Connect the selected environment to configure computer use." - : "Choose one environment to configure computer use on its host."} + ? gt("Connect the selected environment to configure computer use.") + : gt("Choose one environment to configure computer use on its host.")} )} @@ -1164,6 +1165,8 @@ function ComputerUseSettings() { } function ComputerUseControls() { + const gt = useGT(); + const searchableSetting = useSearchableSetting(); const { environment: selected } = useSettingsScope(); const settings = useScopedSettings(); const updateSettings = useUpdateScopedSettings(); @@ -1173,7 +1176,7 @@ function ComputerUseControls() { selected?.connection.phase === "connected" && selected.serverConfig !== null ? selected.environmentId : null; - const hostLabel = selected?.label ?? "this computer"; + const hostLabel = selected?.label ?? gt("this computer"); const { data: status, error, @@ -1208,26 +1211,23 @@ function ComputerUseControls() { selected?.entry.target._tag === "PrimaryConnectionTarget"; const enabled = settings.enableCua; const statusText = error - ? `Could not check computer use: ${error}` + ? gt("Could not check computer use: {error}", { error }) : status === null - ? "Checking host…" + ? gt("Checking host…") : platform === "other" - ? "Computer use is not supported on this host." + ? gt("Computer use is not supported on this host.") : !enabled ? null : status.running - ? "Running" - : (status.failure ?? "Starts with the next agent session"); + ? gt("Running", { $context: "computer use driver status" }) + : (status.failure ?? gt("Starts with the next agent session")); const save = async (enableCua: boolean) => { setSaving(true); - try { - const result = await updateSettings({ enableCua }); - refresh(); - return result; - } finally { - setSaving(false); - } + const result = await updateSettings({ enableCua }); + refresh(); + setSaving(false); + return result; }; return ( @@ -1236,12 +1236,15 @@ function ComputerUseControls() { {...searchableSetting("cua-computer-use")} serverScoped settingKeys={["enableCua"]} - description={`Let agents see and use apps on ${hostLabel} through Cua Driver, in the background without moving your cursor. New agent sessions get the tools; turning this off stops the driver.`} + description={gt( + "Let agents see and use apps on {host} through Cua Driver, in the background without moving your cursor. New agent sessions get the tools; turning this off stops the driver.", + { host: hostLabel }, + )} status={statusText} resetAction={ enabled !== DEFAULT_SERVER_SETTINGS.enableCua && !saving && !setupOpen ? ( void save(DEFAULT_SERVER_SETTINGS.enableCua)} /> ) : null @@ -1255,7 +1258,7 @@ function ComputerUseControls() { disabled={saving || !canConfigure} onClick={() => setSetupOpen(true)} > - Setup + Setup ) : null} { if (checked) setSetupOpen(true); else void save(false); @@ -1292,12 +1295,12 @@ function ComputerUseControls() { }} onEnable={async () => { if (!readEnvironmentScope(environmentId, AuthSettingsWriteScope)) { - throw new Error("This connection cannot change settings on this host."); + throw new Error(gt("This connection cannot change settings on this host.")); } if (!enabled) { const result = await save(true); if (!result.saved) - throw new Error(result.message ?? "Could not save the setting. Try again."); + throw new Error(result.message ?? gt("Could not save the setting. Try again.")); } // A driver started before the grants keeps macOS's cached denial. if (localMac) { @@ -1305,7 +1308,7 @@ function ComputerUseControls() { await window.desktopBridge?.restartCuaDriver(); } catch { throw new Error( - "Computer use is on, but Cua Driver could not restart. Try Setup again.", + gt("Computer use is on, but Cua Driver could not restart. Try Setup again."), ); } } diff --git a/apps/web/src/components/settings/settingsSearch.ts b/apps/web/src/components/settings/settingsSearch.ts index 03da2301f144b..91977f9ad00bd 100644 --- a/apps/web/src/components/settings/settingsSearch.ts +++ b/apps/web/src/components/settings/settingsSearch.ts @@ -1100,10 +1100,12 @@ export const SETTINGS_SEARCH_ITEMS = [ }, { id: "cua-computer-use", - title: "Computer use", + title: msg("Computer use"), to: "/settings/devices", targetId: "computer", - searchTerms: ["cua driver apps desktop screen click type agents control mac linux windows"], + searchTerms: [ + msg("cua driver apps desktop screen click type agents control mac linux windows"), + ], }, { id: "device-hub", diff --git a/apps/web/src/components/settings/useScopedSettings.ts b/apps/web/src/components/settings/useScopedSettings.ts index b05e8b950464e..a402b255f8c05 100644 --- a/apps/web/src/components/settings/useScopedSettings.ts +++ b/apps/web/src/components/settings/useScopedSettings.ts @@ -172,7 +172,9 @@ export function useClearScopedSettings() { const run = useRunScopedPlan(); return (keys: readonly ProjectScopedServerSettingKey[]) => { if (context === null) return; - void run(context.environments, (current) => planScopedSettingsClear(context.scope, current, keys)); + void run(context.environments, (current) => + planScopedSettingsClear(context.scope, current, keys), + ); }; } diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index 4c9f0f6d27e4f..e470053c47973 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -7979,6 +7979,34 @@ "2a0148ea9068a814": "HTTPS-Port", "7f4f2ba57d3d1c76": "Gib einen Port von 1 bis 65535 ein.", "82af9c66caf2f40c": "HTTPS-Endpunkt", + "707f67fce618fc5e": "Die Einstellung konnte nicht gespeichert werden. Versuch es erneut.", + "884fd831365c61c5": "{host} benötigt Barrierefreiheit und Bildschirmaufnahme. Schließe die Einrichtung an diesem Mac ab: Gib unter Systemeinstellungen → Datenschutz & Sicherheit der App oder dem Prozess Zugriff, der diese Umgebung ausführt. Die Einstellung kannst du hier einschalten.", + "9250c3c1139e34ba": "{host} benötigt eine angemeldete grafische Sitzung. Unter Wayland muss eventuell jemand an {host} eine Bildschirmaufnahme-Anfrage bestätigen.", + "7c95483d772cca40": "{host} benötigt eine angemeldete Desktop-Sitzung. Wenn Windows eine Sicherheitsabfrage für Cua Driver anzeigt, muss jemand an diesem Computer darauf reagieren.", + "8d470dfb1a596179": "Computersteuerung benötigt einen Desktop auf {host}.", + "82a12d86994dfd17": "In anderen Apps klicken, tippen und Steuerelemente lesen.", + "c07fc2cd79fb94c4": "Bildschirmaufnahme", + "4bbac051622766c1": "Den Bildschirm sehen, um den nächsten Schritt zu entscheiden.", + "75b1a7d1af613c5d": "Später abschließen", + "a9b9096280be6466": [ + "Agenten ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " verwenden lassen" + ], + "2134eedfc10881bf": [ + "Mit Cua Driver können Agenten Apps auf ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " im Hintergrund sehen und bedienen, ohne deinen Mauszeiger zu bewegen. Danach gestartete Agentensitzungen erhalten die Werkzeuge zur Computersteuerung." + ], + "91db0a2b0ad84a78": "Wenn eine Berechtigung nach dem Erlauben aus bleibt, beende T3 Code und öffne es erneut.", "0e0007dd7a694472": "Wert", "c9bacc3dea4ba2ba": "Auswahlwert", "9f054868dad69700": "Auswahlbezeichnung", @@ -8314,6 +8342,18 @@ "a6a6dc235b108747": "Agenten den gemeinsamen Browser nutzen lassen. Projekte können das überschreiben.", "ea5fed973bfc1aca": "Standard-Browserzugriff auf Standard zurücksetzen", "19e1f74805f4a1fb": "Browserzugriff für Agenten", + "5511e975ba69f726": "Computer", + "72cb818f86f74f1d": "Verbinde die ausgewählte Umgebung, um die Computersteuerung einzurichten.", + "3a989eeb48af4c84": "Wähle eine Umgebung, um die Computersteuerung auf ihrem Host einzurichten.", + "c97c0f969ce80c8c": "Computersteuerung konnte nicht geprüft werden: {error}", + "801552a09d64a639": "Host wird geprüft…", + "e1b60530b496ca5c": "Computersteuerung wird auf diesem Host nicht unterstützt.", + "639ff10e3ee18700": "Läuft", + "141b50a063b68ed7": "Startet mit der nächsten Agentensitzung", + "0e89b20d03477910": "Agenten Apps auf {host} über Cua Driver im Hintergrund sehen und bedienen lassen, ohne deinen Mauszeiger zu bewegen. Neue Agentensitzungen erhalten die Werkzeuge; beim Ausschalten wird der Treiber beendet.", + "d18307275ee97e9a": "Computersteuerung auf Standard zurücksetzen", + "1419352c258bc7de": "Diese Verbindung kann auf diesem Host keine Einstellungen ändern.", + "b26ad48726dd8132": "Computersteuerung ist eingeschaltet, aber Cua Driver konnte nicht neu starten. Öffne das Setup erneut.", "b395b88284e3bca2": "Die schwebende Vorschau anzeigen, wenn ein Agent einen Browser oder ein Gerät öffnet, sofern der Agent nichts anderes angibt.", "6aadfd59cf60b4b5": "Schwebende Vorschau automatisch anzeigen auf Standard zurücksetzen", "e4a7ec61190bc1f9": "Schwebende Vorschau automatisch anzeigen", @@ -8352,6 +8392,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "Setup", "093c68324c1b1280": "Profil hinzufügen", "1f404c456e5b2a0b": "Leeres Profil", "d7671e975097e9e4": "Du hast das Profillimit erreicht", @@ -10202,12 +10243,10 @@ "f0d425b07fcbc3ea": "Verwende beide Shift-Tasten oder nimm ein anderes Tastenkürzel auf.", "d540b70f53f1d607": "Snapshots für {desktop} einrichten", "64581b55ed1d7bd0": "Snapshots einrichten", - "c07fc2cd79fb94c4": "Bildschirmaufnahme", "f9ea8807dc374cd8": "Das Fenster aufnehmen, das du gerade verwendest.", "48a77acf7f6d02ce": "Text und Bedienelemente der aufgenommenen App einbeziehen.", "0be1d4792a45fe09": "Optional. Text und Bedienelemente der aufgenommenen App einbeziehen.", "3fedab2033ce9bb4": "Berechtigungen für Tastenkürzel", - "75b1a7d1af613c5d": "Später abschließen", "06980ca0b81bf3b7": "Hilfsprogramm aktualisieren", "08f57e9a43ad6b5a": "Hilfsprogramm installieren", "86522c53dd8e09d1": "Wird ausgeführt…", @@ -11511,6 +11550,7 @@ "345075be6cacc171": "gerät hosts ssh remote mac mini identität schlüssel verbindung eas expo cloud simlock pool gateway lokale simulatoren", "a6b742430b05d6cc": "Agenten können Geräte nutzen", "1d5d7418a83575c2": "erlauben simulator emulator ios android steuern tools sitzungen", + "04050ac46c68cdaa": "cua driver apps desktop bildschirm klicken tippen agenten steuerung computersteuerung mac linux windows", "60f0825756e404dc": "Geräte nutzen", "907782e153a139a3": "geräte-hub simulator emulator ios android installieren starten version", "ad89031709b521b8": "simulator unterstützung xcode android studio sdk avd laufzeit", @@ -11585,6 +11625,7 @@ "b18a6e1b9875df35": "Dieses Modell ist in einer ausgewählten Umgebung nicht verfügbar. Wähle diese Umgebung, um ihr Modell separat festzulegen.", "3d7abd288b8d6d37": "Dieser Verbindung fehlt die Berechtigung, diese Einstellungen zu ändern.", "7260a6658b09efee": "Speichern auf {label} fehlgeschlagen: {message}", + "2485877057d662f6": "Das Speichern ist fehlgeschlagen. Versuch es erneut.", "c280dbfac3f28888": "Aufnahme des Tastenkürzels konnte nicht gestartet werden.", "3783f7d9877c9cba": "Füge deinem Tastenkürzel einen Buchstaben, eine Ziffer oder eine Funktionstaste hinzu.", "008e305ea6638832": "Snapshot-Tastenkürzel aufnehmen, aktuell {shortcut}", diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json index c40470b46e6ae..e8c65e4600495 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -7986,6 +7986,33 @@ "2a0148ea9068a814": "HTTPS port", "7f4f2ba57d3d1c76": "Enter a port from 1 to 65535.", "82af9c66caf2f40c": "HTTPS endpoint", + "707f67fce618fc5e": "Could not save the setting. Try again.", + "884fd831365c61c5": "{host} needs Accessibility and Screen Recording. Finish setup at that Mac: in System Settings → Privacy & Security, grant access to the app or process running this environment. You can turn the setting on from here.", + "9250c3c1139e34ba": "{host} needs a signed-in graphical session. On Wayland, someone at {host} may need to approve a screen capture prompt.", + "7c95483d772cca40": "{host} needs a signed-in desktop session. If Windows shows a security prompt for Cua Driver, someone at that computer must respond.", + "8d470dfb1a596179": "Computer use needs a desktop on {host}.", + "82a12d86994dfd17": "Click, type, and read controls in other apps.", + "c07fc2cd79fb94c4": "Screen Recording", + "4bbac051622766c1": "See the screen to decide what to do next.", + "75b1a7d1af613c5d": "Finish later", + "a9b9096280be6466": [ + "Let agents use ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "2134eedfc10881bf": [ + "Cua Driver lets agents see and use apps on ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " in the background, without moving your cursor. Agent sessions started afterwards get the computer use tools." + ], + "91db0a2b0ad84a78": "If a permission stays off after you allow it, quit and reopen T3 Code.", "0e0007dd7a694472": "value", "c9bacc3dea4ba2ba": "Choice value", "9f054868dad69700": "Choice label", @@ -8322,6 +8349,18 @@ "a6a6dc235b108747": "Allow agents to use the shared browser. Projects can override it.", "ea5fed973bfc1aca": "Reset default browser access to default", "19e1f74805f4a1fb": "Agent browser access", + "5511e975ba69f726": "Computer", + "72cb818f86f74f1d": "Connect the selected environment to configure computer use.", + "3a989eeb48af4c84": "Choose one environment to configure computer use on its host.", + "c97c0f969ce80c8c": "Could not check computer use: {error}", + "801552a09d64a639": "Checking host…", + "e1b60530b496ca5c": "Computer use is not supported on this host.", + "639ff10e3ee18700": "Running", + "141b50a063b68ed7": "Starts with the next agent session", + "0e89b20d03477910": "Let agents see and use apps on {host} through Cua Driver, in the background without moving your cursor. New agent sessions get the tools; turning this off stops the driver.", + "d18307275ee97e9a": "Reset computer use to default", + "1419352c258bc7de": "This connection cannot change settings on this host.", + "b26ad48726dd8132": "Computer use is on, but Cua Driver could not restart. Try Setup again.", "b395b88284e3bca2": "Show the floating preview when an agent opens a browser or device unless the agent says otherwise.", "6aadfd59cf60b4b5": "Reset auto-show floating preview to default", "e4a7ec61190bc1f9": "Auto-show floating preview", @@ -8360,6 +8399,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "Setup", "093c68324c1b1280": "Add profile", "1f404c456e5b2a0b": "Blank profile", "d7671e975097e9e4": "You’ve reached the profile limit", @@ -10211,12 +10251,10 @@ "f0d425b07fcbc3ea": "Use both Shift keys, or record a different shortcut.", "d540b70f53f1d607": "Set up snapshots for {desktop}", "64581b55ed1d7bd0": "Set up snapshots", - "c07fc2cd79fb94c4": "Screen Recording", "f9ea8807dc374cd8": "Capture the window you're using.", "48a77acf7f6d02ce": "Include text and controls from the captured app.", "0be1d4792a45fe09": "Optional. Include text and controls from the captured app.", "3fedab2033ce9bb4": "Shortcut permissions", - "75b1a7d1af613c5d": "Finish later", "06980ca0b81bf3b7": "Update helper", "08f57e9a43ad6b5a": "Install helper", "86522c53dd8e09d1": "Working…", @@ -11519,6 +11557,7 @@ "345075be6cacc171": "device hosts ssh remote mac mini identity key connection eas expo cloud simlock pool gateway local simulators", "a6b742430b05d6cc": "Agents can use devices", "1d5d7418a83575c2": "allow simulator emulator ios android drive tools sessions", + "04050ac46c68cdaa": "cua driver apps desktop screen click type agents control mac linux windows", "60f0825756e404dc": "Use devices", "907782e153a139a3": "device hub simulator emulator ios android install start version", "ad89031709b521b8": "simulator support xcode android studio sdk avd runtime", @@ -11593,6 +11632,7 @@ "b18a6e1b9875df35": "This model is unavailable on a selected environment. Select that environment to choose its model separately.", "3d7abd288b8d6d37": "This connection lacks permission to change these settings.", "7260a6658b09efee": "Could not save on {label}: {message}", + "2485877057d662f6": "The save failed. Try again.", "c280dbfac3f28888": "Could not start shortcut recording.", "3783f7d9877c9cba": "Add a letter, number, or function key to your shortcut.", "008e305ea6638832": "Record snapshot shortcut, currently {shortcut}", diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json index 68f63f589f51e..eb6b17a726afb 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -7978,6 +7978,33 @@ "2a0148ea9068a814": "Puerto HTTPS", "7f4f2ba57d3d1c76": "Introduce un puerto del 1 al 65535.", "82af9c66caf2f40c": "Endpoint HTTPS", + "707f67fce618fc5e": "No se pudo guardar el ajuste. Inténtalo de nuevo.", + "884fd831365c61c5": "{host} necesita Accesibilidad y Grabación de pantalla. Termina la configuración en ese Mac: en Ajustes del Sistema → Privacidad y seguridad, concede acceso a la app o al proceso que ejecuta este entorno. Puedes activar el ajuste desde aquí.", + "9250c3c1139e34ba": "{host} necesita una sesión gráfica iniciada. En Wayland, puede que alguien en {host} tenga que aprobar una solicitud de captura de pantalla.", + "7c95483d772cca40": "{host} necesita una sesión de escritorio iniciada. Si Windows muestra un aviso de seguridad para Cua Driver, alguien en ese equipo debe responder.", + "8d470dfb1a596179": "El uso del ordenador necesita un escritorio en {host}.", + "82a12d86994dfd17": "Hacer clic, escribir y leer controles en otras apps.", + "c07fc2cd79fb94c4": "Grabación de pantalla", + "4bbac051622766c1": "Ver la pantalla para decidir qué hacer a continuación.", + "75b1a7d1af613c5d": "Terminar más tarde", + "a9b9096280be6466": [ + "Permitir que los agentes usen ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "2134eedfc10881bf": [ + "Cua Driver permite que los agentes vean y usen apps en ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " en segundo plano, sin mover tu cursor. Las sesiones de agente que se inicien después tendrán las herramientas de uso del ordenador." + ], + "91db0a2b0ad84a78": "Si un permiso sigue desactivado después de permitirlo, cierra T3 Code y vuelve a abrirlo.", "0e0007dd7a694472": "valor", "c9bacc3dea4ba2ba": "Valor de la opción", "9f054868dad69700": "Etiqueta de la opción", @@ -8312,6 +8339,18 @@ "a6a6dc235b108747": "Permite que los agentes usen el navegador compartido. Los proyectos pueden anularlo.", "ea5fed973bfc1aca": "Restablecer el acceso predeterminado al navegador al valor predeterminado", "19e1f74805f4a1fb": "Acceso de agentes al navegador", + "5511e975ba69f726": "Ordenador", + "72cb818f86f74f1d": "Conecta el entorno seleccionado para configurar el uso del ordenador.", + "3a989eeb48af4c84": "Elige un entorno para configurar el uso del ordenador en su host.", + "c97c0f969ce80c8c": "No se pudo comprobar el uso del ordenador: {error}", + "801552a09d64a639": "Comprobando el host…", + "e1b60530b496ca5c": "El uso del ordenador no es compatible con este host.", + "639ff10e3ee18700": "En ejecución", + "141b50a063b68ed7": "Se inicia con la próxima sesión de agente", + "0e89b20d03477910": "Permite que los agentes vean y usen apps en {host} mediante Cua Driver, en segundo plano y sin mover tu cursor. Las nuevas sesiones de agente reciben las herramientas; al desactivarlo, el controlador se detiene.", + "d18307275ee97e9a": "Restablecer el uso del ordenador al valor predeterminado", + "1419352c258bc7de": "Esta conexión no puede cambiar ajustes en este host.", + "b26ad48726dd8132": "El uso del ordenador está activado, pero Cua Driver no pudo reiniciarse. Vuelve a abrir la configuración.", "b395b88284e3bca2": "Muestra la vista previa flotante cuando un agente abre un navegador o dispositivo, salvo que el agente indique lo contrario.", "6aadfd59cf60b4b5": "Restablecer mostrar automáticamente la vista previa flotante al valor predeterminado", "e4a7ec61190bc1f9": "Mostrar automáticamente la vista previa flotante", @@ -8350,6 +8389,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "Configuración", "093c68324c1b1280": "Añadir perfil", "1f404c456e5b2a0b": "Perfil en blanco", "d7671e975097e9e4": "Has alcanzado el límite de perfiles", @@ -10199,12 +10239,10 @@ "f0d425b07fcbc3ea": "Usa ambas teclas Shift o graba otro atajo.", "d540b70f53f1d607": "Configurar capturas para {desktop}", "64581b55ed1d7bd0": "Configurar capturas", - "c07fc2cd79fb94c4": "Grabación de pantalla", "f9ea8807dc374cd8": "Captura la ventana que estás usando.", "48a77acf7f6d02ce": "Incluye texto y controles de la app capturada.", "0be1d4792a45fe09": "Opcional. Incluye texto y controles de la app capturada.", "3fedab2033ce9bb4": "Permisos del atajo", - "75b1a7d1af613c5d": "Terminar más tarde", "06980ca0b81bf3b7": "Actualizar asistente", "08f57e9a43ad6b5a": "Instalar asistente", "86522c53dd8e09d1": "Trabajando…", @@ -11504,6 +11542,7 @@ "345075be6cacc171": "hosts de dispositivos ssh remoto mac mini identidad clave conexión eas expo nube simlock grupo gateway simuladores locales", "a6b742430b05d6cc": "Los agentes pueden usar dispositivos", "1d5d7418a83575c2": "permitir simulador emulador ios android controlar herramientas sesiones", + "04050ac46c68cdaa": "cua driver apps escritorio pantalla clic escribir agentes control uso del ordenador mac linux windows", "60f0825756e404dc": "Usar dispositivos", "907782e153a139a3": "hub de dispositivos simulador emulador ios android instalar iniciar versión", "ad89031709b521b8": "simulador compatibilidad xcode android studio sdk avd runtime", @@ -11578,6 +11617,7 @@ "b18a6e1b9875df35": "Este modelo no está disponible en un entorno seleccionado. Selecciona ese entorno para elegir su modelo por separado.", "3d7abd288b8d6d37": "Esta conexión no tiene permiso para cambiar estos ajustes.", "7260a6658b09efee": "No se pudo guardar en {label}: {message}", + "2485877057d662f6": "No se pudo guardar. Inténtalo de nuevo.", "c280dbfac3f28888": "No se pudo iniciar la grabación del atajo.", "3783f7d9877c9cba": "Añade una letra, un número o una tecla de función a tu atajo.", "008e305ea6638832": "Grabar atajo de captura; actual: {shortcut}", diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json index 442c22ed3a2d7..bba268e42d085 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -7979,6 +7979,33 @@ "2a0148ea9068a814": "Port HTTPS", "7f4f2ba57d3d1c76": "Saisissez un port entre 1 et 65535.", "82af9c66caf2f40c": "Point de terminaison HTTPS", + "707f67fce618fc5e": "Impossible d’enregistrer le paramètre. Réessayez.", + "884fd831365c61c5": "{host} a besoin de l’Accessibilité et de l’Enregistrement de l’écran. Terminez la configuration sur ce Mac : dans Réglages Système → Confidentialité et sécurité, accordez l’accès à l’app ou au processus qui exécute cet environnement. Vous pouvez activer le paramètre d’ici.", + "9250c3c1139e34ba": "{host} a besoin d’une session graphique ouverte. Sous Wayland, quelqu’un devant {host} devra peut-être approuver une demande de capture d’écran.", + "7c95483d772cca40": "{host} a besoin d’une session de bureau ouverte. Si Windows affiche une alerte de sécurité pour Cua Driver, quelqu’un devant cet ordinateur doit y répondre.", + "8d470dfb1a596179": "Le contrôle de l’ordinateur nécessite un bureau sur {host}.", + "82a12d86994dfd17": "Cliquer, saisir du texte et lire les commandes dans d’autres apps.", + "c07fc2cd79fb94c4": "Enregistrement de l’écran", + "4bbac051622766c1": "Voir l’écran pour décider de la suite.", + "75b1a7d1af613c5d": "Terminer plus tard", + "a9b9096280be6466": [ + "Autoriser les agents à utiliser ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "2134eedfc10881bf": [ + "Cua Driver permet aux agents de voir et d’utiliser les apps sur ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " en arrière-plan, sans déplacer votre curseur. Les sessions d’agent démarrées ensuite reçoivent les outils de contrôle de l’ordinateur." + ], + "91db0a2b0ad84a78": "Si une autorisation reste désactivée après l’avoir accordée, quittez puis rouvrez T3 Code.", "0e0007dd7a694472": "valeur", "c9bacc3dea4ba2ba": "Valeur du choix", "9f054868dad69700": "Libellé du choix", @@ -8313,6 +8340,18 @@ "a6a6dc235b108747": "Autorise les agents à utiliser le navigateur partagé. Les projets peuvent remplacer ce paramètre.", "ea5fed973bfc1aca": "Réinitialiser l’accès par défaut au navigateur à la valeur par défaut", "19e1f74805f4a1fb": "Accès des agents au navigateur", + "5511e975ba69f726": "Ordinateur", + "72cb818f86f74f1d": "Connectez l’environnement sélectionné pour configurer le contrôle de l’ordinateur.", + "3a989eeb48af4c84": "Choisissez un environnement pour configurer le contrôle de l’ordinateur sur son hôte.", + "c97c0f969ce80c8c": "Impossible de vérifier le contrôle de l’ordinateur : {error}", + "801552a09d64a639": "Vérification de l’hôte…", + "e1b60530b496ca5c": "Le contrôle de l’ordinateur n’est pas pris en charge sur cet hôte.", + "639ff10e3ee18700": "En cours", + "141b50a063b68ed7": "Démarre avec la prochaine session d’agent", + "0e89b20d03477910": "Permet aux agents de voir et d’utiliser les apps sur {host} via Cua Driver, en arrière-plan sans déplacer votre curseur. Les nouvelles sessions d’agent reçoivent les outils ; désactiver ce réglage arrête le pilote.", + "d18307275ee97e9a": "Réinitialiser le contrôle de l’ordinateur à la valeur par défaut", + "1419352c258bc7de": "Cette connexion ne peut pas modifier les paramètres sur cet hôte.", + "b26ad48726dd8132": "Le contrôle de l’ordinateur est activé, mais Cua Driver n’a pas pu redémarrer. Relancez la configuration.", "b395b88284e3bca2": "Affiche l’aperçu flottant quand un agent ouvre un navigateur ou un appareil, sauf si l’agent indique le contraire.", "6aadfd59cf60b4b5": "Réinitialiser l’affichage automatique de l’aperçu flottant à la valeur par défaut", "e4a7ec61190bc1f9": "Afficher automatiquement l’aperçu flottant", @@ -8351,6 +8390,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "Configuration", "093c68324c1b1280": "Ajouter un profil", "1f404c456e5b2a0b": "Profil vierge", "d7671e975097e9e4": "Vous avez atteint la limite de profils", @@ -10201,12 +10241,10 @@ "f0d425b07fcbc3ea": "Utilisez les deux touches Shift, ou enregistrez un autre raccourci.", "d540b70f53f1d607": "Configurer les captures pour {desktop}", "64581b55ed1d7bd0": "Configurer les captures", - "c07fc2cd79fb94c4": "Enregistrement de l’écran", "f9ea8807dc374cd8": "Capturez la fenêtre que vous utilisez.", "48a77acf7f6d02ce": "Inclut le texte et les contrôles de l’app capturée.", "0be1d4792a45fe09": "Facultatif. Inclut le texte et les contrôles de l’app capturée.", "3fedab2033ce9bb4": "Autorisations du raccourci", - "75b1a7d1af613c5d": "Terminer plus tard", "06980ca0b81bf3b7": "Mettre à jour l’assistant", "08f57e9a43ad6b5a": "Installer l’assistant", "86522c53dd8e09d1": "En cours…", @@ -11509,6 +11547,7 @@ "345075be6cacc171": "appareil hôtes ssh distant mac mini identité clé connexion eas expo cloud simlock pool passerelle simulateurs locaux", "a6b742430b05d6cc": "Les agents peuvent utiliser les appareils", "1d5d7418a83575c2": "autoriser simulateur émulateur ios android piloter outils sessions", + "04050ac46c68cdaa": "cua driver apps bureau écran cliquer saisir agents contrôle ordinateur mac linux windows", "60f0825756e404dc": "Utiliser les appareils", "907782e153a139a3": "hub d’appareils simulateur émulateur ios android installer démarrer version", "ad89031709b521b8": "prise en charge simulateur xcode android studio sdk avd runtime", @@ -11583,6 +11622,7 @@ "b18a6e1b9875df35": "Ce modèle n’est pas disponible dans un environnement sélectionné. Sélectionnez cet environnement pour choisir son modèle séparément.", "3d7abd288b8d6d37": "Cette connexion n’est pas autorisée à modifier ces paramètres.", "7260a6658b09efee": "Impossible d’enregistrer sur {label} : {message}", + "2485877057d662f6": "L’enregistrement a échoué. Réessayez.", "c280dbfac3f28888": "Impossible de démarrer l’enregistrement du raccourci.", "3783f7d9877c9cba": "Ajoutez une lettre, un chiffre ou une touche de fonction à votre raccourci.", "008e305ea6638832": "Enregistrer le raccourci de capture, actuellement {shortcut}", diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json index c9417551b208c..84d8cf00a77e5 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -7939,6 +7939,34 @@ "2a0148ea9068a814": "HTTPS ポート", "7f4f2ba57d3d1c76": "1〜65535 のポートを入力してください。", "82af9c66caf2f40c": "HTTPS エンドポイント", + "707f67fce618fc5e": "設定を保存できませんでした。もう一度お試しください。", + "884fd831365c61c5": "{host} にはアクセシビリティと画面収録が必要です。その Mac で設定を完了してください。システム設定 → プライバシーとセキュリティで、この環境を実行しているアプリまたはプロセスにアクセスを許可します。設定自体はここでオンにできます。", + "9250c3c1139e34ba": "{host} にはサインイン済みのグラフィカルセッションが必要です。Wayland では、{host} の前にいる人が画面キャプチャの確認を承認する必要がある場合があります。", + "7c95483d772cca40": "{host} にはサインイン済みのデスクトップセッションが必要です。Windows に Cua Driver のセキュリティ確認が表示された場合は、そのコンピューターの前にいる人が応答する必要があります。", + "8d470dfb1a596179": "コンピューター操作には {host} 上のデスクトップが必要です。", + "82a12d86994dfd17": "他のアプリでクリック、入力、コントロールの読み取りを行います。", + "c07fc2cd79fb94c4": "画面収録", + "4bbac051622766c1": "画面を見て次の操作を判断します。", + "75b1a7d1af613c5d": "後で完了", + "a9b9096280be6466": [ + "エージェントに ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " の使用を許可" + ], + "2134eedfc10881bf": [ + "Cua Driver を使うと、エージェントはカーソルを動かさずにバックグラウンドで ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " のアプリを確認して操作できます。この後に開始したエージェントのセッションでコンピューター操作ツールを使えるようになります。" + ], + "91db0a2b0ad84a78": "許可しても権限がオフのままの場合は、T3 Code を終了して再度開いてください。", "0e0007dd7a694472": "値", "c9bacc3dea4ba2ba": "選択肢の値", "9f054868dad69700": "選択肢のラベル", @@ -8270,6 +8298,18 @@ "a6a6dc235b108747": "エージェントに共有ブラウザーの使用を許可します。プロジェクトごとに上書きできます。", "ea5fed973bfc1aca": "デフォルトのブラウザーアクセスをデフォルトにリセット", "19e1f74805f4a1fb": "エージェントのブラウザーアクセス", + "5511e975ba69f726": "コンピューター", + "72cb818f86f74f1d": "コンピューター操作を設定するには、選択した環境に接続してください。", + "3a989eeb48af4c84": "ホストでコンピューター操作を設定するには、環境を 1 つ選択してください。", + "c97c0f969ce80c8c": "コンピューター操作を確認できませんでした: {error}", + "801552a09d64a639": "ホストを確認しています…", + "e1b60530b496ca5c": "このホストではコンピューター操作に対応していません。", + "639ff10e3ee18700": "実行中", + "141b50a063b68ed7": "次のエージェントのセッションで開始します", + "0e89b20d03477910": "Cua Driver を通じて、カーソルを動かさずにバックグラウンドで {host} のアプリをエージェントが確認・操作できるようにします。新しいエージェントのセッションでツールを使えます。オフにするとドライバーが停止します。", + "d18307275ee97e9a": "コンピューター操作をデフォルトにリセット", + "1419352c258bc7de": "この接続ではこのホストの設定を変更できません。", + "b26ad48726dd8132": "コンピューター操作はオンですが、Cua Driver を再起動できませんでした。もう一度セットアップを開いてください。", "b395b88284e3bca2": "エージェントがブラウザーやデバイスを開いたときに、エージェントが別途指定しない限りフローティングプレビューを表示します。", "6aadfd59cf60b4b5": "「フローティングプレビューを自動表示」をデフォルトにリセット", "e4a7ec61190bc1f9": "フローティングプレビューを自動表示", @@ -8308,6 +8348,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "セットアップ", "093c68324c1b1280": "プロファイルを追加", "1f404c456e5b2a0b": "空のプロファイル", "d7671e975097e9e4": "プロファイルの上限に達しました", @@ -10153,12 +10194,10 @@ "f0d425b07fcbc3ea": "両方の Shift キーを使うか、別のショートカットを記録してください。", "d540b70f53f1d607": "{desktop} のスナップショットをセットアップ", "64581b55ed1d7bd0": "スナップショットをセットアップ", - "c07fc2cd79fb94c4": "画面収録", "f9ea8807dc374cd8": "使用中のウィンドウをキャプチャします。", "48a77acf7f6d02ce": "キャプチャしたアプリのテキストとコントロールを含めます。", "0be1d4792a45fe09": "省略可能。キャプチャしたアプリのテキストとコントロールを含めます。", "3fedab2033ce9bb4": "ショートカットの権限", - "75b1a7d1af613c5d": "後で完了", "06980ca0b81bf3b7": "ヘルパーを更新", "08f57e9a43ad6b5a": "ヘルパーをインストール", "86522c53dd8e09d1": "処理中…", @@ -11459,6 +11498,7 @@ "345075be6cacc171": "デバイス ホスト SSH リモート Mac mini ID キー 接続 EAS Expo クラウド simlock プール ゲートウェイ ローカル シミュレーター device hosts", "a6b742430b05d6cc": "エージェントによるデバイスの使用", "1d5d7418a83575c2": "許可 シミュレーター エミュレーター iOS Android 操作 ツール セッション simulator", + "04050ac46c68cdaa": "cua driver アプリ デスクトップ 画面 クリック 入力 エージェント 操作 コンピューター操作 mac linux windows", "60f0825756e404dc": "デバイスを使用", "907782e153a139a3": "デバイスハブ シミュレーター エミュレーター iOS Android インストール 起動 バージョン device hub", "ad89031709b521b8": "シミュレーター サポート Xcode Android Studio SDK AVD ランタイム simulator", @@ -11533,6 +11573,7 @@ "b18a6e1b9875df35": "このモデルは選択した環境の 1 つでは利用できません。その環境を選択して、モデルを個別に選んでください。", "3d7abd288b8d6d37": "この接続にはこれらの設定を変更する権限がありません。", "7260a6658b09efee": "{label} に保存できませんでした: {message}", + "2485877057d662f6": "保存できませんでした。もう一度お試しください。", "c280dbfac3f28888": "ショートカットの記録を開始できませんでした。", "3783f7d9877c9cba": "ショートカットに英字、数字、またはファンクションキーを追加してください。", "008e305ea6638832": "スナップショットのショートカットを記録、現在は {shortcut}", diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json index 362d29d071a87..3b3a18ac89a0a 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -7941,6 +7941,34 @@ "2a0148ea9068a814": "HTTPS 포트", "7f4f2ba57d3d1c76": "1에서 65535 사이의 포트를 입력하세요.", "82af9c66caf2f40c": "HTTPS 엔드포인트", + "707f67fce618fc5e": "설정을 저장할 수 없습니다. 다시 시도하세요.", + "884fd831365c61c5": "{host}에는 손쉬운 사용과 화면 녹화 권한이 필요합니다. 해당 Mac에서 설정을 마치세요. 시스템 설정 → 개인정보 보호 및 보안에서 이 환경을 실행하는 앱이나 프로세스에 접근 권한을 주세요. 설정은 여기에서 켤 수 있습니다.", + "9250c3c1139e34ba": "{host}에는 로그인된 그래픽 세션이 필요합니다. Wayland에서는 {host} 앞에 있는 사람이 화면 캡처 요청을 승인해야 할 수 있습니다.", + "7c95483d772cca40": "{host}에는 로그인된 데스크톱 세션이 필요합니다. Windows에 Cua Driver 보안 확인이 표시되면 해당 컴퓨터 앞에 있는 사람이 응답해야 합니다.", + "8d470dfb1a596179": "컴퓨터 사용에는 {host}의 데스크톱이 필요합니다.", + "82a12d86994dfd17": "다른 앱에서 클릭하고, 입력하고, 컨트롤을 읽습니다.", + "c07fc2cd79fb94c4": "화면 녹화", + "4bbac051622766c1": "화면을 보고 다음에 할 일을 결정합니다.", + "75b1a7d1af613c5d": "나중에 완료", + "a9b9096280be6466": [ + "에이전트가 ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + "을(를) 사용하도록 허용" + ], + "2134eedfc10881bf": [ + "Cua Driver를 사용하면 에이전트가 커서를 움직이지 않고 백그라운드에서 ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + "의 앱을 보고 사용할 수 있습니다. 이후에 시작한 에이전트 세션에서 컴퓨터 사용 도구를 쓸 수 있습니다." + ], + "91db0a2b0ad84a78": "권한을 허용한 후에도 꺼져 있으면 T3 Code를 종료했다가 다시 여세요.", "0e0007dd7a694472": "값", "c9bacc3dea4ba2ba": "선택지 값", "9f054868dad69700": "선택지 레이블", @@ -8273,6 +8301,18 @@ "a6a6dc235b108747": "에이전트가 공유 브라우저를 사용하도록 허용합니다. 프로젝트별로 재정의할 수 있습니다.", "ea5fed973bfc1aca": "기본 브라우저 액세스 기본값으로 재설정", "19e1f74805f4a1fb": "에이전트 브라우저 액세스", + "5511e975ba69f726": "컴퓨터", + "72cb818f86f74f1d": "컴퓨터 사용을 구성하려면 선택한 환경을 연결하세요.", + "3a989eeb48af4c84": "호스트에서 컴퓨터 사용을 구성하려면 환경 하나를 선택하세요.", + "c97c0f969ce80c8c": "컴퓨터 사용을 확인할 수 없습니다: {error}", + "801552a09d64a639": "호스트 확인 중…", + "e1b60530b496ca5c": "이 호스트에서는 컴퓨터 사용을 지원하지 않습니다.", + "639ff10e3ee18700": "실행 중", + "141b50a063b68ed7": "다음 에이전트 세션에서 시작됩니다", + "0e89b20d03477910": "에이전트가 Cua Driver를 통해 커서를 움직이지 않고 백그라운드에서 {host}의 앱을 보고 사용할 수 있게 합니다. 새 에이전트 세션에서 도구를 쓸 수 있으며, 끄면 드라이버가 중지됩니다.", + "d18307275ee97e9a": "컴퓨터 사용을 기본값으로 재설정", + "1419352c258bc7de": "이 연결로는 이 호스트의 설정을 변경할 수 없습니다.", + "b26ad48726dd8132": "컴퓨터 사용은 켜져 있지만 Cua Driver를 다시 시작할 수 없습니다. 설정을 다시 시도하세요.", "b395b88284e3bca2": "에이전트가 별도로 지정하지 않으면, 에이전트가 브라우저나 기기를 열 때 플로팅 미리 보기를 표시합니다.", "6aadfd59cf60b4b5": "플로팅 미리 보기 자동 표시 기본값으로 재설정", "e4a7ec61190bc1f9": "플로팅 미리 보기 자동 표시", @@ -8311,6 +8351,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "설정", "093c68324c1b1280": "프로필 추가", "1f404c456e5b2a0b": "빈 프로필", "d7671e975097e9e4": "프로필 한도에 도달했습니다", @@ -10156,12 +10197,10 @@ "f0d425b07fcbc3ea": "양쪽 Shift 키를 사용하거나 다른 단축키를 녹화하세요.", "d540b70f53f1d607": "{desktop}용 스냅샷 설정", "64581b55ed1d7bd0": "스냅샷 설정", - "c07fc2cd79fb94c4": "화면 녹화", "f9ea8807dc374cd8": "사용 중인 창을 캡처합니다.", "48a77acf7f6d02ce": "캡처한 앱의 텍스트와 컨트롤을 포함합니다.", "0be1d4792a45fe09": "선택 사항입니다. 캡처한 앱의 텍스트와 컨트롤을 포함합니다.", "3fedab2033ce9bb4": "단축키 권한", - "75b1a7d1af613c5d": "나중에 완료", "06980ca0b81bf3b7": "도우미 업데이트", "08f57e9a43ad6b5a": "도우미 설치", "86522c53dd8e09d1": "작업 중…", @@ -11456,6 +11495,7 @@ "345075be6cacc171": "기기 호스트 ssh 원격 mac mini ID 키 연결 eas expo 클라우드 simlock 풀 게이트웨이 로컬 시뮬레이터", "a6b742430b05d6cc": "에이전트가 기기를 사용할 수 있음", "1d5d7418a83575c2": "허용 시뮬레이터 에뮬레이터 iOS Android 조작 도구 세션", + "04050ac46c68cdaa": "cua driver 앱 데스크톱 화면 클릭 입력 에이전트 제어 컴퓨터 사용 mac linux windows", "60f0825756e404dc": "기기 사용", "907782e153a139a3": "기기 허브 시뮬레이터 에뮬레이터 iOS Android 설치 시작 버전", "ad89031709b521b8": "시뮬레이터 지원 xcode android studio sdk avd 런타임", @@ -11530,6 +11570,7 @@ "b18a6e1b9875df35": "이 모델은 선택한 환경 중 하나에서 사용할 수 없습니다. 해당 환경을 선택해 모델을 따로 선택하세요.", "3d7abd288b8d6d37": "이 연결에는 이 설정을 변경할 권한이 없습니다.", "7260a6658b09efee": "{label}에 저장할 수 없음: {message}", + "2485877057d662f6": "저장하지 못했습니다. 다시 시도하세요.", "c280dbfac3f28888": "단축키 녹화를 시작할 수 없습니다.", "3783f7d9877c9cba": "단축키에 문자, 숫자 또는 기능 키를 추가하세요.", "008e305ea6638832": "스냅샷 단축키 녹화, 현재 {shortcut}", diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json index b598943e92383..6789cf03f51af 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -7978,6 +7978,33 @@ "2a0148ea9068a814": "Porta HTTPS", "7f4f2ba57d3d1c76": "Informe uma porta de 1 a 65535.", "82af9c66caf2f40c": "Endpoint HTTPS", + "707f67fce618fc5e": "Não foi possível salvar a configuração. Tente novamente.", + "884fd831365c61c5": "{host} precisa de Acessibilidade e Gravação de Tela. Termine a configuração nesse Mac: em Ajustes do Sistema → Privacidade e Segurança, dê acesso ao app ou processo que executa este ambiente. Você pode ativar a configuração por aqui.", + "9250c3c1139e34ba": "{host} precisa de uma sessão gráfica conectada. No Wayland, alguém em {host} pode precisar aprovar um pedido de captura de tela.", + "7c95483d772cca40": "{host} precisa de uma sessão de área de trabalho conectada. Se o Windows mostrar um aviso de segurança para o Cua Driver, alguém nesse computador precisa responder.", + "8d470dfb1a596179": "O uso do computador precisa de uma área de trabalho em {host}.", + "82a12d86994dfd17": "Clicar, digitar e ler controles em outros apps.", + "c07fc2cd79fb94c4": "Gravação de Tela", + "4bbac051622766c1": "Ver a tela para decidir o que fazer em seguida.", + "75b1a7d1af613c5d": "Concluir depois", + "a9b9096280be6466": [ + "Permitir que agentes usem ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "2134eedfc10881bf": [ + "O Cua Driver permite que agentes vejam e usem apps em ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " em segundo plano, sem mover seu cursor. As sessões de agente iniciadas depois recebem as ferramentas de uso do computador." + ], + "91db0a2b0ad84a78": "Se uma permissão continuar desativada depois de permitida, encerre e reabra o T3 Code.", "0e0007dd7a694472": "valor", "c9bacc3dea4ba2ba": "Valor da opção", "9f054868dad69700": "Rótulo da opção", @@ -8312,6 +8339,18 @@ "a6a6dc235b108747": "Permite que os agentes usem o navegador compartilhado. Os projetos podem substituir isso.", "ea5fed973bfc1aca": "Redefinir o acesso padrão ao navegador para o padrão", "19e1f74805f4a1fb": "Acesso dos agentes ao navegador", + "5511e975ba69f726": "Computador", + "72cb818f86f74f1d": "Conecte o ambiente selecionado para configurar o uso do computador.", + "3a989eeb48af4c84": "Escolha um ambiente para configurar o uso do computador no host dele.", + "c97c0f969ce80c8c": "Não foi possível verificar o uso do computador: {error}", + "801552a09d64a639": "Verificando o host…", + "e1b60530b496ca5c": "O uso do computador não é compatível com este host.", + "639ff10e3ee18700": "Executando", + "141b50a063b68ed7": "Inicia com a próxima sessão de agente", + "0e89b20d03477910": "Permite que agentes vejam e usem apps em {host} pelo Cua Driver, em segundo plano e sem mover seu cursor. Novas sessões de agente recebem as ferramentas; desativar isso para o driver.", + "d18307275ee97e9a": "Redefinir o uso do computador para o padrão", + "1419352c258bc7de": "Esta conexão não pode alterar configurações neste host.", + "b26ad48726dd8132": "O uso do computador está ativado, mas o Cua Driver não conseguiu reiniciar. Abra a configuração novamente.", "b395b88284e3bca2": "Mostra a pré-visualização flutuante quando um agente abre um navegador ou dispositivo, a menos que o agente diga o contrário.", "6aadfd59cf60b4b5": "Redefinir \"Mostrar pré-visualização flutuante automaticamente\" para o padrão", "e4a7ec61190bc1f9": "Mostrar pré-visualização flutuante automaticamente", @@ -8350,6 +8389,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "Configuração", "093c68324c1b1280": "Adicionar perfil", "1f404c456e5b2a0b": "Perfil em branco", "d7671e975097e9e4": "Você atingiu o limite de perfis", @@ -10200,12 +10240,10 @@ "f0d425b07fcbc3ea": "Use as duas teclas Shift ou grave outro atalho.", "d540b70f53f1d607": "Configurar snapshots para {desktop}", "64581b55ed1d7bd0": "Configurar snapshots", - "c07fc2cd79fb94c4": "Gravação de Tela", "f9ea8807dc374cd8": "Capture a janela que você está usando.", "48a77acf7f6d02ce": "Inclui texto e controles do app capturado.", "0be1d4792a45fe09": "Opcional. Inclui texto e controles do app capturado.", "3fedab2033ce9bb4": "Permissões do atalho", - "75b1a7d1af613c5d": "Concluir depois", "06980ca0b81bf3b7": "Atualizar assistente", "08f57e9a43ad6b5a": "Instalar assistente", "86522c53dd8e09d1": "Trabalhando…", @@ -11508,6 +11546,7 @@ "345075be6cacc171": "dispositivo hosts ssh remoto mac mini identidade chave conexão eas expo nuvem simlock pool gateway simuladores locais", "a6b742430b05d6cc": "Agentes podem usar dispositivos", "1d5d7418a83575c2": "permitir simulador emulador ios android controlar ferramentas sessões", + "04050ac46c68cdaa": "cua driver apps área de trabalho tela clicar digitar agentes controle uso do computador mac linux windows", "60f0825756e404dc": "Usar dispositivos", "907782e153a139a3": "dispositivo hub simulador emulador ios android instalar iniciar versão", "ad89031709b521b8": "simulador suporte xcode android studio sdk avd runtime", @@ -11582,6 +11621,7 @@ "b18a6e1b9875df35": "Este modelo não está disponível em um ambiente selecionado. Selecione esse ambiente para escolher o modelo dele separadamente.", "3d7abd288b8d6d37": "Esta conexão não tem permissão para alterar estas configurações.", "7260a6658b09efee": "Não foi possível salvar em {label}: {message}", + "2485877057d662f6": "Não foi possível salvar. Tente novamente.", "c280dbfac3f28888": "Não foi possível iniciar a gravação do atalho.", "3783f7d9877c9cba": "Adicione uma letra, um número ou uma tecla de função ao seu atalho.", "008e305ea6638832": "Gravar atalho de snapshot, atualmente {shortcut}", diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json index a8a54a6500e59..f0c740c0775f4 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -7978,6 +7978,33 @@ "2a0148ea9068a814": "Порт HTTPS", "7f4f2ba57d3d1c76": "Введите порт от 1 до 65535.", "82af9c66caf2f40c": "HTTPS-адрес", + "707f67fce618fc5e": "Не удалось сохранить настройку. Попробуйте снова.", + "884fd831365c61c5": "{host} требуются разрешения «Специальные возможности» и «Запись экрана». Завершите настройку на этом Mac: в Системных настройках → Конфиденциальность и безопасность предоставьте доступ приложению или процессу, который запускает это окружение. Саму настройку можно включить здесь.", + "9250c3c1139e34ba": "{host} требуется графический сеанс с выполненным входом. В Wayland кому-то за {host} может потребоваться подтвердить запрос на захват экрана.", + "7c95483d772cca40": "{host} требуется сеанс рабочего стола с выполненным входом. Если Windows покажет запрос безопасности для Cua Driver, кто-то за этим компьютером должен на него ответить.", + "8d470dfb1a596179": "Для управления компьютером нужен рабочий стол на {host}.", + "82a12d86994dfd17": "Нажимать, вводить текст и читать элементы управления в других приложениях.", + "c07fc2cd79fb94c4": "Запись экрана", + "4bbac051622766c1": "Видеть экран, чтобы решить, что делать дальше.", + "75b1a7d1af613c5d": "Закончить позже", + "a9b9096280be6466": [ + "Разрешить агентам использовать ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "2134eedfc10881bf": [ + "Cua Driver позволяет агентам видеть приложения на ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " и работать с ними в фоне, не двигая ваш курсор. Сеансы агентов, запущенные после этого, получат инструменты управления компьютером." + ], + "91db0a2b0ad84a78": "Если разрешение остаётся выключенным после того, как вы его дали, закройте T3 Code и откройте снова.", "0e0007dd7a694472": "значение", "c9bacc3dea4ba2ba": "Значение варианта", "9f054868dad69700": "Название варианта", @@ -8314,6 +8341,18 @@ "a6a6dc235b108747": "Разрешить агентам использовать общий браузер. Проекты могут переопределить это.", "ea5fed973bfc1aca": "Сбросить доступ к браузеру к значению по умолчанию", "19e1f74805f4a1fb": "Доступ агентов к браузеру", + "5511e975ba69f726": "Компьютер", + "72cb818f86f74f1d": "Подключите выбранное окружение, чтобы настроить управление компьютером.", + "3a989eeb48af4c84": "Выберите одно окружение, чтобы настроить управление компьютером на его хосте.", + "c97c0f969ce80c8c": "Не удалось проверить управление компьютером: {error}", + "801552a09d64a639": "Проверка хоста…", + "e1b60530b496ca5c": "Управление компьютером не поддерживается на этом хосте.", + "639ff10e3ee18700": "Работает", + "141b50a063b68ed7": "Запустится со следующим сеансом агента", + "0e89b20d03477910": "Позволяет агентам видеть приложения на {host} и работать с ними через Cua Driver в фоне, не двигая ваш курсор. Новые сеансы агентов получают инструменты; выключение останавливает драйвер.", + "d18307275ee97e9a": "Сбросить управление компьютером к значению по умолчанию", + "1419352c258bc7de": "Это подключение не может изменять настройки на этом хосте.", + "b26ad48726dd8132": "Управление компьютером включено, но Cua Driver не удалось перезапустить. Откройте настройку снова.", "b395b88284e3bca2": "Показывать плавающий предпросмотр, когда агент открывает браузер или устройство, если агент не указал иное.", "6aadfd59cf60b4b5": "Сбросить автопоказ плавающего предпросмотра к значению по умолчанию", "e4a7ec61190bc1f9": "Автопоказ плавающего предпросмотра", @@ -8352,6 +8391,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "Настройка", "093c68324c1b1280": "Добавить профиль", "1f404c456e5b2a0b": "Пустой профиль", "d7671e975097e9e4": "Достигнут лимит профилей", @@ -10203,12 +10243,10 @@ "f0d425b07fcbc3ea": "Используйте обе клавиши Shift или запишите другое сочетание.", "d540b70f53f1d607": "Настройка снимков для {desktop}", "64581b55ed1d7bd0": "Настройка снимков", - "c07fc2cd79fb94c4": "Запись экрана", "f9ea8807dc374cd8": "Захватывать текущее окно.", "48a77acf7f6d02ce": "Включать текст и элементы управления захваченного приложения.", "0be1d4792a45fe09": "Необязательно. Включать текст и элементы управления захваченного приложения.", "3fedab2033ce9bb4": "Разрешения для сочетания", - "75b1a7d1af613c5d": "Закончить позже", "06980ca0b81bf3b7": "Обновить помощник", "08f57e9a43ad6b5a": "Установить помощник", "86522c53dd8e09d1": "Выполняется…", @@ -11509,6 +11547,7 @@ "345075be6cacc171": "хосты устройств ssh удалённый mac mini идентификатор ключ подключение eas expo облако simlock пул шлюз локальные симуляторы", "a6b742430b05d6cc": "Агенты могут использовать устройства", "1d5d7418a83575c2": "разрешить симулятор эмулятор ios android управлять инструменты сеансы", + "04050ac46c68cdaa": "cua driver приложения рабочий стол экран нажатие ввод агенты управление компьютером mac linux windows", "60f0825756e404dc": "Использовать устройства", "907782e153a139a3": "хаб устройств симулятор эмулятор ios android установить запустить версия", "ad89031709b521b8": "поддержка симуляторов xcode android studio sdk avd среда выполнения", @@ -11583,6 +11622,7 @@ "b18a6e1b9875df35": "Эта модель недоступна в одном из выбранных окружений. Выберите это окружение, чтобы задать его модель отдельно.", "3d7abd288b8d6d37": "У этого подключения нет прав на изменение этих настроек.", "7260a6658b09efee": "Не удалось сохранить в {label}: {message}", + "2485877057d662f6": "Не удалось сохранить. Попробуйте снова.", "c280dbfac3f28888": "Не удалось начать запись сочетания.", "3783f7d9877c9cba": "Добавьте в сочетание букву, цифру или функциональную клавишу.", "008e305ea6638832": "Записать сочетание для снимка, сейчас {shortcut}", diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json index adaf8566b6411..9c9e5e647d577 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -7984,6 +7984,33 @@ "2a0148ea9068a814": "HTTPS-port", "7f4f2ba57d3d1c76": "Ange en port mellan 1 och 65535.", "82af9c66caf2f40c": "HTTPS-slutpunkt", + "707f67fce618fc5e": "Det gick inte att spara inställningen. Försök igen.", + "884fd831365c61c5": "{host} behöver Tillgänglighet och Skärminspelning. Slutför konfigurationen på den Macen: ge appen eller processen som kör den här miljön åtkomst i Systeminställningar → Integritet och säkerhet. Du kan slå på inställningen härifrån.", + "9250c3c1139e34ba": "{host} behöver en inloggad grafisk session. Under Wayland kan någon vid {host} behöva godkänna en fråga om skärminspelning.", + "7c95483d772cca40": "{host} behöver en inloggad skrivbordssession. Om Windows visar en säkerhetsfråga för Cua Driver måste någon vid den datorn svara.", + "8d470dfb1a596179": "Datoranvändning kräver ett skrivbord på {host}.", + "82a12d86994dfd17": "Klicka, skriva och läsa kontroller i andra appar.", + "c07fc2cd79fb94c4": "Skärminspelning", + "4bbac051622766c1": "Se skärmen för att avgöra vad som ska göras härnäst.", + "75b1a7d1af613c5d": "Slutför senare", + "a9b9096280be6466": [ + "Låt agenter använda ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "2134eedfc10881bf": [ + "Med Cua Driver kan agenter se och använda appar på ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " i bakgrunden utan att flytta din markör. Agentsessioner som startas efteråt får verktygen för datoranvändning." + ], + "91db0a2b0ad84a78": "Om en behörighet förblir avstängd efter att du tillåtit den, avsluta och öppna T3 Code igen.", "0e0007dd7a694472": "värde", "c9bacc3dea4ba2ba": "Valets värde", "9f054868dad69700": "Valets etikett", @@ -8320,6 +8347,18 @@ "a6a6dc235b108747": "Låt agenter använda den delade webbläsaren. Projekt kan åsidosätta det.", "ea5fed973bfc1aca": "Återställ standardåtkomst för webbläsaren till standard", "19e1f74805f4a1fb": "Agenters webbläsaråtkomst", + "5511e975ba69f726": "Dator", + "72cb818f86f74f1d": "Anslut den valda miljön för att konfigurera datoranvändning.", + "3a989eeb48af4c84": "Välj en miljö för att konfigurera datoranvändning på dess värd.", + "c97c0f969ce80c8c": "Det gick inte att kontrollera datoranvändning: {error}", + "801552a09d64a639": "Kontrollerar värden…", + "e1b60530b496ca5c": "Datoranvändning stöds inte på den här värden.", + "639ff10e3ee18700": "Körs", + "141b50a063b68ed7": "Startar med nästa agentsession", + "0e89b20d03477910": "Låt agenter se och använda appar på {host} via Cua Driver, i bakgrunden utan att flytta din markör. Nya agentsessioner får verktygen; när du stänger av det stoppas drivrutinen.", + "d18307275ee97e9a": "Återställ datoranvändning till standard", + "1419352c258bc7de": "Den här anslutningen kan inte ändra inställningar på den här värden.", + "b26ad48726dd8132": "Datoranvändning är på, men Cua Driver kunde inte startas om. Öppna konfigurationen igen.", "b395b88284e3bca2": "Visa den flytande förhandsvisningen när en agent öppnar en webbläsare eller enhet, om inte agenten säger något annat.", "6aadfd59cf60b4b5": "Återställ automatisk visning av flytande förhandsvisning till standard", "e4a7ec61190bc1f9": "Visa flytande förhandsvisning automatiskt", @@ -8358,6 +8397,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "Konfiguration", "093c68324c1b1280": "Lägg till profil", "1f404c456e5b2a0b": "Tom profil", "d7671e975097e9e4": "Du har nått gränsen för antal profiler", @@ -10209,12 +10249,10 @@ "f0d425b07fcbc3ea": "Använd båda Shift-tangenterna eller spela in ett annat kortkommando.", "d540b70f53f1d607": "Konfigurera ögonblicksbilder för {desktop}", "64581b55ed1d7bd0": "Konfigurera ögonblicksbilder", - "c07fc2cd79fb94c4": "Skärminspelning", "f9ea8807dc374cd8": "Fånga fönstret du använder.", "48a77acf7f6d02ce": "Ta med text och kontroller från den fångade appen.", "0be1d4792a45fe09": "Valfritt. Ta med text och kontroller från den fångade appen.", "3fedab2033ce9bb4": "Behörigheter för kortkommandon", - "75b1a7d1af613c5d": "Slutför senare", "06980ca0b81bf3b7": "Uppdatera hjälpen", "08f57e9a43ad6b5a": "Installera hjälpprogrammet", "86522c53dd8e09d1": "Arbetar…", @@ -11517,6 +11555,7 @@ "345075be6cacc171": "enhetsvärdar ssh fjärr mac mini identitet nyckel anslutning eas expo moln simlock pool gateway lokala simulatorer", "a6b742430b05d6cc": "Agenter kan använda enheter", "1d5d7418a83575c2": "tillåt simulator emulator ios android styr verktyg sessioner", + "04050ac46c68cdaa": "cua driver appar skrivbord skärm klicka skriva agenter styrning datoranvändning mac linux windows", "60f0825756e404dc": "Använd enheter", "907782e153a139a3": "enhetshubb simulator emulator ios android installera starta version", "ad89031709b521b8": "simulatorstöd xcode android studio sdk avd körmiljö", @@ -11591,6 +11630,7 @@ "b18a6e1b9875df35": "Modellen är inte tillgänglig i en vald miljö. Välj den miljön för att välja dess modell separat.", "3d7abd288b8d6d37": "Den här anslutningen saknar behörighet att ändra de här inställningarna.", "7260a6658b09efee": "Kunde inte spara på {label}: {message}", + "2485877057d662f6": "Det gick inte att spara. Försök igen.", "c280dbfac3f28888": "Kunde inte starta inspelning av kortkommando.", "3783f7d9877c9cba": "Lägg till en bokstav, siffra eller funktionstangent i ditt kortkommando.", "008e305ea6638832": "Spela in kortkommando för ögonblicksbild, för närvarande {shortcut}", diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json index f386e717a0614..d6db16b98275d 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -7997,6 +7997,33 @@ "2a0148ea9068a814": "HTTPS 端口", "7f4f2ba57d3d1c76": "请输入 1 到 65535 之间的端口。", "82af9c66caf2f40c": "HTTPS 端点", + "707f67fce618fc5e": "无法保存设置,请重试。", + "884fd831365c61c5": "{host} 需要辅助功能和屏幕录制权限。请在那台 Mac 上完成设置:在“系统设置”→“隐私与安全性”中为运行此环境的应用或进程授予访问权限。你可以在这里开启此设置。", + "9250c3c1139e34ba": "{host} 需要一个已登录的图形会话。在 Wayland 上,可能需要有人在 {host} 前批准屏幕捕获请求。", + "7c95483d772cca40": "{host} 需要一个已登录的桌面会话。如果 Windows 显示 Cua Driver 的安全提示,需要有人在那台电脑前进行响应。", + "8d470dfb1a596179": "计算机操控需要 {host} 上有桌面环境。", + "82a12d86994dfd17": "在其他应用中点击、输入并读取控件。", + "c07fc2cd79fb94c4": "屏幕录制", + "4bbac051622766c1": "查看屏幕以决定下一步操作。", + "75b1a7d1af613c5d": "稍后完成", + "a9b9096280be6466": [ + "允许智能体使用 ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "2134eedfc10881bf": [ + "Cua Driver 让智能体在后台查看并使用 ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " 上的应用,而不会移动你的光标。之后启动的智能体会话将获得计算机操控工具。" + ], + "91db0a2b0ad84a78": "如果允许后权限仍处于关闭状态,请退出并重新打开 T3 Code。", "0e0007dd7a694472": "值", "c9bacc3dea4ba2ba": "候选项值", "9f054868dad69700": "候选项标签", @@ -8330,6 +8357,18 @@ "a6a6dc235b108747": "允许智能体使用共享浏览器。项目可以覆盖此设置。", "ea5fed973bfc1aca": "重置默认浏览器访问权限为默认值", "19e1f74805f4a1fb": "智能体浏览器访问", + "5511e975ba69f726": "计算机", + "72cb818f86f74f1d": "连接所选环境以配置计算机操控。", + "3a989eeb48af4c84": "选择一个环境,以便在其主机上配置计算机操控。", + "c97c0f969ce80c8c": "无法检查计算机操控:{error}", + "801552a09d64a639": "正在检查主机…", + "e1b60530b496ca5c": "此主机不支持计算机操控。", + "639ff10e3ee18700": "运行中", + "141b50a063b68ed7": "将在下一个智能体会话中启动", + "0e89b20d03477910": "让智能体通过 Cua Driver 在后台查看并使用 {host} 上的应用,而不会移动你的光标。新的智能体会话会获得这些工具;关闭后驱动程序会停止。", + "d18307275ee97e9a": "将计算机操控重置为默认值", + "1419352c258bc7de": "此连接无法更改此主机上的设置。", + "b26ad48726dd8132": "计算机操控已开启,但 Cua Driver 无法重启。请再次打开设置。", "b395b88284e3bca2": "智能体打开浏览器或设备时显示浮动预览,除非智能体另有要求。", "6aadfd59cf60b4b5": "重置自动显示浮动预览为默认值", "e4a7ec61190bc1f9": "自动显示浮动预览", @@ -8368,6 +8407,7 @@ "i": 1 } ], + "143cde2e0b8d2e7c": "设置", "093c68324c1b1280": "添加浏览器配置", "1f404c456e5b2a0b": "空白浏览器配置", "d7671e975097e9e4": "已达到浏览器配置数量上限", @@ -10220,12 +10260,10 @@ "f0d425b07fcbc3ea": "使用左右两个 Shift 键,或录制其他快捷键。", "d540b70f53f1d607": "为 {desktop} 设置快照", "64581b55ed1d7bd0": "设置快照", - "c07fc2cd79fb94c4": "屏幕录制", "f9ea8807dc374cd8": "截取当前使用的窗口。", "48a77acf7f6d02ce": "包含所截取应用中的文本和控件。", "0be1d4792a45fe09": "可选。包含所截取应用中的文本和控件。", "3fedab2033ce9bb4": "快捷键权限", - "75b1a7d1af613c5d": "稍后完成", "06980ca0b81bf3b7": "更新辅助程序", "08f57e9a43ad6b5a": "安装辅助程序", "86522c53dd8e09d1": "处理中…", @@ -11533,6 +11571,7 @@ "345075be6cacc171": "设备 主机 ssh 远程 mac mini 身份 密钥 连接 eas expo 云 simlock 池 网关 本地 模拟器", "a6b742430b05d6cc": "允许智能体使用设备", "1d5d7418a83575c2": "允许 模拟器 ios android 操控 工具 智能体会话", + "04050ac46c68cdaa": "cua driver 应用 桌面 屏幕 点击 输入 智能体 控制 计算机操控 mac linux windows", "60f0825756e404dc": "使用设备", "907782e153a139a3": "设备 hub 模拟器 ios android 安装 启动 版本", "ad89031709b521b8": "模拟器 支持 xcode android studio sdk avd 运行时", @@ -11607,6 +11646,7 @@ "b18a6e1b9875df35": "此模型在某个所选环境上不可用。请选择该环境以单独为其选择模型。", "3d7abd288b8d6d37": "此连接无权修改这些设置。", "7260a6658b09efee": "无法在 {label} 上保存:{message}", + "2485877057d662f6": "保存失败,请重试。", "c280dbfac3f28888": "无法开始录制快捷键。", "3783f7d9877c9cba": "请在快捷键中添加字母、数字或功能键。", "008e305ea6638832": "录制快照快捷键,当前为 {shortcut}",