Skip to content

chore(computer-use): upgrade cua-driver to 0.38.0 (macOS + Linux arm64) - #940

Open
sambitcreate wants to merge 6 commits into
mainfrom
pr/a2-cua-driver
Open

sambitcreate wants to merge 6 commits into
mainfrom
pr/a2-cua-driver

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Upgrades the pinned cua-driver release from 0.36.0 to 0.38.0 for 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.
  • Enforces the compiled CUA_DRIVER_BINARY_BYTES size check unconditionally in scripts/vendor-cua-driver.mjs, resolveCuaDriverInstallation, and resolveVendoredCuaDriverExecutable before hashing or plutil/ELF checks; updates schema-driven session binding for 0.38.0 (removing legacy element_index).
  • Plan reference: docs/plans/linux-desktop-bots-plan.md (PR 3 / A2).

Stack

  • Root PR targeting main (merged origin/main a60cd7c30).
  • Base for pr/f3-linux-driver-tools-signin (F3).

Verification

  • test:computer-use (JS/TS, including vendor-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 errors
  • eslint on modified .ts/.tsx/.mjs files: 0 issues
  • Live Mac Studio (SambitscStudio2): cua-driver 0.38.0 Linux arm64 guest daemon + AT-SPI get_window_state verified live.
  • Adversarial audit: 0 remaining P0/P1/P2 findings.

Remaining checks

  • Hosted GitHub Actions CI run (including macOS native Computer Use suite) on this PR head.
  • Signed macOS npm run package:verify on owner Mac before release.

Flaky tests observed

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using GPT Sol | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-level hint before the isError: true path 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.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using GPT Sol | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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: true cases 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.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant