feat(agent): add Gemini 3.1 support and improve model routing - #1136
Conversation
Support gemini-3.1-pro-preview-computer-use and refactor built-in ComputerUse detection to key off "computer-use" in the model name instead of hardcoded version checks. Update cuabench trace CLI and docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 Publishable packages changed
Add |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe pull request updates the trace command from grid-based viewing to a trajectory-based viewer, implementing HTTP serving and ZIP packaging of trajectory data. Additionally, it updates Gemini model detection logic to identify models with built-in ComputerUse capabilities via a new helper function. Changes
Sequence DiagramsequenceDiagram
actor User
participant CLI
participant TrajCollector
participant HTTPServer
participant Browser
participant TrajectoryViewer
User->>CLI: cb trace traj <run_id>
CLI->>TrajCollector: collect_run_trajectories(run_dir)
TrajCollector->>TrajCollector: discover task_*/agent_logs/trajectories
TrajCollector-->>CLI: return (task_name, session_dir) pairs
CLI->>HTTPServer: create temp ZIPs for each session
HTTPServer->>HTTPServer: generate per-session ZIP files
HTTPServer->>HTTPServer: start local HTTP server with CORS
CLI->>Browser: open cua.ai/trajectory-viewer?zip_url=...
Browser->>TrajectoryViewer: request trajectory viewer
TrajectoryViewer->>HTTPServer: fetch trajectory ZIP
HTTPServer-->>TrajectoryViewer: serve ZIP content
TrajectoryViewer-->>Browser: render trajectory visualization
TrajectoryViewer-->>User: display trajectory data
CLI->>HTTPServer: cleanup temp files after serving
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Improve support for gemini computer-use and refactor built-in ComputerUse detection to key off "computer-use" in the model name instead of hardcoded version checks. Update cuabench trace CLI and docs to support the trajectory viewer web UI.
Summary by CodeRabbit
Release Notes
Documentation
New Features