Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .changeset/ai-chat-give-up-broadcast-first.md

This file was deleted.

27 changes: 0 additions & 27 deletions .changeset/chat-auto-continuation-event-driven-barrier.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/chat-recovering-on-connect.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/chat-recovery-progress-credit-convergence.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/chat-row-size-structured-compaction.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/chat-stream-stall-watchdog.md

This file was deleted.

18 changes: 0 additions & 18 deletions .changeset/orphan-persist-reconcile-helper.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/orphan-persist-store-interface.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/recovery-stream-resolution-newest-row.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/think-row-size-compaction-annotations.md

This file was deleted.

37 changes: 37 additions & 0 deletions packages/agents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# @cloudflare/agents

## 0.16.3

### Patch Changes

- [#1788](https://github.com/cloudflare/agents/pull/1788) [`3b2af54`](https://github.com/cloudflare/agents/commit/3b2af5444af5002cd54fd493452e03c721d31999) Thanks [@threepointone](https://github.com/threepointone)! - Converge recovery forward-progress crediting between `AIChatAgent` and `Think`.

Both hosts now credit the recovery no-progress counter through one shared, host-agnostic rule (`shouldCreditStreamProgress`): a progress milestone (a started text/reasoning segment or a settled tool input/output) credits unconditionally, and mid-segment streaming deltas (`text-delta`/`reasoning-delta`/`tool-input-delta`) credit at most once per throttle window via a per-isolate `StreamProgressCreditThrottle`. Previously `AIChatAgent` credited only on chunk-type milestones while `Think` credited on its flush cadence, so a long single content segment spanning repeated crashes could read as "no progress" under `AIChatAgent` and false-fire its `no_progress_timeout`. The new rule is never coarser than either host's prior cadence, so it can only delay or avoid a false no-progress timeout, never hasten give-up.

- [#1788](https://github.com/cloudflare/agents/pull/1788) [`3b2af54`](https://github.com/cloudflare/agents/commit/3b2af5444af5002cd54fd493452e03c721d31999) Thanks [@threepointone](https://github.com/threepointone)! - Export `reconcileOrphanPartial` from `agents/chat`.

This is the shared primitive that merges a freshly-reconstructed orphaned stream
partial onto an assistant message that already owns its target id (an early
persist at tool-approval time, or a continuation resuming the prior assistant
message). It keeps all existing parts, appends only reconstructed parts whose
`toolCallId` is not already present (so a recovery replay never duplicates a
tool call), and overlays incoming metadata onto existing — preserving an
in-place tool result that lives only in storage rather than letting a replayed
chunk re-advance it. `@cloudflare/ai-chat`'s orphan-persist path now uses it;
hosts whose orphan persist only runs at stream finalize don't need it (the
shared reconstruction is already idempotent by `toolCallId`).

Additive export only — no behavior change to existing APIs.

- [#1788](https://github.com/cloudflare/agents/pull/1788) [`3b2af54`](https://github.com/cloudflare/agents/commit/3b2af5444af5002cd54fd493452e03c721d31999) Thanks [@threepointone](https://github.com/threepointone)! - Export the `OrphanPersistStore<M = UIMessage>` type from `agents/chat`.

This is the minimal message store the chat-recovery orphan-persist write goes
through — the write subset of `SessionProvider` (the `getMessage`,
`appendMessage`, and `updateMessage` methods). It is parameterized over the
host's message type so the seam itself is not AI-SDK-specific: the AI-SDK chat
hosts (`@cloudflare/ai-chat`, `@cloudflare/think`) instantiate it at the
`UIMessage` default, while `SessionProvider` satisfies it at its own
`SessionMessage`. Both hosts now route their orphan-persist write through a host
adapter typed against this interface, turning the previous by-convention
alignment into a type-enforced contract.

Additive export only — no behavior change to existing APIs.

## 0.16.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"durable objects"
],
"type": "module",
"version": "0.16.2",
"version": "0.16.3",
"license": "MIT",
"repository": {
"directory": "packages/agents",
Expand Down
Loading