Skip to content

test(think): a public successor for a regeneration a reset cut off (group A, #2028) - #3454

Closed
mattzcarey wants to merge 1 commit into
slim/harness-A-successors-6from
slim/harness-A-successors-7
Closed

mattzcarey wants to merge 1 commit into
slim/harness-A-successors-6from
slim/harness-A-successors-7

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

A group A successor for #2028, through a real reset: a regeneration that a reset cuts off is finished on its own new branch, and the earlier answer is kept. Theme (d). Stacked on #3452. Tests only, no changeset.

"finishes a regeneration a reset cut off on its new branch, keeping the earlier answer":

  1. A tab asks a question, and the turn completes.
  2. The tab sends a regenerate-message for the same user message, with a slow model. After two chunks, the isolate is reset with ctx.abort.
  3. A new tab wakes the agent, and its start recovers the regeneration.
  4. Once the agent is stable, the user message has two branches: the earlier answer, and the regenerated one, whose text starts with what the tab saw ("one …").

It passes on both configs.

Class-only row (1): onChatRecovery › "continues a regeneration interrupted after partial output on its new branch (#2028)". It builds the interrupted regeneration from seeded private stream rows and recovers it by hand. Its successor is the test above.

"retries a pre-stream interrupted regeneration as a new branch" (5443) needs the same reset, before the first chunk. It's next.

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: fc5197d

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: fc5197d

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (303217f2 → fc5197d4, workflow run)

…inished on its new branch, the earlier answer kept
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-6 branch from 83198b5 to 303217f Compare November 27, 2026 10:44
@mattzcarey
mattzcarey force-pushed the slim/harness-A-successors-7 branch from 7ca70c5 to fc5197d Compare November 27, 2026 10:44
@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