Skip to content

ThinkHarness: one stall watchdog, the turn definition's - #3344

Closed
mattzcarey wants to merge 1 commit into
mainfrom
slim/harness-watchdog
Closed

mattzcarey wants to merge 1 commit into
mainfrom
slim/harness-watchdog

Conversation

@mattzcarey

Copy link
Copy Markdown
Member

ThinkHarness now passes recovery.stallTimeoutMs (default 120 s) to the chat turn definition and deletes its own per-model-call watchdog. The definition's watchdog times only the model since #3289's 0181bd8, not a tool that runs or a call awaiting approval, so the harness no longer needs a second one.

This follows Devin's 🔍 on #3295 ("separate watchdog for Think model calls"), which I deferred so #3295's verified head wouldn't move. One stall implementation is left: the definition's. A stall is a transient error there, so the attempt ends with the stream left open and the next one continues the reply, the same as before.

Validated with the harness-think suite, 142 of 142, including the three stall tests unchanged: a stalled model call is recovered, a slow tool isn't held to the stall timeout, and a call whose input a stall cut off is reported as not run. Draft until #3295 merges; it's stacked on it. Cost: none on a turn; the watchdog is one timer either way.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dd598ce

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: dd598ce

@agent-think

agent-think Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (7246a81d → dd598cec, workflow run)

@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 02:16

@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

@mattzcarey mattzcarey closed this Nov 27, 2026
@mattzcarey
mattzcarey deleted the slim/harness-watchdog branch November 27, 2026 02:22
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