Skip to content

Add Gemini native computer use with model-visible evidence - #2906

Open
miguelg719 wants to merge 14 commits into
evals/consolidation-16-claude-cuafrom
evals/consolidation-17-gemini-cua
Open

Add Gemini native computer use with model-visible evidence#2906
miguelg719 wants to merge 14 commits into
evals/consolidation-16-claude-cuafrom
evals/consolidation-17-gemini-cua

Conversation

@miguelg719

@miguelg719 miguelg719 commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Adds Gemini native computer use through the same CUA bridge and canonical facade. System instructions and cancellation use the SDK configuration; normalized coordinates map to browser coordinates. Includes package, build, CI registration, and the shared harness guide.

Stores the actual model-visible tool response and screenshot against its call ID, with optional fields for older records and no duplicate per-action captures. Confirmed runner-owned browser loss or a typed core facade loss is terminal; arbitrary error text, including agent-marked errors, remains recoverable. Missing, blocked, truncated, and malformed provider responses fail as SDK errors, and partial tool calls from those responses are not executed. Every function-call batch is validated before any member executes. Arbitrary model/resource identifiers are passed to the provider, with only the optional google/ alias removed.

Drag uses the existing SDK dragAndDrop primitive. Hotkey arrays execute as one chord, wait honors the requested seconds, and the current scroll action uses its documented default while retaining the legacy action's default.

Budgets use EVAL_GEMINI_CUA_MAX_TURNS. Explicit empty answers remain empty, unfinished calls remain failed, and the last model-visible image is retained when terminal capture is unavailable. That fallback is the last captured frame, not a fresh terminal screenshot. Transcript clipping preserves Unicode pairs.

Validation: 72 Gemini SDK/eval tests across seven files pass, including scripted terminal-response cases and generated executor code exercised against the actual SDK Page and RPC schemas over an in-memory transport. The earlier combined Claude/Gemini/shared suite, including the compiled facade/MCP fixture, passed 101 tests across 14 files before this Gemini follow-up. Gemini SDK and full eval typechecks and the Gemini SDK build pass; parent propagation and final combined validation are separate checks. These are local contract checks; live provider performance and semantic judge compatibility remain separate gates.

Stack position: 17/17. Base: evals/consolidation-16-claude-cua. Review the diff against the immediate predecessor.

Reviewer entry points:

@changeset-bot

changeset-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 84ed629

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cubic-dev-ai cubic-dev-ai 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.

Review completed against the latest diff

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/integrations/gemini-cua-sdk/src/executor.ts Outdated
Comment thread packages/integrations/gemini-cua-sdk/src/session.ts Outdated
Comment thread packages/evals/framework/geminiCuaRunner.ts Outdated
Comment thread packages/evals/README.md Outdated
Comment thread packages/integrations/gemini-cua-sdk/src/transcript.ts Outdated
Comment thread packages/evals/framework/harnesses/geminiCuaAdapter.ts Outdated
Comment thread packages/evals/framework/harnesses/geminiCuaAdapter.ts Outdated
Comment thread packages/evals/framework/harnesses/geminiCuaAdapter.ts Outdated
Comment thread packages/integrations/gemini-cua-sdk/src/session.ts
Comment thread packages/integrations/gemini-cua-sdk/src/session.ts Outdated
@miguelg719
miguelg719 force-pushed the evals/consolidation-17-gemini-cua branch from 75893b9 to f9db4b0 Compare September 8, 2026 16:27
@miguelg719
miguelg719 force-pushed the evals/consolidation-16-claude-cua branch from c5983f0 to 32a7a95 Compare September 8, 2026 16:27
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