Skip to content

Tests: client-tools fixture on real state, hydration-budget and durable-pause rows, think-session - #3564

Open
mattzcarey wants to merge 5 commits into
mainfrom
slim/push-31-tests
Open

mattzcarey wants to merge 5 commits into
mainfrom
slim/push-31-tests

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Stacked on #3562 (the shell PR): these tests and records follow its changes. Retargeted to main when it merges. Tests and score records only; no product code.

  • 2d39ec07b test(think): the client-tools fixture reads the harness-backed Think's chat waits where it offers them
  • 7d3095771 harness-class-only: hydration-budget's private long-path reconcile test, on its socket twin
  • 0f36451f2 test(think): the Reused tool-call IDs can overwrite assistant messages during reconciliation #1992 echoed-row test class-only on the public test a tab drives over a WebSocket request (harness's echoed-row unit makes it pass on the harness-backed Think)
  • 725288030 test(think): a stopped recovery attempt whose model then fails is recorded as skipped by the user, through a real reset (G18-1's second test); its class row

Devin Review

@changeset-bot

changeset-bot Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4cdbe98

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 Dec 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@3564

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 4cdbe98

@agent-think

agent-think Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (c1c4893a → 4cdbe988, workflow run)

@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

Comment on lines +1474 to +1483
const read = (
this as unknown as {
_chatWaitsForTest?: () => {
applying: boolean;
continuationRequestId: string | null;
parked: boolean;
};
}
)._chatWaitsForTest;
return typeof read === "function" ? read.call(this) : undefined;

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.

🔍 Harness wait-state hook missing at head

The harness-backed Think defines no _chatWaitsForTest, so guarded tests skip the new wait-state checks. The stall-recovery test calls the reader directly and fails before checking the recovered reply.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +307 to +311
"test": "Think — tool results with nothing to continue > a clear while the reply is being stored keeps it out of the cleared chat",
"reason": "runs the clear inside the class's private `_rememberPendingResponseHook` (`clearDuringNextReplyStoreForTest`); the successor clears through the public `clearMessages()` while the reply streams and asserts the same outcome: nothing stored, and no response hook",
"successor": {
"file": "client-tools.test.ts",
"test": "Think — tool results with nothing to continue > a clear while the reply streams keeps it out of the cleared chat"

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.

🔍 Clear test misses final-save window

The successor calls clearMessages() after a text delta, not during the pending response hook. It can pass without exercising the reset check immediately before the completed reply is saved.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +188 to +190
// A continuation still to start, on either Think: the public wait (no
// reply in this file waits on a client when it settles).
await agent.waitUntilStableForTest({ timeout: 5000 });

@devin-ai-integration devin-ai-integration Bot Dec 2, 2026 •

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.

🔍 Reconciliation tests ignore stability timeouts

settled() returns normally when waitUntilStable times out. The assertions then read the transcript without knowing whether pending work finished.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Base automatically changed from slim/push-29-shell to main December 2, 2026 11:00
…s chat waits where it offers them

Unit: slim/finish-hollow-6 @4f13dead3 (rv-2; tests; 4 commits)
…st, on its socket twin

Unit: slim/parity2-hb-2 @1a53e765a (rv-2; record; on land-hb-long-path)
…a tab drives over a WebSocket request (harness's echoed-row unit makes it pass on the harness-backed Think)

Unit: slim/parity-actions-26 @c9a9f79e1 (rv-2 at ee7cdbc07, carried: position only)
…orded as skipped by the user, through a real reset (G18-1's second test); its class row

Unit: slim/land-ts-22-2 @fa5e22713 (rv-2 at cb454c858, carried)
…-only; its successor is the public batch test

test(think): client-tools rows for the two cancelAllChats tests that read a class private, on their public successors

test(think): client-tools: public successors and rows for three class-latch tests (a continuation whose repair throws; a tab's stop of a continuation parked on a sibling; a clear while the reply streams)

Unit: slim/finish-ct-flip-1 @9d3b07c69 (rv-2; its top 3 commits; the lower 4 are finish-hollow-6, already in)
@mattzcarey mattzcarey changed the title Tests: client-tools fixture on real state, hydration-budget and durable-pause rows, think-session (stacked on #3562) Tests: client-tools fixture on real state, hydration-budget and durable-pause rows, think-session Dec 2, 2026
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