Skip to content

packages/ai: add computer-use support for claude-sonnet-5#48

Merged
masnwilliams merged 1 commit into
mainfrom
hypeship/cua-sonnet-5-support
Jun 30, 2026
Merged

packages/ai: add computer-use support for claude-sonnet-5#48
masnwilliams merged 1 commit into
mainfrom
hypeship/cua-sonnet-5-support

Conversation

@masnwilliams

@masnwilliams masnwilliams commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds claude-sonnet-5 as a CUA-supported Anthropic model so @onkernel/cua-ai resolves anthropic:claude-sonnet-5. Before this, getCuaModel("anthropic:claude-sonnet-5") threw unsupported CUA model.
  • Two-part change per the update-models skill: a CUA_MODEL_ANNOTATIONS family annotation (marks the family computer-use-supporting), plus a CUA_MODEL_OVERRIDES entry (pi-ai's registry does not carry the model yet, so the override lets getCuaModel() return a provider-shaped model). Docs snapshot updated to match.

Why

Claude Sonnet 5 shipped 2026-06-30 with computer-use support and Opus-class agentic performance at lower cost, making it a strong default for CUA/browser workloads. The model id wasn't in the support table, so any consumer (agents, benchmarks) selecting it failed at model resolution.

Validation

  • npm run typecheck — clean.
  • npm test --workspace @onkernel/cua-aimodels.test.ts passes; the lone failure in api-keys.test.ts is pre-existing env pollution (passes under a clean env, unrelated to this change).
  • getCuaModel("anthropic:claude-sonnet-5") resolves; listCuaModels("anthropic") includes it.
  • Live tool-call smoke: CUA_MODEL=anthropic:claude-sonnet-5 npm run example:quickstart emits a click computer tool call.
  • End-to-end on a Kernel browser via the cua agent (Online-Mind2Web task): completed and graded SUCCESS.

Notes

  • Covers the base id claude-sonnet-5. Dated snapshots (e.g. claude-sonnet-5-YYYYMMDD) resolve once pi-ai's registry picks the model up, or can be added as explicit overrides if needed sooner (same as the gpt-5.5-2026-04-23 precedent).

🤖 Generated with Claude Code


Note

Low Risk
Small curated model-table and documentation updates with no auth, runtime, or API behavior changes beyond allowing one new model ref.

Overview
Adds claude-sonnet-5 to @onkernel/cua-ai so anthropic:claude-sonnet-5 resolves for computer-use workflows instead of failing with unsupported CUA model.

The change follows the existing update-models pattern: a claude-sonnet-5 family entry in CUA_MODEL_ANNOTATIONS (filter + dated snapshot suffixes), a CUA_MODEL_OVERRIDES cuaModel stub while pi-ai’s registry lacks the id, and the same family listed in supported-models.md.

Reviewed by Cursor Bugbot for commit 28c7891. Bugbot is set up for automated code reviews on this repo. Configure here.

Annotate the claude-sonnet-5 family as CUA-supporting and register a
CUA_MODEL_OVERRIDES entry so getCuaModel() resolves anthropic:claude-sonnet-5
before pi-ai's registry carries it. Update the supported-models snapshot.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@masnwilliams masnwilliams marked this pull request as ready for review June 30, 2026 18:29
@masnwilliams masnwilliams merged commit 53040a9 into main Jun 30, 2026
6 checks passed
@masnwilliams masnwilliams deleted the hypeship/cua-sonnet-5-support branch June 30, 2026 18:30
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