Skip to content

test(think): a public successor for the interrupted-attempts bound through real resets (group A) - #3452

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

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

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

A group A successor for the interrupted-attempts bound, through real resets, per arch's ruling ("arch ruling (std A progress)"). Stacked on #3449. Tests only, no changeset.

"recovers past maxAttempts across resets that each follow progress, until maxInterruptedAttempts": with chatRecovery set to { maxAttempts: 1, maxInterruptedAttempts: 3 }:

  1. A tab starts a slow reply. The test waits until the tab has new text (progress), then resets the isolate with ctx.abort.
  2. A new tab wakes the agent, and its start recovers the turn.
  3. This repeats. More than one reset is recovered, which is past maxAttempts, because each attempt made progress. Recovery then stops with chat:recovery:exhausted, reason interrupted_attempts_exceeded, a bound progress doesn't reset.

It passes on the class, 2/2. On the shell it fails until A-4.

Fixtures:

  • keepAcrossResetsForTest keeps a slow model and chatRecovery in the agent's storage.
  • ThinkTestAgent's chatRecovery field reads that storage when the agent is built, so recovery on the next start uses it.
  • lastAssistantTextForTest.

The pool can drive these resets, so this row needs no mechanics-only fallback. The class-only rows for 4634, 4765 and 4803 come once the shell passes their successors. The rows that name beginIncident's debounce stay mechanics-only, as #3445 says.

On the harness config: it passes with A-4 (the interrupted-attempts bound in the turn definition's budget).

On the harness config: it passes with A-4, the interrupted-attempts bound in the turn definition's budget.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 303217f

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 303217f

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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

…eal resets, each after progress, go past maxAttempts and stop at maxInterruptedAttempts
@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