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
test(cua-driver): give the typed SDK snapshot a cold-start walk budget (#4285)
Francesco Bonacci2de3ce205e62
diff --git a/libs/cua-driver/rust/crates/cua-driver-e2e/tests/cross_platform_behavior_test.rs b/libs/cua-driver/rust/crates/cua-driver-e2e/tests/cross_platform_behavior_test.rsindex 6e068ba4ae..14873b3b6c 100644--- a/libs/cua-driver/rust/crates/cua-driver-e2e/tests/cross_platform_behavior_test.rs+++ b/libs/cua-driver/rust/crates/cua-driver-e2e/tests/cross_platform_behavior_test.rs@@ -855,7 +855,10 @@ fn sdk_window_input(fixture: &Fixture) -> GetWindowStateInput {include_screenshot: Some(false),screenshot_out_file: None,max_elements: None,- timeout_ms: None,+ // The first walk after launch can meet a cold Chromium accessibility+ // tree. The 1 s default then returns a partial tree without the click+ // target on slow hosts (#4149), so use the documented retry budget.+ timeout_ms: Some(5000),max_depth: None,max_dimension: None,max_image_dimension: None,@@ -877,7 +880,13 @@ fn sdk_click_token(state: &WindowStateOutput) -> String {.find(|element| element.label.as_deref() == Some(label)).and_then(|element| element.element_token.clone())})- .unwrap_or_else(|| panic!("typed click target has no snapshot-bound token: {elements:?}"))+ .unwrap_or_else(|| {+ panic!(+ "typed click target has no snapshot-bound token (truncated={:?}, \+ truncation_reason={:?}, elements_complete={:?}): {elements:?}",+ state.truncated, state.truncation_reason, state.elements_complete+ )+ })}#[test]