Enable Gemini-3.5-flash cua
Merged
MI
4mo ago+360+360+012345678901234567890123456789-53-53-01234567890123456789
why
New model dropped
what changed
Added support for the Gemini 3.5 Flash Computer Use updated toolset in GoogleCUAClient.ts, with all new tool formats correctly mapped.
test plan
Summary by cubic
Adds support for the google/gemini-3.5-flash computer-use agent. Normalizes Gemini 3.x tool names/args to 2.5 handlers, preserves click semantics, validates coordinates (rejects missing/NaN/Infinity), always returns a fresh screenshot, and surfaces reasoning/cached tokens.
-
New Features
- Enable
google/gemini-3.5-flashin agent/LLM provider maps and public types; update tests. - Map 3.x functions to 2.5 handlers and accept new arg shapes: coordinate-less
type,keysarray or singlekey,magnitude_in_pixelsforscroll, drag start/end pairs; recognizescreenshot/take_screenshot; coordinate-lessscrollfalls back to PageUp/PageDown; aliaswaittowait_5_seconds. - Always return a screenshot function response even when no executable actions are produced.
- Enable
-
Bug Fixes
- Track
reasoning_tokensandcached_input_tokensin Google CUA usage (per step and aggregated). - Preserve 3.x click-family semantics (
double_click,triple_click,right_click,middle_click,move) and drop calls with missing or non‑finite coordinates; add explicitclick_atguard and a shared finite-number check; add unit tests for conversion/guards. - Guard required args and log custom‑tool collisions: reject
navigatewithouturlandtype/type_text_atwithouttext(empty allowed); log when a custom tool name conflicts with a predefined function (predefined wins).
- Track