Skip to content

fix: implement pending resume connections handling in AIChatAgent#795

Merged
threepointone merged 1 commit into
cloudflare:mainfrom
duz52:main
Jan 28, 2026
Merged

fix: implement pending resume connections handling in AIChatAgent#795
threepointone merged 1 commit into
cloudflare:mainfrom
duz52:main

Conversation

@duz52

@duz52 duz52 commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

Fix resumable streaming ordering: resuming connections no longer receive live chunks before sending ACK.

Track pending resume connections on the server and exclude them from live broadcasts until ACK, then replay stored chunks.

Added a unit test covering “no live chunks before ACK” behavior.

@changeset-bot

changeset-bot Bot commented Jan 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e2fecc9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cloudflare/ai-chat Patch
agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@duz52 duz52 changed the title feat: implement pending resume connections handling in AIChatAgent fix: implement pending resume connections handling in AIChatAgent Jan 25, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jan 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@795

commit: e2fecc9

@threepointone
threepointone merged commit 99cbca0 into cloudflare:main Jan 28, 2026
3 of 6 checks passed
@github-actions github-actions Bot mentioned this pull request Jan 28, 2026
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.

2 participants