fix(cua): switch anthropic computer-use defaults to claude-sonnet-4-6#130
Merged
fix(cua): switch anthropic computer-use defaults to claude-sonnet-4-6#130
Conversation
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
hiroTamada
approved these changes
Mar 4, 2026
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
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-4-6as the default modelclaude-sonnet-4-6as the default modelTest plan
make testMade 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-6model alias and introduces a newcomputer_use_20251124tool version (with correspondingcomputer_20251124tool) that is auto-selected for newer Claude models unless explicitly overridden.Cleans up the TypeScript template by removing
luxon(usingIntl.DateTimeFormatinstead), updating@onkernel/sdkto^0.35.0, tightening tool param types to Anthropic SDK-provided unions, and making browserliveViewUrl/replayViewUrlexplicitly 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.