Skip to content

[Agents] Close documentation gaps vs upstream cloudflare/agents#29219

Closed
whoiskatrin wants to merge 6 commits intoproductionfrom
docs/agents-gaps-2026-03-23
Closed

[Agents] Close documentation gaps vs upstream cloudflare/agents#29219
whoiskatrin wants to merge 6 commits intoproductionfrom
docs/agents-gaps-2026-03-23

Conversation

@whoiskatrin
Copy link
Copy Markdown
Contributor

@whoiskatrin whoiskatrin commented Mar 23, 2026

Summary

Closes documentation gaps identified by auditing the upstream cloudflare/agents source against the existing Cloudflare developer docs.

Changes

New pages

  • resumable-streaming.mdx — Documents automatic SQLite chunk buffering for mid-stream reconnects, the three-frame resume protocol (CF_AGENT_STREAM_RESUME_REQUEST / CF_AGENT_STREAM_RESUMING / CF_AGENT_STREAM_RESUME_ACK), replay: true flag on replayed chunks, resume: false opt-out, and GC timings.
  • guides/client-tools-continuation.mdx — Guide for the auto-continuation flow when client-side tools return results.

Updated pages

File What changed
chat-agents.mdx Added sanitizeMessageForPersistence, fixed setMessages return type, added turn coordination helpers (waitUntilStable, resetTurnState, hasPendingInteraction), added tools option to useAgentChat options table
queue-tasks.mdx Fixed queue() signature to include options?: { retry?: RetryOptions } third param; corrected step 5 description ("Automatic retries"); replaced manual re-queue error handling with built-in retry pattern
mcp-client-api.mdx Corrected URL security blocklist — loopback is allowed for local dev; added unspecified (0.0.0.0/::) and IPv6 unique-local (fc00::/7) to blocked list
human-in-the-loop.mdx Added 5-pattern decision table and decision tree; added full needsApproval server+client examples; added onToolCall client-side execution pattern; added state type patterns (PendingApproval, ApprovalRecord, ApprovalState); added multi-approver pattern; added escalation scheduling example
agent-class.mdx Added this.keepAlive/this.keepAliveWhile section; added static class options table (hibernate, sendIdentityOnConnect, retry)
store-and-sync-state.mdx Added onStateUpdateonStateChanged deprecation/rename notice
websockets.mdx Added server-level onError(error) overload; added shouldSendProtocolMessages to lifecycle table; added server property to Connection object table; added isConnectionProtocolEnabled to connection management table; added Agent properties table (this.name, this.state, this.env, this.ctx)

Notes

  • All new files under src/content/docs/agents/ were staged with git add -f due to .gitignore line 46 matching agents/.
  • Migration guides were explicitly excluded.

@github-actions github-actions bot added product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/l labels Mar 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/agents/ @irvinebroque, @rita3ko, @elithrar, @thomasgauvin, @threepointone, @whoiskatrin, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents, @cloudflare/dev-plat-leads

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 23, 2026

Preview URL: https://3390ff7a.preview.developers.cloudflare.com
Preview Branch URL: https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/agents/concepts/human-in-the-loop/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/concepts/human-in-the-loop/
https://developers.cloudflare.com/agents/guides/push-notifications/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/guides/push-notifications/
https://developers.cloudflare.com/agents/api-reference/voice-agents/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/voice-agents/
https://developers.cloudflare.com/agents/guides/client-tools-continuation/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/guides/client-tools-continuation/
https://developers.cloudflare.com/agents/api-reference/chat-agents/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/chat-agents/
https://developers.cloudflare.com/agents/api-reference/workspace/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/workspace/
https://developers.cloudflare.com/agents/api-reference/client-sdk/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/client-sdk/
https://developers.cloudflare.com/agents/api-reference/resumable-streaming/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/resumable-streaming/
https://developers.cloudflare.com/agents/api-reference/queue-tasks/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/queue-tasks/
https://developers.cloudflare.com/agents/api-reference/schedule-tasks/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/schedule-tasks/
https://developers.cloudflare.com/agents/api-reference/agents-api/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/agents-api/
https://developers.cloudflare.com/agents/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/
https://developers.cloudflare.com/agents/api-reference/websockets/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/websockets/
https://developers.cloudflare.com/agents/concepts/agent-class/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/concepts/agent-class/
https://developers.cloudflare.com/agents/api-reference/mcp-client-api/ https://docs-agents-gaps-2026-03-23.preview.developers.cloudflare.com/agents/api-reference/mcp-client-api/

@github-actions
Copy link
Copy Markdown
Contributor

Hey there, we've marked this pull request as stale because there's no recent activity on it. This label helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant).

@threepointone
Copy link
Copy Markdown
Contributor

closing this one for #29764, all incorporated there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/l stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants