Repository navigation
chore(computer-use): upgrade cua-driver to 0.38.0 (macOS + Linux arm64) - #940
sambitcreate wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Important
Live 0.38 refusal envelopes still bypass the new top-level recovery-hint fallback; update the error path and its test before merging.
Reviewed changes Reviewed the complete 0.38.0 macOS/Linux arm64 driver upgrade and its runtime, supply-chain, broker, test, and documentation changes.
- Release pins and provenance — Verified the macOS universal and Linux arm64 archive sizes, SHA-256 values, source commit, and Sigstore bundle pins against the official 0.38.0 release manifest and checksum list.
- Runtime contract adaptation — Reviewed strict catalog updates, session injection, denied tools, refusal mappings, agent guidance, and shared desktop/guest controller behavior.
- Integrity and signing — Reviewed pre-hash size enforcement, ELF validation, macOS code-signing/CDHash updates, launch-requirement regeneration, and vendoring checks.
- Plans and product documentation — Reviewed the Linux Bot-computer rollout plan and current Computer Use/guest-lane documentation updates.
- Behavioral coverage — Checked the changed tests against the live upstream envelope contract and ran the focused Computer Use and vendoring suites; changed catalog, pin, and refusal cases passed.
@v0 or keep the SHA fresh with Dependabot | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using GPT Sol | 𝕏
There was a problem hiding this comment.
Important
Mapped isError refusals can still lose the new recovery hint when their text is long; preserve it inside the final error bound before merging.
Reviewed changes Reviewed the recovery-hint fix added since the prior Pullfrog review.
- Live refusal hint path — Added bounded extraction of
error.hint,refusal.hint, and the 0.38 top-levelhintbefore theisError: truepath throws, while retaining code, effect, reason, and execution-state handling. - Behavioral coverage — Added live-envelope cases for mapped and unmapped refusals, long hints, partial drag delivery, and unknown execution state.
@v0 or keep the SHA fresh with Dependabot | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using GPT Sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed the mapped refusal-hint correction added since the prior Pullfrog review.
- Bounded refusal details — Reserved room for the structured recovery hint within the final 1,000-character mapped-refusal bound, including long driver text and hints appearing only beyond the retained raw-text prefix.
- Behavioral coverage — Added mapped
isError: truecases that verify the complete recovery hint survives both long diagnostic text and a trailing raw-text copy; all 81 focused Computer Use tool tests pass.
@v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏

Summary
cua-driverrelease from0.36.0to0.38.0for macOS universal (resources/computer-use/cua-driver-artifact.json) and adds the matching Linux arm64 pin (resources/computer-use/cua-driver-linux-arm64-artifact.json) for upcoming Linux Bot computers.CUA_DRIVER_BINARY_BYTESsize check unconditionally inscripts/vendor-cua-driver.mjs,resolveCuaDriverInstallation, andresolveVendoredCuaDriverExecutablebefore hashing orplutil/ELF checks; updates schema-driven session binding for 0.38.0 (removing legacyelement_index).docs/plans/linux-desktop-bots-plan.md(PR 3 / A2).Stack
main(mergedorigin/maina60cd7c30).pr/f3-linux-driver-tools-signin(F3).Verification
test:computer-use(JS/TS, includingvendor-cua-driver.test.mjs,sign-macos.test.mjs,verify-macos-package.test.mjs): 574/575 pass (1 macOS-only skipped on Linux, 0 failed)npm run type-check: 0 errorseslinton modified.ts/.tsx/.mjsfiles: 0 issuesSambitscStudio2):cua-driver0.38.0Linux arm64 guest daemon + AT-SPIget_window_stateverified live.Remaining checks
npm run package:verifyon owner Mac before release.Flaky tests observed
tests/e2e/bots-persistence.spec.ts:10:1(:28:81,expect(transcript().getByText(E2E_ASSISTANT_RESPONSE, { exact: true })).toBeVisible()timed out on first attempt and passed on Playwright retry Use catalog-driven runtime model limits #1, failing--fail-on-flaky-tests) inElectron E2E (1/1)on attempt 1 (run 45899763517 / job 140210569248); passed on--failedrerun (attempt 2). PR chore(computer-use): upgrade cua-driver to 0.38.0 (macOS + Linux arm64) #940 touches onlymain/services/computer-use/.