Skip to content

test(think): the repeated-stall fixture waits for the attempt an open incident still owes - #3418

Merged
mattzcarey merged 2 commits into
mainfrom
slim/turn-task-stall-sealed-test
Nov 27, 2026
Merged

mattzcarey merged 2 commits into
mainfrom
slim/turn-task-stall-sealed-test

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Test only. Think's "keeps an incident given up when the recovered turn that gave up returns" failed once in CI (on #3331, which does not touch it) with expected [ 'scheduled' ] to deeply equal [ 'exhausted' ].

The fixture testRepeatedStallAfterProgressForTest runs recovery attempts until none waits. An attempt that ends schedules the next one just after it, so there is a moment with the incident scheduled and no attempt waiting yet. The loop read that moment as the end and returned an incident that was still open.

Now, when no attempt waits, the fixture looks at the incidents: it stops only when none is scheduled or attempting, and otherwise waits for the owed attempt to appear (bounded at five seconds) and carries on.

I could not reproduce the failure locally (the test passed before and passes after, three runs each), so this is a fix by reading the failure and the loop, not a demonstrated one. The other test on the same fixture ("keeps recovering a stream that stalls again after making progress") is unchanged in outcome.


Devin Review

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3fcea33

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 3fcea33

@agent-think

agent-think Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (aae25095 → 3fcea33e, workflow run)

@mattzcarey
mattzcarey merged commit ab3aa74 into main Nov 27, 2026
22 checks passed
@mattzcarey
mattzcarey deleted the slim/turn-task-stall-sealed-test branch November 27, 2026 07:58
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