Repository navigation
Chat: a turn stopped during its retry backoff settles its stream (4.iii 6f, parity 8, draft) - #3322
Closed
mattzcarey wants to merge 1 commit into
Closed
mattzcarey wants to merge 1 commit into
mattzcarey wants to merge 1 commit 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-6f8
branch
from
November 26, 2026 23:53
222dae6 to
90dc99b
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 26, 2026 23:53
0976214 to
d12dcba
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 00:02
90dc99b to
36fb009
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 00:02
d12dcba to
2207764
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 00:13
36fb009 to
d0bc9a3
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 00:13
2207764 to
7242bbd
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 00:23
d0bc9a3 to
2275378
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 00:23
7242bbd to
912b8f8
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 00:28
2275378 to
5feb357
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 00:28
912b8f8 to
63d0119
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 00:44
5feb357 to
fb426e8
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 00:44
63d0119 to
9acb735
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 00:49
fb426e8 to
fc5a907
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 00:49
9acb735 to
36282b5
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 01:01
fc5a907 to
d44a292
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 01:01
36282b5 to
838b440
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 01:07
d44a292 to
9a1be21
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 01:07
838b440 to
8b8b7e2
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 01:20
9a1be21 to
4ab1b36
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 01:20
8b8b7e2 to
ccf1bbf
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 01:30
4ab1b36 to
b7935a5
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 01:30
ccf1bbf to
7cc6599
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 01:39
b7935a5 to
612294e
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 01:39
7cc6599 to
add603d
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 02:01
612294e to
64826c8
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 02:01
add603d to
a311aaf
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 02:04
64826c8 to
ffe1b2b
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 02:04
a311aaf to
ea9da78
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 02:07
ffe1b2b to
a24cde0
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 02:07
ea9da78 to
ef04339
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 02:13
a24cde0 to
f329c07
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 02:13
ef04339 to
530c237
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 02:27
f329c07 to
f2f8e5e
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 02:27
530c237 to
16c91c2
Compare
…ff settles its stream
mattzcarey
force-pushed
the
slim/chat-fn-6f8
branch
from
November 27, 2026 04:12
f2f8e5e to
cdf3329
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f9
branch
from
November 27, 2026 04:12
16c91c2 to
3197c8c
Compare
Member
Author
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 8, stacked on #3316.
A turn cut off by a transient error waits out its retry backoff as a pending Tasks run with its stream open. A cancel or clear in that window ends the run without entering the handler again, so nothing settled the stream, and the streamed text was never stored (turn-task's note on #3289).
cancelTurnandclearChatnow read such a turn first (retryingTurn: the run ispendingwith wait reasonretry, plus its base and discarded checkpoints and its input) and settle it after the cancel:In both cases the stream is closed.
Tests: a stop during the backoff stores "Part" and the stream is no longer
streaming; a clear during the backoff leaves an empty transcript and a settled stream. Both fail without the change.Cost: a cancel does one run lookup first; a clear does one lookup per waiting turn of the lane. The hot path is unchanged.