agents@0.10.2
cloudflare/agentsagents@0.10.2Apr 13, 2026by github-actions[bot]
AI Summary
This patch release fixes a critical bug where `applyChunkToParts` was dropping `providerMetadata` on `reasoning-end` and `reasoning-delta` chunks. For Anthropic models with extended/adaptive thinking, this caused the thinking block signature to be lost, making extended thinking effectively single-turn only as `@ai-sdk/anthropic` would silently drop the thinking block on subsequent turns.
Key Highlights
- Fixes `applyChunkToParts` dropping `providerMetadata` on reasoning chunks (reasoning-end and reasoning-delta)
- Preserves the Anthropic thinking block signature (`providerMetadata.anthropic.signature`) across conversation turns
- Enables extended/adaptive thinking to work properly in multi-turn conversations
- Aligns reasoning handler behavior with source and tool chunk handlers in the same file
- Fixes GitHub issue #1299
Full Release Notes
### Patch Changes - [#1301](https://github.com/cloudflare/agents/pull/1301) [`d501291`](https://github.com/cloudflare/agents/commit/d5012914fe6b4d663b31a89e9699a5a5a01db73c) Thanks [@threepointone](https://github.com/threepointone)! - Fix `applyChunkToParts` dropping `providerMetadata` on `reasoning-end` and `reasoning-delta` chunks. For Anthropic models with extended/adaptive thinking, the thinking block signature arrives on `reasoning-end.providerMetadata.anthropic.signature`. Without persisting it, `convertToModelMessages` produces reasoning parts with no signature, causing `@ai-sdk/anthropic` to silently drop the thinking block on subsequent turns — effectively making extended thinking single-turn only. The reasoning handlers now merge `chunk.providerMetadata` onto the persisted part, matching the behavior of source and tool chunk handlers in the same file. Fixes [#1299](https://github.com/cloudflare/agents/issues/1299).