Repository navigation
harness-backed Think: onChunk parts for tool progress, approved calls and invalid calls (group G) - #3438
Closed
mattzcarey wants to merge 14 commits into
Closed
harness-backed Think: onChunk parts for tool progress, approved calls and invalid calls (group G)#3438mattzcarey wants to merge 14 commits into
mattzcarey wants to merge 14 commits into
Conversation
…step usage reach the step loop; beforeTurn's rewritten messages, a step's system message, tool time and the turn's signal as in Think
…ol-result part, and a delta's text
…result and error named with tool and input, and input deltas as delta, as the AI SDK's stream parts
…ll's parsed output is the operation's; runTurn's wait mode returns it
…m the think_final_answer tool, which is never stored
…en continueLastTurn, as in Think
…en onto the reply as in Think
…ser message; activeTurnMetadata reads it, as on Think
…mpty channel name stamps nothing, as on Think
…e turn, as on Think; an overflow reaches onChatError classified
…p whose previous one crossed the budget, as on Think
…eets it, as in Think
…so a classifier can stop it; a stopped turn isn't compacted
…s, tool progress included; an approved call's result is named from the transcript; an unparsable call is an invalid tool-call; a promise of an iterable doesn't stream
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
Member
Author
mattzcarey
force-pushed
the
slim/harness-score-hooks-15
branch
from
November 27, 2026 11:05
74922b9 to
35e9e83
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Group G, stacked on #3431. Devin's four threads on #3396, which is approved, fixed here instead of there:
onChunk. The harness gives a streaming tool's preliminary results to the host'sonChunkhook as well as to its observers, and each is emitted once. As in the AI SDK, only an async generator's own iterable streams: anexecutethat returns a promise of one collapses to its last value, with no progress (executeTool).tool-result/tool-errornow taketoolNameandinputfrom the transcript's tool part.onChunk, as on Think.tool-input-error) is atool-callwithinvalid: trueand the error, as the AI SDK reports it.Cost: a transcript scan for a result whose call this operation didn't stream. That only happens for approved calls.
Score on the harness config:
hooks.test.ts111 → 112 of 154 ("preserves preliminary chunks for an async-generator execute"; "collapses a Promise execute" still passes). The agentsharness.test.tspasses 125 of 125.Draft: the approved-call naming still needs its own test on both configs.