Skip to content

Version Packages - #2929

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

[email protected]

Minor Changes

  • #3184 ab6072e Thanks @mattzcarey! - Experimental harnesses and Channels.

    • Remove the experimental AiSdkHarness (agents/harness/ai-sdk), with its createSendMessageTool and AI SDK conversion exports. Use Think or the Pi harness; to serve an agent through Channels, use ThinkHarness from agents/harness/think, which takes the same model and tools; existing AiSdkHarness transcripts stay in storage and are not carried over.
    • ThinkHarness: recovery.maxAttempts (default 10) counts attempts without progress, recovery.backoffMs is removed, a cut-off tool reruns only if marked recovery: "rerun", and tools' onInputStart, onInputDelta and onInputAvailable are no longer called.
    • ThinkHarness tells the model when its tools changed, answers a cut-off call to a removed tool with an error instead of waiting, and emits prefix-changed (#3194).
    • ThinkHarness takes client tool results only from the turn's owner, runs on AI SDK 6, no longer hangs on an in-band stream error, and no longer corrupts long log entries with emoji (#3054).
    • ThinkHarness's onRecovery may return { continue, persist } beside "continue" and "abandon", where persist: false drops the interrupted reply, and its context carries the turn's stash() data as recoveryData.
    • Channels: a surface key groups one place's messages, and a reset no longer double-posts an answer (#3145).
    • ThinkHarness retries a turn after a platform transient (a lost connection, a storage reset, an error marked retryable) within its recovery budget unless the app's classifier says fail (classifyContextOverflow now says retry for one), finishes a turn whose recovery gives up like any given-up reply, and names the reply an aborted operation kept (messageId).
    • Channels: a response cut off while a tool's input was still arriving is replaced by its rerun, not posted as cut off.
    • ThinkHarness takes shipped extensions through its extensions option. The first is Code Mode, codemode() from the new experimental entry agents/harness/think/extensions: the model writes one script, and the other tools become functions it calls, each a recorded step with the tool hooks and approvals. CodemodeSandbox and sandboxExecutor run the scripts in their own Durable Object.
    • A ThinkHarness tool whose execute resolves to an async iterable, rather than returning one, no longer reports progress: its last value is the result, as in the AI SDK.
  • #3184 ab6072e Thanks @mattzcarey! - Storage limits and agents/streams.

    • Agents now store up to 8 MB in one SQLite row (was 2 MB), as production allows. Event-log replay, Sessions search and getAgentToolChunks now page by size (16 MiB per frame or reply); a caller of getAgentToolChunks reads the rest by passing the last afterSequence until a call returns no chunks. Local development needs workerd 1.20260930 or later: wrangler 4.145.0+ and @cloudflare/vitest-plugin 1.9.1+; older local runtimes fail large writes with SQLITE_TOOBIG. See Adding to an existing project.
    • ROW_MAX_BYTES and enforceRowSizeLimit are removed from agents/chat (use ROW_VALUE_BYTES).
    • An oversized callable result answers with an error, an oversized chat message list is logged instead of sent, and oversized state or SQL throws a SqlError naming the limit (#2991, #3050, #3063).
    • agents/streams takes an optional name (experimental) and validates its arguments (#3062).
  • #3184 ab6072e Thanks @mattzcarey! - Sessions.

    • Sessions resolves what the model sees from the newest message back: compaction overlays apply at any length, reads cost what they return, and deleting messages keeps overlays applying (#2871). Behaviour changes: addCompaction() throws on anchors that can never apply, overlapping hand-written overlays resolve to the one ending later, and reads that start at the root throw past 200,000 visible messages. Existing overlays are carried forward on start. See Sessions.
    • Sessions takes an optional name (experimental).
    • Long compacted chats no longer send raw history, long sessions load, and search handles large messages and long texts (#3056, #3075, #3124, #3084).
    • A request no longer fails with "web_search_call was provided without its required reasoning item" (#3090).
  • #3184 ab6072e Thanks @mattzcarey! - Experimental agents/tasks API changes. See Tasks.

    • Snapshots and receipts carry status (was state), TaskRunState is now TaskStatus, failed is now error, cancelled is now aborted, and waiting is now pending with waitReason and wakeAt; stored runs are migrated.
    • cancel() settles a run aborted at once, and tasks.run() throws TaskInputConflictError when a reused runId or idempotencyKey has a different input.
    • Tasks takes an optional name for more than one Tasks per object.
    • A run is recovered within seconds of a reset, or 30 seconds after a transient platform failure (#3066).
  • #3184 ab6072e Thanks @mattzcarey! - Think.

    • Scheduled tasks from getScheduledTasks() move to new storage, and existing task rows migrate forward on first start. getScheduledTasksScope() is removed: a sub-agent now arms its own declared tasks, and its root wakes it. See Scheduled tasks.
    • Experimental agents/context: freezeSystemPrompt, refreshSystemPrompt and reminder moved from ContextBlocks to the new Context, ContextBlocks no longer takes a prompt store, prompt stores are only read, turns keep their first system prompt, and set_context blocks are not echoed back.
    • Messenger replies: messengerReplySnapshot, parseMessengerReplySnapshot, MessengerReplySnapshot, MESSENGER_REPLY_FIBER_NAME, DeliveryTag and defaultDeliveryTag are removed, messengerReplyRecoveryMode() takes a stage, ThinkMessengerRuntime no longer has handleFiberRecovery(), hasLiveReply(), initialReplySnapshot() or executeLiveReply(), and deliverMessengerReply() takes onStage instead of checkpoint, fiber and snapshotThread; a reply cut off by a reset answers again or apologizes, and replies a reset left open in [email protected] are carried forward.
    • submitMessages stores messages whole up to 16 MiB.
    • deliverNotice before the first webhook no longer throws.
    • Sandboxed extensions work in sub-agents and enforce permissions.network when the Worker re-exports HostBridgeLoopback (#3173).
    • With contextOverflow.proactive on AI SDK 6, the steps after the guard compacted no longer send the whole history again.

Patch Changes

  • #3184 ab6072e Thanks @mattzcarey! - Agent tools and sub-agents.

    • Think.startAgentToolRun takes an optional signal.
    • A run cut off by a parent reset re-attaches to its child and ends once, or interrupted after 2 s, and a throwing onAgentToolFinish goes to onError.
    • A run whose child cannot stay up ends error, and a detached run without progress ends interrupted, not running (#3073, #2467).
    • A given-up detached run is no longer re-armed forever, and onMilestones gets a milestone reached before finishing (#2769, #3278).
    • Runs wait for their child's recovery and start in order, and aged-media eviction runs for every sub-agent (#3024, #3144, #2974).
    • Many sub-agents started at once no longer stall, and their work resumes when the root restarts (#3077, #3014, #3086).
    • Sub-agents work under a jurisdiction, keep socket frames in order, and no longer reset their tree's storage when upgrading old chat tables (#3085, #3181, #3215, #3192).
    • An AIChatAgent agent-tool run is its chat turn: one durable run, so a reset of the child resumes it and a cancel ends it at once, and runs a released version kept, or that were in flight across the upgrade, carry on.
  • #3184 ab6072e Thanks @mattzcarey! - Stored chat messages.

    • Before each turn, calls and approvals left pending earlier are failed (chat:transcript:repaired), and continueLastTurn() returns "awaiting-client" while a reply waits on a client.
    • Stored parts keep metadata, file names and steering messages, and a finished streaming tool stays in later turns (#3143, #3145).
    • A repeated tool result is a no-op, an early approval keeps the final input, and a failed store reaches onChatResponse as error (#2981).
  • #3184 ab6072e Thanks @mattzcarey! - Chat recovery.

    • Recovery work units (maxRecoveryWork, ctx.work) now count ten stored chunks each. See Recovery work units.
    • Rate-limit, transient and overflow errors are recognised without classifyChatError, and recovery honours Retry-After (up to 60 s).
    • An interrupted turn is skipped if the conversation moved on, else answered or continued once, and requests behind it run afterwards in order (#2922).
    • Long conversations are no longer sealed with work_budget_exceeded (#3055).
    • A stop during recovery always ends the request aborted, and the next message no longer waits out its backoff (#3027).
    • A rebuilt reply no longer repeats parts, and a tool that only reported progress before a reset is reported interrupted (#2979).
    • An agent-tool run on a sub-agent whose chat recovery gave up before running a turn now ends error; it stayed running.
    • chatRecovery.stableTimeoutMs is deprecated and has no effect: a recovered turn is the next attempt of the turn's own run, so there is no wait for a stable chat before it continues.
    • An AIChatAgent turn that is recovered keeps its request id and ends once, so a tab no longer sees an end with outcome: "recovering" followed by a new request.
    • saveMessages and continueLastTurn resolve once recovery has finished the turn, with how it ended, instead of with reason: "interrupted".
    • onError hears of an onChatMessage failure once per turn, where a recovered continueLastTurn reported it twice.
    • Recovery no longer calls an overridden continueLastTurn or waitUntilStable: an interrupted turn is retried or continued as attempts of its own run, and AIChatAgent warns once at start when a subclass overrides continueLastTurn (decide recovery in onChatRecovery).
    • When a recovered AIChatAgent reply is waiting on a client tool or approval, its recovery ends at once with chat:recovery:skipped and reason awaiting_client_interaction, and the client's answer starts an ordinary continuation.
    • In that case tabs are sent cf_agent_chat_recovering off before cf_agent_message_updated.
    • A stalled AIChatAgent stream whose recovery onChatRecovery declines sends tabs cf_agent_chat_recovering on and then off.
    • A turn cut off before the upgrade is carried onto the new chat module under its request id, with the recovery budget of a new turn.
    • A stopped reply that was waiting to be retried is stored before the next request's question, and every tab is told the request ended.
  • #3184 ab6072e Thanks @mattzcarey! - Chat turns.

    • Upgrade agents, @cloudflare/ai-chat and @cloudflare/think together. @cloudflare/ai-chat and @cloudflare/think require agents 0.35.0 or later. Released @cloudflare/ai-chat 0.12.x and @cloudflare/think 0.24.x can't run a turn on this agents, so agents/chat no longer keeps exports for them. TurnQueue, SubmitConcurrencyController, AbortRegistry, ResumableStream, ContinuationState, AutoContinuationController, buildInClauseStrings and enforceRowSizeLimit are removed, and an old pairing fails at bundle time with a missing export.
    • A message sent while a turn runs is stored when its own turn starts, so the transcript reads U1, A1, U2, A2.
    • Waiting messages are dropped only by a clear, and a cancelled or superseded one stays so across a restart (#2928).
    • A stop also drops waiting auto-continuations, an aborted result carries reason: "stopped" or "interrupted", and an autoContinue tool result answered just before a restart still continues the reply (#3101, #3142).
    • New events: chat:request:failed, chat:stream:stalled, chat:continuation:dropped, and Think's tool:result, tool:approval, message:cancel.
    • A tool answer that arrives while a continuation runs now schedules the next continuation, which starts one coalesce window after the running reply ends; a stop that drops it reports its own request id instead of null.
    • A tab that asks to resume right after answering a client tool is told to wait for the continuation, even when the answer is still being stored; it used to be told there was nothing to resume.
    • A resume request that names several requests gets the end of each one that ended, not only the newest, also when the tab is parked on a continuation or offered a pending error.
    • After a tool answer or an approval, the continuation's chunks reach each tab once, live; the tab that answered is no longer also sent a replay of them.
    • An AIChatAgent request whose onChatMessage returns no response ends with outcome: "skipped".
    • A clear keeps nothing of an AIChatAgent turn it reaches, and a request that was still waiting ends with outcome: "skipped".
    • An AIChatAgent turn that recovery gives up on reports its end to onChatResponse once, with status: "error" and the terminal message, after onExhausted.
    • AIChatAgent turns store their messages directly, so a persistMessages override no longer sees a turn's writes.
    • A request context over the row budget is no longer kept in memory.
    • A tab that reconnects learns how a request ended by naming it in its resume request, as the client does; a tab that names none is told of the newest end only when it was an error.
    • A reply that completed is kept as stored, and Think leaves the reasoning it ends in out of the model request only; a reply cut off in its reasoning is still removed. See Reasoning at the end of a reply.
  • #3184 ab6072e Thanks @mattzcarey! - Clients.

    • useAgent and AgentClient wait up to 15 s for the handshake (was 4 s) and spread their reconnects.
    • A tab joining a running reply gets live chunks, and each request's end once, also after a stop or reconnect (#2703, #3068, #3074, #3135, #3064).
    • After a reconnect, useAgentChat shows an accepted turn as busy, and Stop cancels it (#2741).
    • A client reconnecting to a sub-agent before its old socket closed gets frames (#2709).
  • #3184 ab6072e Thanks @mattzcarey! - Schedules, jobs and workflows.

    • Work cut off by a reset resumes within 5 s instead of 30, and survives a dropped alarm (#3028, #2977).
    • A failing job no longer retries forever and reaches its onJobError (#3022, #3023, #3032, #3025, #3007).
    • Jobs and getSchedule() work in sub-agents, and destroy() from a scheduled callback sticks (#3012, #3020, #3083).
    • A crashing fiber recovery hook no longer takes the agent down (#2970).
    • AgentWorkflow runs and stubs survive an Agent reset, and approveWorkflow() and rejectWorkflow() skip an overridden sendWorkflowEvent() (#3052, #2978).
    • deleteSubAgent() and a sub-agent's destroy() now empty the sub-agent's storage, and its own sub-agents' storage, on deployed Workers.
  • #3184 ab6072e Thanks @mattzcarey! - MCP, email and models.

    • The MCP client checks server URLs like web_fetch, refusing more private addresses, .internal names and URLs with credentials.
    • The MCP RPC transport and getAgentByName recover from an Agent reset (#2978).
    • replyToEmail() no longer adds a second Re: (#3207).
    • agents/models/pi-ai: an AbortError from onResponse on Anthropic stops a fallback chain.

@cloudflare/[email protected]

Minor Changes

  • #3184 ab6072e Thanks @mattzcarey! - Think.

    • Scheduled tasks from getScheduledTasks() move to new storage, and existing task rows migrate forward on first start. getScheduledTasksScope() is removed: a sub-agent now arms its own declared tasks, and its root wakes it. See Scheduled tasks.
    • Experimental agents/context: freezeSystemPrompt, refreshSystemPrompt and reminder moved from ContextBlocks to the new Context, ContextBlocks no longer takes a prompt store, prompt stores are only read, turns keep their first system prompt, and set_context blocks are not echoed back.
    • Messenger replies: messengerReplySnapshot, parseMessengerReplySnapshot, MessengerReplySnapshot, MESSENGER_REPLY_FIBER_NAME, DeliveryTag and defaultDeliveryTag are removed, messengerReplyRecoveryMode() takes a stage, ThinkMessengerRuntime no longer has handleFiberRecovery(), hasLiveReply(), initialReplySnapshot() or executeLiveReply(), and deliverMessengerReply() takes onStage instead of checkpoint, fiber and snapshotThread; a reply cut off by a reset answers again or apologizes, and replies a reset left open in [email protected] are carried forward.
    • submitMessages stores messages whole up to 16 MiB.
    • deliverNotice before the first webhook no longer throws.
    • Sandboxed extensions work in sub-agents and enforce permissions.network when the Worker re-exports HostBridgeLoopback (#3173).
    • With contextOverflow.proactive on AI SDK 6, the steps after the guard compacted no longer send the whole history again.

Patch Changes

  • #3184 ab6072e Thanks @mattzcarey! - Agent tools and sub-agents.

    • Think.startAgentToolRun takes an optional signal.
    • A run cut off by a parent reset re-attaches to its child and ends once, or interrupted after 2 s, and a throwing onAgentToolFinish goes to onError.
    • A run whose child cannot stay up ends error, and a detached run without progress ends interrupted, not running (#3073, #2467).
    • A given-up detached run is no longer re-armed forever, and onMilestones gets a milestone reached before finishing (#2769, #3278).
    • Runs wait for their child's recovery and start in order, and aged-media eviction runs for every sub-agent (#3024, #3144, #2974).
    • Many sub-agents started at once no longer stall, and their work resumes when the root restarts (#3077, #3014, #3086).
    • Sub-agents work under a jurisdiction, keep socket frames in order, and no longer reset their tree's storage when upgrading old chat tables (#3085, #3181, #3215, #3192).
    • An AIChatAgent agent-tool run is its chat turn: one durable run, so a reset of the child resumes it and a cancel ends it at once, and runs a released version kept, or that were in flight across the upgrade, carry on.
  • #3184 ab6072e Thanks @mattzcarey! - Stored chat messages.

    • Before each turn, calls and approvals left pending earlier are failed (chat:transcript:repaired), and continueLastTurn() returns "awaiting-client" while a reply waits on a client.
    • Stored parts keep metadata, file names and steering messages, and a finished streaming tool stays in later turns (#3143, #3145).
    • A repeated tool result is a no-op, an early approval keeps the final input, and a failed store reaches onChatResponse as error (#2981).
  • #3184 ab6072e Thanks @mattzcarey! - Chat recovery.

    • Recovery work units (maxRecoveryWork, ctx.work) now count ten stored chunks each. See Recovery work units.
    • Rate-limit, transient and overflow errors are recognised without classifyChatError, and recovery honours Retry-After (up to 60 s).
    • An interrupted turn is skipped if the conversation moved on, else answered or continued once, and requests behind it run afterwards in order (#2922).
    • Long conversations are no longer sealed with work_budget_exceeded (#3055).
    • A stop during recovery always ends the request aborted, and the next message no longer waits out its backoff (#3027).
    • A rebuilt reply no longer repeats parts, and a tool that only reported progress before a reset is reported interrupted (#2979).
    • An agent-tool run on a sub-agent whose chat recovery gave up before running a turn now ends error; it stayed running.
    • chatRecovery.stableTimeoutMs is deprecated and has no effect: a recovered turn is the next attempt of the turn's own run, so there is no wait for a stable chat before it continues.
    • An AIChatAgent turn that is recovered keeps its request id and ends once, so a tab no longer sees an end with outcome: "recovering" followed by a new request.
    • saveMessages and continueLastTurn resolve once recovery has finished the turn, with how it ended, instead of with reason: "interrupted".
    • onError hears of an onChatMessage failure once per turn, where a recovered continueLastTurn reported it twice.
    • Recovery no longer calls an overridden continueLastTurn or waitUntilStable: an interrupted turn is retried or continued as attempts of its own run, and AIChatAgent warns once at start when a subclass overrides continueLastTurn (decide recovery in onChatRecovery).
    • When a recovered AIChatAgent reply is waiting on a client tool or approval, its recovery ends at once with chat:recovery:skipped and reason awaiting_client_interaction, and the client's answer starts an ordinary continuation.
    • In that case tabs are sent cf_agent_chat_recovering off before cf_agent_message_updated.
    • A stalled AIChatAgent stream whose recovery onChatRecovery declines sends tabs cf_agent_chat_recovering on and then off.
    • A turn cut off before the upgrade is carried onto the new chat module under its request id, with the recovery budget of a new turn.
    • A stopped reply that was waiting to be retried is stored before the next request's question, and every tab is told the request ended.
  • #3184 ab6072e Thanks @mattzcarey! - Chat turns.

    • Upgrade agents, @cloudflare/ai-chat and @cloudflare/think together. @cloudflare/ai-chat and @cloudflare/think require agents 0.35.0 or later. Released @cloudflare/ai-chat 0.12.x and @cloudflare/think 0.24.x can't run a turn on this agents, so agents/chat no longer keeps exports for them. TurnQueue, SubmitConcurrencyController, AbortRegistry, ResumableStream, ContinuationState, AutoContinuationController, buildInClauseStrings and enforceRowSizeLimit are removed, and an old pairing fails at bundle time with a missing export.
    • A message sent while a turn runs is stored when its own turn starts, so the transcript reads U1, A1, U2, A2.
    • Waiting messages are dropped only by a clear, and a cancelled or superseded one stays so across a restart (#2928).
    • A stop also drops waiting auto-continuations, an aborted result carries reason: "stopped" or "interrupted", and an autoContinue tool result answered just before a restart still continues the reply (#3101, #3142).
    • New events: chat:request:failed, chat:stream:stalled, chat:continuation:dropped, and Think's tool:result, tool:approval, message:cancel.
    • A tool answer that arrives while a continuation runs now schedules the next continuation, which starts one coalesce window after the running reply ends; a stop that drops it reports its own request id instead of null.
    • A tab that asks to resume right after answering a client tool is told to wait for the continuation, even when the answer is still being stored; it used to be told there was nothing to resume.
    • A resume request that names several requests gets the end of each one that ended, not only the newest, also when the tab is parked on a continuation or offered a pending error.
    • After a tool answer or an approval, the continuation's chunks reach each tab once, live; the tab that answered is no longer also sent a replay of them.
    • An AIChatAgent request whose onChatMessage returns no response ends with outcome: "skipped".
    • A clear keeps nothing of an AIChatAgent turn it reaches, and a request that was still waiting ends with outcome: "skipped".
    • An AIChatAgent turn that recovery gives up on reports its end to onChatResponse once, with status: "error" and the terminal message, after onExhausted.
    • AIChatAgent turns store their messages directly, so a persistMessages override no longer sees a turn's writes.
    • A request context over the row budget is no longer kept in memory.
    • A tab that reconnects learns how a request ended by naming it in its resume request, as the client does; a tab that names none is told of the newest end only when it was an error.
    • A reply that completed is kept as stored, and Think leaves the reasoning it ends in out of the model request only; a reply cut off in its reasoning is still removed. See Reasoning at the end of a reply.
  • #3184 ab6072e Thanks @mattzcarey! - Schedules, jobs and workflows.

    • Work cut off by a reset resumes within 5 s instead of 30, and survives a dropped alarm (#3028, #2977).
    • A failing job no longer retries forever and reaches its onJobError (#3022, #3023, #3032, #3025, #3007).
    • Jobs and getSchedule() work in sub-agents, and destroy() from a scheduled callback sticks (#3012, #3020, #3083).
    • A crashing fiber recovery hook no longer takes the agent down (#2970).
    • AgentWorkflow runs and stubs survive an Agent reset, and approveWorkflow() and rejectWorkflow() skip an overridden sendWorkflowEvent() (#3052, #2978).
    • deleteSubAgent() and a sub-agent's destroy() now empty the sub-agent's storage, and its own sub-agents' storage, on deployed Workers.

@cloudflare/[email protected]

Patch Changes

  • #3184 ab6072e Thanks @mattzcarey! - Agent tools and sub-agents.

    • Think.startAgentToolRun takes an optional signal.
    • A run cut off by a parent reset re-attaches to its child and ends once, or interrupted after 2 s, and a throwing onAgentToolFinish goes to onError.
    • A run whose child cannot stay up ends error, and a detached run without progress ends interrupted, not running (#3073, #2467).
    • A given-up detached run is no longer re-armed forever, and onMilestones gets a milestone reached before finishing (#2769, #3278).
    • Runs wait for their child's recovery and start in order, and aged-media eviction runs for every sub-agent (#3024, #3144, #2974).
    • Many sub-agents started at once no longer stall, and their work resumes when the root restarts (#3077, #3014, #3086).
    • Sub-agents work under a jurisdiction, keep socket frames in order, and no longer reset their tree's storage when upgrading old chat tables (#3085, #3181, #3215, #3192).
    • An AIChatAgent agent-tool run is its chat turn: one durable run, so a reset of the child resumes it and a cancel ends it at once, and runs a released version kept, or that were in flight across the upgrade, carry on.
  • #3184 ab6072e Thanks @mattzcarey! - Stored chat messages.

    • Before each turn, calls and approvals left pending earlier are failed (chat:transcript:repaired), and continueLastTurn() returns "awaiting-client" while a reply waits on a client.
    • Stored parts keep metadata, file names and steering messages, and a finished streaming tool stays in later turns (#3143, #3145).
    • A repeated tool result is a no-op, an early approval keeps the final input, and a failed store reaches onChatResponse as error (#2981).
  • #3184 ab6072e Thanks @mattzcarey! - Chat recovery.

    • Recovery work units (maxRecoveryWork, ctx.work) now count ten stored chunks each. See Recovery work units.
    • Rate-limit, transient and overflow errors are recognised without classifyChatError, and recovery honours Retry-After (up to 60 s).
    • An interrupted turn is skipped if the conversation moved on, else answered or continued once, and requests behind it run afterwards in order (#2922).
    • Long conversations are no longer sealed with work_budget_exceeded (#3055).
    • A stop during recovery always ends the request aborted, and the next message no longer waits out its backoff (#3027).
    • A rebuilt reply no longer repeats parts, and a tool that only reported progress before a reset is reported interrupted (#2979).
    • An agent-tool run on a sub-agent whose chat recovery gave up before running a turn now ends error; it stayed running.
    • chatRecovery.stableTimeoutMs is deprecated and has no effect: a recovered turn is the next attempt of the turn's own run, so there is no wait for a stable chat before it continues.
    • An AIChatAgent turn that is recovered keeps its request id and ends once, so a tab no longer sees an end with outcome: "recovering" followed by a new request.
    • saveMessages and continueLastTurn resolve once recovery has finished the turn, with how it ended, instead of with reason: "interrupted".
    • onError hears of an onChatMessage failure once per turn, where a recovered continueLastTurn reported it twice.
    • Recovery no longer calls an overridden continueLastTurn or waitUntilStable: an interrupted turn is retried or continued as attempts of its own run, and AIChatAgent warns once at start when a subclass overrides continueLastTurn (decide recovery in onChatRecovery).
    • When a recovered AIChatAgent reply is waiting on a client tool or approval, its recovery ends at once with chat:recovery:skipped and reason awaiting_client_interaction, and the client's answer starts an ordinary continuation.
    • In that case tabs are sent cf_agent_chat_recovering off before cf_agent_message_updated.
    • A stalled AIChatAgent stream whose recovery onChatRecovery declines sends tabs cf_agent_chat_recovering on and then off.
    • A turn cut off before the upgrade is carried onto the new chat module under its request id, with the recovery budget of a new turn.
    • A stopped reply that was waiting to be retried is stored before the next request's question, and every tab is told the request ended.
  • #3184 ab6072e Thanks @mattzcarey! - Chat turns.

    • Upgrade agents, @cloudflare/ai-chat and @cloudflare/think together. @cloudflare/ai-chat and @cloudflare/think require agents 0.35.0 or later. Released @cloudflare/ai-chat 0.12.x and @cloudflare/think 0.24.x can't run a turn on this agents, so agents/chat no longer keeps exports for them. TurnQueue, SubmitConcurrencyController, AbortRegistry, ResumableStream, ContinuationState, AutoContinuationController, buildInClauseStrings and enforceRowSizeLimit are removed, and an old pairing fails at bundle time with a missing export.
    • A message sent while a turn runs is stored when its own turn starts, so the transcript reads U1, A1, U2, A2.
    • Waiting messages are dropped only by a clear, and a cancelled or superseded one stays so across a restart (#2928).
    • A stop also drops waiting auto-continuations, an aborted result carries reason: "stopped" or "interrupted", and an autoContinue tool result answered just before a restart still continues the reply (#3101, #3142).
    • New events: chat:request:failed, chat:stream:stalled, chat:continuation:dropped, and Think's tool:result, tool:approval, message:cancel.
    • A tool answer that arrives while a continuation runs now schedules the next continuation, which starts one coalesce window after the running reply ends; a stop that drops it reports its own request id instead of null.
    • A tab that asks to resume right after answering a client tool is told to wait for the continuation, even when the answer is still being stored; it used to be told there was nothing to resume.
    • A resume request that names several requests gets the end of each one that ended, not only the newest, also when the tab is parked on a continuation or offered a pending error.
    • After a tool answer or an approval, the continuation's chunks reach each tab once, live; the tab that answered is no longer also sent a replay of them.
    • An AIChatAgent request whose onChatMessage returns no response ends with outcome: "skipped".
    • A clear keeps nothing of an AIChatAgent turn it reaches, and a request that was still waiting ends with outcome: "skipped".
    • An AIChatAgent turn that recovery gives up on reports its end to onChatResponse once, with status: "error" and the terminal message, after onExhausted.
    • AIChatAgent turns store their messages directly, so a persistMessages override no longer sees a turn's writes.
    • A request context over the row budget is no longer kept in memory.
    • A tab that reconnects learns how a request ended by naming it in its resume request, as the client does; a tab that names none is told of the newest end only when it was an error.
    • A reply that completed is kept as stored, and Think leaves the reasoning it ends in out of the model request only; a reply cut off in its reasoning is still removed. See Reasoning at the end of a reply.
  • #3184 ab6072e Thanks @mattzcarey! - Clients.

    • useAgent and AgentClient wait up to 15 s for the handshake (was 4 s) and spread their reconnects.
    • A tab joining a running reply gets live chunks, and each request's end once, also after a stop or reconnect (#2703, #3068, #3074, #3135, #3064).
    • After a reconnect, useAgentChat shows an accepted turn as busy, and Stop cancels it (#2741).
    • A client reconnecting to a sub-agent before its old socket closed gets frames (#2709).

@cloudflare/[email protected]

Patch Changes

  • #3129 f0a1bb7 Thanks @mattzcarey! - Types generated from JSON Schema group unions correctly, and a type list such as ["array", "null"] keeps its items and properties.

@cloudflare/[email protected]

Patch Changes

  • #3098 e44ff29 Thanks @mattzcarey! - Python packages with native extensions get wheels for the Python the compatibility date picks, not always 3.12.

@cloudflare/[email protected]

Patch Changes

devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 775a2f3 to 65259e5 Compare November 22, 2026 09:22
devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 10 times, most recently from 3029025 to abbd619 Compare November 22, 2026 12:50
devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 5ac36e7 to 917d878 Compare November 22, 2026 13:00
devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 10 times, most recently from dac5f74 to 130f81b Compare November 22, 2026 17:16
devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 33a4dcd to c01c005 Compare November 22, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants