Repository navigation
test(think): a public successor for the pre-stream retry after a real reset (group A) - #3449
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/harness-A-successors-3
branch
from
November 27, 2026 10:33
6565b0b to
1bfbab7
Compare
mattzcarey
force-pushed
the
slim/harness-A-successors-5
branch
from
November 27, 2026 10:34
117165a to
4190ebd
Compare
mattzcarey
force-pushed
the
slim/harness-A-successors-3
branch
from
November 27, 2026 10:43
1bfbab7 to
e2bbd7c
Compare
mattzcarey
force-pushed
the
slim/harness-A-successors-5
branch
from
November 27, 2026 10:43
4190ebd to
39b27e9
Compare
Member
Author
|
Folded into #3455 (one PR for group A's successors, per Matt's drain rule). The branch stays. |
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 A successors, theme (d), first part: a turn that a real reset cut off before its first chunk is answered again, with its user message once. Stacked on #3445. Tests only, no changeset.
The test resets the isolate while the model call is still waiting on the provider, before any stream (
resetDuringTurn(…, 0), withhangModelAtConnectForTest). The next start recovers the turn and retries it, and the test waits until the agent is stable. The transcript then holds the user message once and a non-empty assistant answer. It passes on both configs.Class-only row (1): onChatRecovery › "retries a pre-stream interrupted user turn by default without duplicating the user message". It builds the interrupted turn from a seeded private fiber and recovers it by hand. Its successor is the test above.
Still to do in (d): regeneration as a new branch (5443, 5499), which needs a socket regenerate before the reset, and the opened stream with no content (5632).
On the harness config: it passes now.
On the harness config: it passes now.