You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bundled @ai-sdk/anthropic@3.0.71 validates usage.iterations[].type as "compaction" | "message". Anthropic now emits "fallback_message" when a response is served by a fallback model (new fallbacks API parameter, e.g. claude-fable-5 → opus). The whole message_delta fails validation and the turn errors out — the assistant can't continue while fallbacks occur.
AI_TypeValidationError: Type validation failed
path: ["usage","iterations",1,"type"]
expected "compaction" | "message", received "fallback_message"
Timing:bunfig.toml sets minimumReleaseAge = 259200 (3 days) and @ai-sdk/anthropic is not in minimumReleaseAgeExcludes. 3.0.82 was published 2026-06-09 17:24 UTC, so it can't resolve before 2026-06-12 ~17:25 UTC. Verified locally that the gate also fires with an already-updated lockfile, so a bump PR before that date fails bun install.
Pins live in three workspaces:packages/opencode (3.0.71), packages/core (3.0.71), packages/console/function (3.0.64). Both packages/opencode/src/provider/provider.ts and packages/core/src/plugin/provider/anthropic.ts import the provider, so the CLI path needs at least those two bumped.
Pre-validation: with the age gate locally overridden, bumping packages/opencode to 3.0.82 regenerates the lockfile cleanly and tsgo --noEmit passes.
Happy to send the bump PR once the release-age window opens on the 12th.
I can take this — straightforward bump of @ai-sdk/anthropic from 3.0.71 to 3.0.82 which includes the fallback_message iteration type fix (vercel/ai#15928).
Activity
moynzzz commentedon Jun 10, 2026
A few findings for whoever picks this up:
bunfig.tomlsetsminimumReleaseAge = 259200(3 days) and@ai-sdk/anthropicis not inminimumReleaseAgeExcludes. 3.0.82 was published 2026-06-09 17:24 UTC, so it can't resolve before 2026-06-12 ~17:25 UTC. Verified locally that the gate also fires with an already-updated lockfile, so a bump PR before that date failsbun install.packages/opencode(3.0.71),packages/core(3.0.71),packages/console/function(3.0.64). Bothpackages/opencode/src/provider/provider.tsandpackages/core/src/plugin/provider/anthropic.tsimport the provider, so the CLI path needs at least those two bumped.packages/opencodeto 3.0.82 regenerates the lockfile cleanly andtsgo --noEmitpasses.Happy to send the bump PR once the release-age window opens on the 12th.
kagura-chen commentedon Jun 10, 2026
I can take this — straightforward bump of
@ai-sdk/anthropicfrom 3.0.71 to 3.0.82 which includes thefallback_messageiteration type fix (vercel/ai#15928).