Minor Changes
-
#3988
17862acThanks @mattzcarey! - New and changed APIs. See the docs.- Experimental
ThinkHarness(agents/harness/think) replacesAiSdkHarness, which is removed; it takesextensions(Code Mode) and atracingoption. - Experimental
agents/tasks:stateis nowstatus,failediserror,cancelledisaborted,waitingispending; stored runs migrate. - Tasks, Sessions and
agents/streamstake an optionalname, for more than one in an object. - Experimental
agents/context:freezeSystemPrompt,refreshSystemPromptandremindermove fromContextBlocksto the newContext. - Sessions:
addCompaction()throws on an anchor that can never apply, and a read from the root throws past 200,000 visible messages. - Browser:
CdpConnectionhason()andwaitFor(),send()is typed, andBrowsertakes ahostObserver. - One SQLite row holds up to 8 MB (was 2 MB);
ROW_MAX_BYTESandenforceRowSizeLimitare removed fromagents/chat(useROW_VALUE_BYTES). getAgentToolChunksanswers a page at a time: pass the lastafterSequenceuntil a call returns no chunks.- Agent tools:
eventDelivery: "terminal"works for detached runs, andThink.startAgentToolRuntakes asignal. - On connect a tab is sent at most 10,000 stored chunks of finished agent-tool runs, after the handshake; a longer run shows its status and summary.
- Experimental
agents/observability/pi:piTracing()records a Pi harness's runs as OpenTelemetry GenAI spans. - Pi harness: the peer ranges are
~1.8.0; the Pi session store migrates when it opens, so roll forward. - OpenCode harness: opencode 2.4.3; upgrade
@opencode/sdkand@opencode/pluginto 2.2.3 or later with it. useAgentandAgentClientwait up to 15 s for the handshake (was 4 s).- A Worker that extends Think bundles without
just-bash; install it only for Bash skill scripts.
- Experimental
-
#3988
17862acThanks @mattzcarey! - Upgradeagents,@cloudflare/ai-chatand@cloudflare/thinktogether. See Upgrading from ai-chat 0.12 and Upgrading Think from 0.24.@cloudflare/ai-chatand@cloudflare/thinkneedagents0.35.0 or later;agents/chatis internal and exports less.- An agent from the previous release migrates its storage in place at its first start; rolling back afterwards is not supported.
Patch Changes
-
#3988
17862acThanks @mattzcarey! - Fixes.- Work cut off by a reset resumes within seconds, a failing job stops retrying and reaches
onJobError, and jobs work in sub-agents. AgentWorkflowruns and stubs, the MCP RPC transport andgetAgentByNamesurvive an Agent reset.- Sub-agents: many started at once no longer stall, they work under a jurisdiction, and
deleteSubAgent()empties their storage. - Agent-tool runs cut off by a reset re-attach to their child and end once; a run whose child cannot stay up ends
error. - A tab joining a running reply gets live chunks and each request's end once, also after a stop or a reconnect.
- The MCP client refuses more private addresses,
.internalnames and URLs with credentials. - Voice: a provider's stream error sent as a plain object reaches a voice client as the generic stream error on newer AI SDK 7 releases.
- x402: payment caps, offer selection and UTF-8 tokens are fixed; with
@x402/core2.23+ upgrade@x402/coreand@x402/evmtogether.
- Work cut off by a reset resumes within seconds, a failing job stops retrying and reaches