Version Packages#888
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
3 times, most recently
from
February 11, 2026 14:43
6753727 to
7e175d3
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
February 11, 2026 22:22
7e175d3 to
96cf264
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
agents@0.4.1
Patch Changes
#890
22dbd2cThanks @ask-bonk! - Fix_flushQueue()permanently blocking when a queued callback throwsA throwing callback in
_flushQueue()previously caused the failing row to never be dequeued, creating an infinite retry loop that blocked all subsequent queued tasks. Additionally,_flushingQueuewas never reset tofalseon error, permanently locking the queue for the lifetime of the Durable Object instance.The fix wraps each callback invocation in try-catch-finally so that failing items are always dequeued and subsequent items continue processing. The
_flushingQueueflag is now reset in a top-level finally block. Missing callbacks are also dequeued instead of being skipped indefinitely.Note for existing stuck Durable Objects: This fix is self-healing for poison rows — they will be properly dequeued on the next
_flushQueue()call. However,_flushQueue()is only triggered by a newqueue()call, not on DO initialization. If you have DOs stuck in production, you can either trigger a newqueue()call on affected DOs, or calldequeueAll()/dequeueAllByCallback()to clear the poison rows manually. A future improvement may add a_flushQueue()call toonStart()so stuck DOs self-heal on wake.#891
0723b99Thanks @ask-bonk! - FixgetCurrentAgent()returningundefinedconnection when used with@cloudflare/ai-chatand Vite SSRRe-export
agentContextas__DO_NOT_USE_WILL_BREAK__agentContextfrom the mainagentsentry point and update@cloudflare/ai-chatto import it fromagentsinstead of theagents/internal_contextsubpath export. This prevents Vite SSR pre-bundling from creating two separateAsyncLocalStorageinstances, which causedgetCurrentAgent().connectionto beundefinedinsideonChatMessageand toolexecutefunctions.The
agents/internal_contextsubpath export has been removed frompackage.jsonand the deprecatedagentContextalias has been removed frominternal_context.ts. This was never a public API.Updated dependencies [
584cebe,0723b99,4292f6b]:@cloudflare/ai-chat@0.0.8
Patch Changes
#882
584cebeThanks @alexanderjacobsen! - Fix multi-step client tool calling: pass stored client tool schemas toonChatMessageduring tool continuations so the LLM can call additional client tools after auto-continuation. Also add a re-trigger mechanism to the client-side tool resolution effect to handle tool calls arriving during active resolution.#891
0723b99Thanks @ask-bonk! - FixgetCurrentAgent()returningundefinedconnection when used with@cloudflare/ai-chatand Vite SSRRe-export
agentContextas__DO_NOT_USE_WILL_BREAK__agentContextfrom the mainagentsentry point and update@cloudflare/ai-chatto import it fromagentsinstead of theagents/internal_contextsubpath export. This prevents Vite SSR pre-bundling from creating two separateAsyncLocalStorageinstances, which causedgetCurrentAgent().connectionto beundefinedinsideonChatMessageand toolexecutefunctions.The
agents/internal_contextsubpath export has been removed frompackage.jsonand the deprecatedagentContextalias has been removed frominternal_context.ts. This was never a public API.#886
4292f6bThanks @whoiskatrin! - Forward custom body fields from client requests toonChatMessageoptionsCustom data sent via
prepareSendMessagesRequestor the AI SDK'sbodyoption insendMessageis now available in theonChatMessagehandler throughoptions.body. This allows passing dynamic context (e.g., model selection, temperature, custom metadata) from the client to the server without workarounds.