Skip to content

test(think): public successors for onChatRecovery's continue/persist false after a reset (group A) - #3443

Closed
mattzcarey wants to merge 3 commits into
slim/harness-A-successors-2from
slim/harness-A-successors-4
Closed

mattzcarey wants to merge 3 commits into
slim/harness-A-successors-2from
slim/harness-A-successors-4

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Group A's next batch of successors: what a turn a reset interrupted leaves behind when onChatRecovery declines, through public behaviour on both configs. Theme (b) in harness's order. Stacked on #3437. Tests only, no changeset.

Each test resets the isolate mid-reply with ctx.abort, as an eviction does, using resetDuringTurn, which now lives at file scope. The next start recovers the turn and asks onChatRecovery. The answer was stored with a new fixture, answerRecoveryForTest, in the agent's storage, so the isolate after the reset gives it. The test then waits until the agent is stable and reads the transcript.

Successor Class Harness-backed
"keeps the partial but runs no continuation when onChatRecovery says continue: false" passes passes
"keeps nothing and runs nothing when onChatRecovery says persist: false, continue: false" passes fails (persist: false is A-5)

Class-only row (1): onChatRecovery › "{ continue: false } persists but does not schedule continuation". It builds its interrupted turn from seeded private stream rows and recovers it by hand. Its successor is the reset test above, which passes on both configs. "{ persist: false, continue: false } skips both" gets its row when its successor passes on the shell.

Batch 3 (progress resetting the budget) is held. On Think, what an app sees contradicts the promise: the attempt number resets on progress, but the give-up counts every interruption. The finding is with the deputy.

On the harness config: "continue: false" passes now; "persist: false, continue: false" passes with A-5.

On the harness config: "continue: false" passes now; "persist: false, continue: false" passes with A-5.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5ffc62a

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

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (d3ee9124 → 36cdf992, workflow run)

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 36cdf99

@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