Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix(cua-driver): fix Windows selected-browser launch guidance
injaneity50313e7a7475
diff --git a/libs/cua-driver/rust/Skills/cua-driver/WINDOWS.md b/libs/cua-driver/rust/Skills/cua-driver/WINDOWS.mdindex 3f1a1012ed..1122d264c9 100644--- a/libs/cua-driver/rust/Skills/cua-driver/WINDOWS.md+++ b/libs/cua-driver/rust/Skills/cua-driver/WINDOWS.md@@ -191,10 +191,11 @@ frontmost state:raises its window to be key. Even when delivered to a backgroundedpid via `hotkey`, the downstream app pulls focus. **For omniboxnavigation specifically**, the correct path is `launch_app({path:-"...msedge.exe", urls: ["https://…"]})` (or `{aumid:-"Microsoft.MicrosoftEdge.Stable_…!App", urls: [...]}`). No- omnibox dance, no `Ctrl+L`, no focus-steal. The browser opens the- URL in a new window without activating it.+"...msedge.exe", additional_arguments: ["https://example.com/"]})`.+ This hands the URL to the selected browser process; no omnibox dance+ or `Ctrl+L` is needed. Do not combine `path` or `aumid` with `urls`+ for selected-browser navigation: `urls` opens separately in the default+ browser. For the default browser, use `urls` only: `launch_app({urls: [url]})`.- **Tab-switching shortcuts in browsers (`Ctrl+1..9`, `Ctrl+Tab`,`Ctrl+Shift+Tab`, `Ctrl+PageUp/Down`)** are visibly disruptiveeven when delivered to a backgrounded pid. The app's key handler@@ -349,7 +350,7 @@ gone wrong: re-read "The no-foreground contract" above.| Drag / drag-and-drop | `drag({pid, from_x, from_y, to_x, to_y})` | `SendInput` with `MOUSEEVENTF_MOVE`, mouse_event || Screenshot | `get_window_state` (window) or authorized `get_desktop_state` (desktop) | `[System.Windows.Forms.Screen]::CopyFromScreen`, `nircmd savescreenshot` || Quit an app | ask the user first, then `hotkey({pid, keys:["alt","f4"]})` | `taskkill /F`, `Stop-Process -Force`, `Get-Process \| Stop-Process` |-| Hand a file/URL to an app | `launch_app({urls:[<path>]})` (default app) or `{path: "...exe", args:[<file>]}` (specific app) | `& "app.exe" "file"`, `Invoke-Item`, shell associations |+| Hand a file/URL to an app | `launch_app({urls:[<path>]})` (default app) or `{path: "...exe", additional_arguments:[<file>]}` (specific app) | `& "app.exe" "file"`, `Invoke-Item`, shell associations |### The narrow carve-outdiff --git a/libs/cua-driver/rust/crates/cua-driver-core/src/mcp_skills.rs b/libs/cua-driver/rust/crates/cua-driver-core/src/mcp_skills.rsindex 02245026f8..9e54358e0c 100644--- a/libs/cua-driver/rust/crates/cua-driver-core/src/mcp_skills.rs+++ b/libs/cua-driver/rust/crates/cua-driver-core/src/mcp_skills.rs@@ -207,6 +207,25 @@ mod tests {use super::*;use crate::protocol::ResponseBody;+ #[test]+ fn windows_selected_browser_guidance() {+ let read = call(+ "resources/read",+ Some(json!({"uri": "skill://cua-driver/WINDOWS.md"})),+ );+ let text = read["contents"][0]["text"].as_str().unwrap();+ assert!(+ text.contains("\"...msedge.exe\", additional_arguments: [\"https://example.com/\"]")+ );+ assert!(text.contains("Do not combine `path` or `aumid` with `urls`"));+ assert!(text.contains("For the default browser, use `urls` only"));+ assert!(text.contains("additional_arguments:[<file>]"));+ assert!(!text.contains("msedge.exe\", urls:"));+ assert!(!text.contains("args:[<file>]"));+ assert!(!text.contains("Microsoft.MicrosoftEdge.Stable_…!App"));+ assert!(!text.contains("URL in a new window without activating it"));+ }+fn request(method: &str, params: Option<Value>) -> Request {Request {jsonrpc: "2.0".into(),diff --git a/libs/cua/skills/cua-driver/WINDOWS.md b/libs/cua/skills/cua-driver/WINDOWS.mdindex 10bc995f2e..e5e2b3e94c 100644--- a/libs/cua/skills/cua-driver/WINDOWS.md+++ b/libs/cua/skills/cua-driver/WINDOWS.md@@ -191,10 +191,11 @@ frontmost state:raises its window to be key. Even when delivered to a backgroundedpid via `hotkey`, the downstream app pulls focus. **For omniboxnavigation specifically**, the correct path is `launch_app({path:-"...msedge.exe", urls: ["https://…"]})` (or `{aumid:-"Microsoft.MicrosoftEdge.Stable_…!App", urls: [...]}`). No- omnibox dance, no `Ctrl+L`, no focus-steal. The browser opens the- URL in a new window without activating it.+"...msedge.exe", additional_arguments: ["https://example.com/"]})`.+ This hands the URL to the selected browser process; no omnibox dance+ or `Ctrl+L` is needed. Do not combine `path` or `aumid` with `urls`+ for selected-browser navigation: `urls` opens separately in the default+ browser. For the default browser, use `urls` only: `launch_app({urls: [url]})`.- **Tab-switching shortcuts in browsers (`Ctrl+1..9`, `Ctrl+Tab`,`Ctrl+Shift+Tab`, `Ctrl+PageUp/Down`)** are visibly disruptiveeven when delivered to a backgrounded pid. The app's key handler@@ -349,7 +350,7 @@ gone wrong: re-read "The no-foreground contract" above.| Drag / drag-and-drop | `drag({pid, from_x, from_y, to_x, to_y})` | `SendInput` with `MOUSEEVENTF_MOVE`, mouse_event || Screenshot | `get_window_state` (window) or authorized `get_desktop_state` (desktop) | `[System.Windows.Forms.Screen]::CopyFromScreen`, `nircmd savescreenshot` || Quit an app | ask the user first, then `hotkey({pid, keys:["alt","f4"]})` | `taskkill /F`, `Stop-Process -Force`, `Get-Process \| Stop-Process` |-| Hand a file/URL to an app | `launch_app({urls:[<path>]})` (default app) or `{path: "...exe", args:[<file>]}` (specific app) | `& "app.exe" "file"`, `Invoke-Item`, shell associations |+| Hand a file/URL to an app | `launch_app({urls:[<path>]})` (default app) or `{path: "...exe", additional_arguments:[<file>]}` (specific app) | `& "app.exe" "file"`, `Invoke-Item`, shell associations |### The narrow carve-out