Skip to content

ThinkHarness: answer turns on AI SDK 6 - #3359

Merged
mattzcarey merged 1 commit into
mainfrom
slim/harness-ai6
Nov 27, 2026
Merged

mattzcarey merged 1 commit into
mainfrom
slim/harness-ai6

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

ThinkHarness streamed each model call's reply through the standalone toUIMessageStream and result.stream, which only AI SDK 7 has. On AI SDK 6, which agents supports as a peer, every turn failed with "toUIMessageStream is not a function" and left only the user's message. It now uses the result's own toUIMessageStream() method, which 6 and 7 both have.

H7 (#3331) found this: its new harness-actions tests fail in the think (ai@6) job. The existing harness-backed Think tests never noticed, because they only checked events or swallowed the turn's error. prefix-changed.test.ts now also checks that the turn answered. Against an AI SDK 6 install, it fails before the fix and passes after, and H7's harness-actions tests pass too.

Validated: harness-think 142/142 on AI SDK 7, plus prefix-changed on both majors. The change is one call. Cost: none.


Devin Review

@changeset-bot

changeset-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 73c682a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 2 packages
Name Type
agents Minor
@cloudflare/agent-think Patch

Click here to learn what changesets are, and how to add one.

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@3359

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@3359

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@3359

hono-agents

npm i https://pkg.pr.new/hono-agents@3359

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@3359

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@3359

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@3359

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@3359

commit: 73c682a

@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 found 1 potential issue.

Devin Review

@agent-think

agent-think Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (9492a1af → 73c682ad, workflow run)

@mattzcarey
mattzcarey merged commit 40537ef into main Nov 27, 2026
28 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-ai6 branch November 27, 2026 03:21
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