Skip to content

ThinkHarness shell: a failed turn emits chat:request:failed - #3405

Merged
mattzcarey merged 3 commits into
mainfrom
slim/harness-score-errors-3
Nov 27, 2026
Merged

mattzcarey merged 3 commits into
mainfrom
slim/harness-score-errors-3

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

On the harness-backed Think shell, a failed turn now emits chat:request:failed to observability, as Think does.

Also rv-3's follow-up from #3402: if abort() rejects in #stopForCaller, its #callerStops entry is dropped too. Group H, slice 3, stacked on #3402.

Score on the harness config: think-session.test.ts goes from 118 / 324 (after #3402) to 120 / 324, with no test newly failing. The class suite passes 324/324. Class-only: this PR adds one row, so H has 3.

  • onTurnEnd emits chat:request:failed with { requestId, stage: "stream", messagesPersisted: true, error } for a turn that ended unanswered and not stopped. I took the payload from Think's on the class: messagesPersisted says the turn's input was placed, which is true for any turn that ran, whether or not it left a reply.
  • "emits chat:request:failed when a chat stream fails" now fails its turn through the public testChatWithModelError, with the same assertions. It passes on both configs.
  • "bridges an in-band stream error to chat:request:failed on the RPC path" now passes on the shell.

Class-only row: "bridges an in-band stream error to chat:request:failed" feeds its stream through the private _pumpReply. Its successor is the RPC-path test above, the same behaviour through chat(), and it passes on both configs.

No changeset: the shell isn't exported.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: baaf2cb

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: baaf2cb

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (9605681d → baaf2cba, workflow run)

@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-3 branch from 494ee7e to 32eccd4 Compare November 27, 2026 06:44
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-2 branch from 9077ccd to 965b72a Compare November 27, 2026 06:58
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-3 branch from 32eccd4 to a722b31 Compare November 27, 2026 06:58
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-2 branch from 965b72a to c48e6ef Compare November 27, 2026 07:00
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-3 branch from a722b31 to c625db6 Compare November 27, 2026 07:00
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-2 branch from c48e6ef to 8179afe Compare November 27, 2026 07:04
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-3 branch from c625db6 to de33893 Compare November 27, 2026 07:04
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-2 branch from 8179afe to bfef429 Compare November 27, 2026 07:14
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-3 branch from de33893 to bdf621c Compare November 27, 2026 07:16
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-2 branch from bfef429 to c758b88 Compare November 27, 2026 07:17
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-3 branch 4 times, most recently from f094d13 to 7915b65 Compare November 27, 2026 07:31
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 07:39
devin-ai-integration[bot]

This comment was marked as resolved.

Base automatically changed from slim/harness-score-errors-2 to main November 27, 2026 07:49
@mattzcarey
mattzcarey force-pushed the slim/harness-score-errors-3 branch from 7915b65 to db5b6a0 Compare November 27, 2026 07:50
…ed and the messages were placed; a WebSocket successor test
@mattzcarey
mattzcarey merged commit ce50020 into main Nov 27, 2026
18 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-score-errors-3 branch November 27, 2026 08:02
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