Skip to content

fix(think,ai-chat): raise agents peer floor to >=0.25.0 - #2408

Merged
threepointone merged 1 commit into
mainfrom
fix/chat-agents-peer-025
Sep 29, 2026
Merged

threepointone merged 1 commit into
mainfrom
fix/chat-agents-peer-025

Conversation

@threepointone

@threepointone threepointone commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What

Raise the agents peer dependency floor to >=0.25.0 in both @cloudflare/think and @cloudflare/ai-chat.

Package Before After
@cloudflare/think >=0.24.0 <1.0.0 >=0.25.0 <1.0.0
@cloudflare/ai-chat >=0.23.0 <1.0.0 >=0.25.0 <1.0.0

Why

Addresses the Devin review finding on the release PR #2335 (discussion_r4110536404): "Chat releases accept incompatible agents versions."

Both chat packages now import helpers from agents/chat that first ship in agents@0.25.0:

  • isDurableObjectResetError
  • retryAfterSeconds
  • isLateToolInputChunk

think imports all three (packages/think/src/think.ts); ai-chat imports isDurableObjectResetError (packages/ai-chat/src/index.ts).

With the old peer floors, a consumer could install these new chat releases against an older agents (e.g. think@0.20.0 + agents@0.24.0) that satisfies the range but does not export those helpers, failing at runtime. The workspace-linked release build doesn't catch this because it resolves the local agents, not a published one. Requiring >=0.25.0 keeps the published package combinations compatible.

@cloudflare/voice and hono-agents do not import these helpers, so their peer ranges are unchanged.

Changeset

Included (patch for both packages).

Made with Cursor


Devin Review

Both packages import helpers from agents/chat (isDurableObjectResetError, retryAfterSeconds, isLateToolInputChunk) that first ship in agents@0.25.0. The previous peer floors allowed installing these releases against an agents version missing those helpers, failing at runtime.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a1b68dc

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

This PR includes changesets to release 3 packages
Name Type
@cloudflare/think Patch
@cloudflare/ai-chat Patch
@cloudflare/agent-think 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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@agent-think

agent-think Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (11f87b53 → a1b68dcb, workflow run)

@threepointone
threepointone merged commit 6c8f85a into main Sep 29, 2026
7 checks passed
@threepointone
threepointone deleted the fix/chat-agents-peer-025 branch September 29, 2026 08:37
@github-actions github-actions Bot mentioned this pull request Oct 2, 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.

1 participant