Skip to content

fix(cua): switch anthropic computer-use defaults to claude-sonnet-4-6#130

Merged
rgarcia merged 5 commits intomainfrom
fix/anthropic-cua-default-sonnet-4-6
Mar 4, 2026
Merged

fix(cua): switch anthropic computer-use defaults to claude-sonnet-4-6#130
rgarcia merged 5 commits intomainfrom
fix/anthropic-cua-default-sonnet-4-6

Conversation

@rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Mar 4, 2026

Summary

  • update the TypeScript anthropic computer-use template to use claude-sonnet-4-6 as the default model
  • update the Python anthropic computer-use template to use claude-sonnet-4-6 as the default model
  • remove the dated model suffix from new template defaults so generated apps use the stable alias

Test plan

  • make test

Made with Cursor


Note

Medium Risk
Medium risk because it changes generated template behavior (default model selection and Anthropic tool version/beta flags) and adjusts TypeScript SDK typings, which could break newly scaffolded apps if versions drift.

Overview
Switches the Anthropic Computer Use templates (Python + TypeScript) to default to the stable claude-sonnet-4-6 model alias and introduces a new computer_use_20251124 tool version (with corresponding computer_20251124 tool) that is auto-selected for newer Claude models unless explicitly overridden.

Cleans up the TypeScript template by removing luxon (using Intl.DateTimeFormat instead), updating @onkernel/sdk to ^0.35.0, tightening tool param types to Anthropic SDK-provided unions, and making browser liveViewUrl/replayViewUrl explicitly nullable.

Updates the scaffolding copier (CopyTemplateFiles) to skip common artifact directories (node_modules, .venv, __pycache__) during template copy, with a new test to enforce this behavior.

Written by Cursor Bugbot for commit 6bde8ec. This will update automatically on new commits. Configure here.

Update both TypeScript and Python anthropic computer-use templates to default to the non-dated claude-sonnet-4-6 model alias so new apps use the current recommended model line.

Made-with: Cursor
rgarcia added 4 commits March 4, 2026 15:32
Align anthropic computer-use template types with the current SDK beta contracts and add missing Luxon type definitions so kernel deploy pre-compilation runs without template type errors.

Made-with: Cursor
Prevent kernel create from copying local build artifacts like node_modules into generated apps, which causes non-interactive pnpm installs to fail with no-TTY prompts.

Made-with: Cursor
Use native date formatting in the system prompt so deploy pre-compilation no longer depends on dev-only Luxon type packages when devDependencies are skipped.

Made-with: Cursor
Map Claude Sonnet 4.6/Opus 4.6/Opus 4.5 to the 20251124 computer tool and beta flag in anthropic computer-use templates, while keeping older models on 20250124 for compatibility.

Made-with: Cursor
@rgarcia rgarcia merged commit f64b9af into main Mar 4, 2026
2 checks passed
@rgarcia rgarcia deleted the fix/anthropic-cua-default-sonnet-4-6 branch March 4, 2026 21:02
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.

2 participants