Repository navigation
ThinkHarness shell: onChatResponse for a turn that failed before it wrote a reply - #3398
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-1
branch
from
November 27, 2026 06:13
458d417 to
1024830
Compare
mattzcarey
marked this pull request as ready for review
November 27, 2026 06:23
mattzcarey
force-pushed
the
slim/harness-score-errors-1
branch
from
November 27, 2026 06:32
1024830 to
e45dc10
Compare
…it wrote a message; three error tests fail through a public model error
…'s continuation as beforeTurn saw it, and the mid-stream error mock delivers its chunks
mattzcarey
force-pushed
the
slim/harness-score-errors-1
branch
from
November 27, 2026 07:00
2f78b6f to
489ffa2
Compare
…k, whatever its reason's text
…n when its error reads 'empty'
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 turn that fails, or is stopped, before it writes a reply now fires
onChatResponse, with an empty assistant message as Think does. Three error tests now make the turn fail through a public model error. This is group H, slice 1.Score on the harness config:
think-session.test.tsgoes from 107 / 321 on main to 115 / 322, with no test newly failing. The class suite passes 322/322. Class-only rows inharness-class-only.json(#3387): this PR adds one.On the shell:
onTurnEndused to skiponChatResponsewhen the turn had no message. It now reports with{ id, role: "assistant", parts: [] }, as Think does; the shape was checked on Think. A turn withdrawn while it waited still reports nothing, because it never ran. Newly passing:Fixtures:
testChatWithModelErrormakes the model thatbeforeTurngives fail after two text chunks. That's public on both configs.Class-only, with successors (arch's ruling). These two test failures injected through the private
_transformInferenceResultseam (_errorConfig), and they keep usingtestChatWithError:The second test has a row in
harness-class-only.jsonin this PR. The first gets its row in the next H slice, with its successor.No changeset: the shell isn't exported.