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(spaces-web): let the dialog's focus frame pass before checking a typed resource value (#6477)
injaneity3248e4dea8b4
diff --git a/apps/cua-spaces-web/e2e/new-space.ts b/apps/cua-spaces-web/e2e/new-space.tsindex 627dd3c98b..571754207a 100644--- a/apps/cua-spaces-web/e2e/new-space.ts+++ b/apps/cua-spaces-web/e2e/new-space.ts@@ -217,6 +217,11 @@ export async function checkNewSpace(page: Page, checkpoints: ParityCheckpoint[])if (seen.has(key)) continue;seen.add(key);await page.evaluate(([state, env]) => window.__cuaParity!.showWizard(state, env), [cp.state, cp.env] as [WizardState, WizardEnv]);+ // When a typed value's field closes, the dialog (Base UI's+ // restoreFocus: "popup") takes focus back again on the next frame. Let+ // that frame pass, or on a slow one it takes focus from the next+ // state's field, whose blur commits the value.+ await page.evaluate(() => new Promise<void>((r) => requestAnimationFrame(() => r())));const menu = JSON.stringify(cp.view.placements);// The open image suggestions cover the menu; it is checked on a later state.const menuChanged = cp.view.mode === "create" && cp.view.step === 0 && !cp.view.imageField.open && menu !== lastMenu;