Skip to content

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
slim/harness-A-successors-3from
slim/harness-A-successors-5
Closed

mattzcarey wants to merge 1 commit into
slim/harness-A-successors-3from
slim/harness-A-successors-5

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

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), with hangModelAtConnectForTest). 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.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 39b27e9

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 no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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@3449

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 39b27e9

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (e2bbd7cb → 39b27e9f, workflow run)

@mattzcarey

Copy link
Copy Markdown
Member Author

Folded into #3455 (one PR for group A's successors, per Matt's drain rule). The branch stays.

@mattzcarey mattzcarey closed this Nov 27, 2026
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