Repository navigation
ThinkHarness shell: a chat cleared under its turn is told so, with no response hook - #3402
Merged
Merged
Conversation
|
Contributor
|
✅ agents import sizes: no significant changes ( |
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
mattzcarey
force-pushed
the
slim/harness-score-errors-1
branch
from
November 27, 2026 06:32
1024830 to
e45dc10
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
from
November 27, 2026 06:33
22dc9e5 to
ed8cd24
Compare
mattzcarey
marked this pull request as ready for review
November 27, 2026 06:42
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-1
branch
from
November 27, 2026 07:00
2f78b6f to
489ffa2
Compare
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
3 times, most recently
from
November 27, 2026 07:14
8179afe to
bfef429
Compare
…ets no response hook; a public successor for the partial-reply test
…nd a turn its caller stopped first is not reported as cleared
mattzcarey
force-pushed
the
slim/harness-score-errors-2
branch
from
November 27, 2026 07:17
bfef429 to
c758b88
Compare
…t is accepted, so the clear withdraws it
… second request waits on the chat lane
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 the chat is cleared under now behaves as on Think: it gets no
onChatResponse, and itschat()caller is told "The chat was cleared before the turn finished." Group H, slice 2, stacked on #3398.Score on the harness config:
think-session.test.tsgoes from 115 / 322 (after #3398) to 118 / 324, with no test newly failing. The class suite passes 324/324. Class-only: this PR adds one row, so H has 2.rv-3's watch point on #3398, measured on the class: a chat the chat is cleared under fires no
onChatResponse, and its caller getsonError("The chat was cleared before the turn finished."). The shell instead reportedabortedtoonChatResponse, and told the caller nothing.clearMessagesnow counts the clears in progress. A turn that endsabortedduring one is recorded as cleared, andonTurnEndskips its response hook.chat()tells its caller of the clear, unless the caller's own signal had aborted.The other reasons ThinkHarness can end a turn with (
not_found,not_waiting,empty) are never reached by a turn that ran, which is allonTurnEndsees here. I haven't found a public way to make a running turn end with them. If one turns up, it gets the same check.Class-only row: "should persist partial assistant message on error" injects its failure through the private
_transformInferenceResultseam. Its successor is new here, "keeps the partial reply of a turn whose model reports an error": the modelbeforeTurngives writes text, then reports an in-band error. It passes on both configs.No changeset: the shell isn't exported.