packages/ai: add computer-use support for claude-sonnet-5#48
Merged
Conversation
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>
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.
Summary
claude-sonnet-5as a CUA-supported Anthropic model so@onkernel/cua-airesolvesanthropic:claude-sonnet-5. Before this,getCuaModel("anthropic:claude-sonnet-5")threwunsupported CUA model.update-modelsskill: aCUA_MODEL_ANNOTATIONSfamily annotation (marks the family computer-use-supporting), plus aCUA_MODEL_OVERRIDESentry (pi-ai's registry does not carry the model yet, so the override letsgetCuaModel()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-ai—models.test.tspasses; the lone failure inapi-keys.test.tsis pre-existing env pollution (passes under a clean env, unrelated to this change).getCuaModel("anthropic:claude-sonnet-5")resolves;listCuaModels("anthropic")includes it.CUA_MODEL=anthropic:claude-sonnet-5 npm run example:quickstartemits aclickcomputer tool call.Notes
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 thegpt-5.5-2026-04-23precedent).🤖 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-5to@onkernel/cua-aisoanthropic:claude-sonnet-5resolves for computer-use workflows instead of failing with unsupported CUA model.The change follows the existing update-models pattern: a
claude-sonnet-5family entry inCUA_MODEL_ANNOTATIONS(filter + dated snapshot suffixes), aCUA_MODEL_OVERRIDEScuaModelstub while pi-ai’s registry lacks the id, and the same family listed insupported-models.md.Reviewed by Cursor Bugbot for commit 28c7891. Bugbot is set up for automated code reviews on this repo. Configure here.