Repository navigation
Description
Provide environment information
Not environment-specific. Found by reading main at 74765f97f1baafc7665d25b0f2f2af2dcf14436b. The code is the dashboard's "new task" chat-agent snippet and the chat-agent skills in @trigger.dev/sdk.
Describe the bug
The chat agent snippet that the dashboard shows on the project index page uses claude-sonnet-4-5:
Line 971 in 74765f9
| model: anthropic("claude-sonnet-4-5"), |
The agent skills shipped in the SDK package use the same ID, so coding agents that follow them write new chat agents on it:
packages/trigger-sdk/skills/trigger-authoring-chat-agent/SKILL.mdL53, L139, L168packages/trigger-sdk/skills/trigger-chat-agent-advanced/SKILL.mdL234
Anthropic retires this model on 30 Nov 2026. Its deprecations page lists claude-sonnet-4-5-20250929 with retirement date November 30, 2026 and recommended replacement claude-sonnet-5-5, and says the retirement "includes claude-sonnet-4-5, the same model's ID without a date" (https://platform.claude.com/docs/en/about-claude/model-deprecations, read 18 Nov 2026). After that, a chat agent copied from these places errors on its first turn.
#5135 updated the same model IDs across docs/ but was closed without merging, and it didn't touch the webapp snippet or the SDK skills.
Expected: the snippet and skills use a current model.
Reproduction repo
| model: anthropic("claude-sonnet-4-5"), |
To reproduce
- Open a project's index page in the dashboard and copy the chat agent snippet (or have an agent follow the
trigger-authoring-chat-agentskill). - Deploy it and send a message after 30 Nov 2026.
- The
streamTextcall fails because the model is retired.
Suggested fix
Change anthropic("claude-sonnet-4-5") to anthropic("claude-sonnet-5-5") in CHAT_AGENT_CODE and in both SKILL.md files.
Complete-fix notes:
- These snippets don't set
temperature,topP,topK, thinking budgets or a forcedtoolChoice, so none of the settings Sonnet 5.5 rejects are sent (https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide, read 18 Nov 2026). @ai-sdk/anthropicaddedclaude-sonnet-5-5in 4.0.67 (its CHANGELOG). The same release maps disabled thinking and forced tool choice to settings 5.5 accepts. A skill that names the model could also say which@ai-sdk/anthropicversion it needs.- Sonnet 5.5 thinks by default, and thinking counts toward output tokens.
I haven't run a chat agent on claude-sonnet-5-5.
Found with Vitasta, a source-available scanner for AI model and API retirements: https://github.com/vitasta-dev/vitasta
Activity