Repository navigation
ThinkHarness shell: a failed turn emits chat:request:failed - #3405
Merged
Merged
Conversation
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
mattzcarey
force-pushed
the
slim/harness-score-errors-3
branch
from
November 27, 2026 06:44
494ee7e to
32eccd4
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
from
November 27, 2026 06:58
9077ccd to
965b72a
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-3
branch
from
November 27, 2026 06:58
32eccd4 to
a722b31
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
from
November 27, 2026 07:00
965b72a to
c48e6ef
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-3
branch
from
November 27, 2026 07:00
a722b31 to
c625db6
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
from
November 27, 2026 07:04
c48e6ef to
8179afe
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-3
branch
from
November 27, 2026 07:04
c625db6 to
de33893
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
from
November 27, 2026 07:14
8179afe to
bfef429
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-3
branch
from
November 27, 2026 07:16
de33893 to
bdf621c
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
from
November 27, 2026 07:17
bfef429 to
c758b88
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-3
branch
4 times, most recently
from
November 27, 2026 07:31
f094d13 to
7915b65
Compare
mattzcarey
marked this pull request as ready for review
November 27, 2026 07:39
mattzcarey
force-pushed
the
slim/harness-score-errors-3
branch
from
November 27, 2026 07:50
7915b65 to
db5b6a0
Compare
…ed and the messages were placed; a WebSocket successor test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the harness-backed Think shell, a failed turn now emits
chat:request:failedto observability, as Think does.Also rv-3's follow-up from #3402: if
abort()rejects in#stopForCaller, its#callerStopsentry is dropped too. Group H, slice 3, stacked on #3402.Score on the harness config:
think-session.test.tsgoes 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.onTurnEndemitschat:request:failedwith{ 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:messagesPersistedsays the turn's input was placed, which is true for any turn that ran, whether or not it left a reply.testChatWithModelError, with the same assertions. It passes on both configs.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 throughchat(), and it passes on both configs.No changeset: the shell isn't exported.