feat: add optional Cua Driver computer backend - #65
Open
f-trycua wants to merge 2 commits into
Open
Conversation
f-trycua
requested review from
MikeRyanDev,
davidmckayv,
guidovizoso and
tylerslaton
as code owners
August 21, 2026 00:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds an opt-in
COMPUTER_BACKEND=cua-driverimplementation behind the existing computer-service contract. Playwright remains the default.The Cua Driver backend:
PROFILES_DIR/cua-driver, separate from Playwright profiles;agent-computerimage and the all-in-one production image.The production packaging starts Xvfb and Openbox only for the Cua backend. It keeps Chromium and the display under
pwuser, waits for graceful browser/profile shutdown before stopping X11, and builds both container paths in CI.Where it runs
PROFILES_DIR/cua-driver; live Cua sessions remain process-local, like the existing live Playwright browser.agent-computerreplica owns the browsers and profiles assigned to that deployment instance; the supervisor's per-Bot container model remains the isolation path.Boundary and audit
COMPUTER_TOKEN.Changelog
COMPUTER_BACKEND=cua-driver. The new configuration and operational differences are documented in the README and deployment, configuration, and architecture guides.Known limitations
egress: nullfor this backend.Proof
Candidate:
53e5a8868ee85ea5131ea89d6353c1685b849eabagent-computertypechecks passed.agent-computer: 99 tests passed.agent-computer/Dockerfileand the root productionDockerfilebuilt successfully from the candidate.pwuser; navigation and native screenshot passed.docker stop --timeout 20loggedSIGTERM: closing the browser so its profile is flushedbefore X11 exited.READY TO SUBMIT.