Repository navigation
Chat: a tool result that arrives mid-stream joins the reply (4.iii 6f, parity 2, draft) - #3310
Closed
mattzcarey wants to merge 2 commits into
Closed
mattzcarey wants to merge 2 commits into
mattzcarey wants to merge 2 commits into
Conversation
|
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 ( |
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 26, 2026 23:33
cb0c93d to
0603071
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f3
branch
from
November 26, 2026 23:35
9918b2c to
e563a82
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 26, 2026 23:45
0603071 to
65c57ff
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f3
branch
from
November 26, 2026 23:46
e563a82 to
71f5009
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 26, 2026 23:52
65c57ff to
8e8db3f
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f3
branch
from
November 26, 2026 23:52
71f5009 to
b2c0b45
Compare
…bmitTurn and chatDispatch
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 00:01
8e8db3f to
6028681
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f3
branch
from
November 27, 2026 00:01
b2c0b45 to
cd1fd40
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 00:13
6028681 to
ec7f9ee
Compare
Member
Author
|
Folded into #3298 (it fixes a regression rv-1 and Devin found there). The branch stays for reference. |
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.
DRAFT, 4.iii 6f parity step 2, stacked on #3308. A client's tool result that arrives while the reply that asked for it is still streaming joins that reply. The turn definition registers its live turn (per session, in memory, per Streams capability) while it streams.
answerToolfinds the call there, injectstool-output-available(ortool-output-error) into the turn's pipeline, so it's stored, sent and part of the reply like the model's chunks. WithautoContinueit then queues atool-answerturn, which waits behind the streaming one in the lane and continues the stored reply. A reset drops the live entry; the answer then finds the call in the stored reply, as before. Test: the result lands mid-stream, the stored reply has the tool's output, and the continuation runs after it.onChatResponsewith owed calls after a reset is already covered by #3289 (a replay after the cutover reports the stored result again).Cost: one in-memory map entry per streaming turn; no storage.