Skip to content

test(think): the typing test settles the requests it stalls - #3499

Closed
mattzcarey wants to merge 2 commits into
mainfrom
slim/think-typing-test-owns-request
Closed

mattzcarey wants to merge 2 commits into
mainfrom
slim/think-typing-test-owns-request

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Hygiene in messengers.test.ts: the typing test ("still posts the reply when the first/refresh typing request never settles") stalled each typing request with new Promise(() => {}), a promise that never settles and outlives the test.

  • The test now keeps the resolver of each request it stalls, and settles them all in a finally once its assertions have run, so nothing it started is left pending.
  • Each case also checks that exactly one request stalled (requests never overlap), so the refresh case can't pass without stalling one.

This doesn't fix the intermittent "Cannot perform I/O on behalf of a different Durable Object (Lock)" unhandled rejection that Vitest attributes to this test. That rejection still shows in about 1 of 3 local runs of the file with this change, and its owner isn't found yet.

Tests only, no changeset.

@changeset-bot

changeset-bot Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 22a93ce

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

devin-ai-integration[bot]

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

agents

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 22a93ce

@agent-think

agent-think Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (372822c4 → 22a93ce8, workflow run)

@mattzcarey
mattzcarey marked this pull request as draft November 28, 2026 13:19
@mattzcarey
mattzcarey marked this pull request as ready for review November 28, 2026 13:19

@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 1 new potential issue.

Devin Review

Comment thread packages/codemode/e2e/worker.ts Resolved
@mattzcarey
mattzcarey force-pushed the slim/think-typing-test-owns-request branch from 22a93ce to ef10a31 Compare November 28, 2026 14:21
@mattzcarey
mattzcarey marked this pull request as draft November 28, 2026 14:22
@mattzcarey
mattzcarey marked this pull request as ready for review November 28, 2026 14:45
@mattzcarey

Copy link
Copy Markdown
Member Author

Replaced by #3503, which carries this change with the rest of its unit, integrated and tested together.

@mattzcarey mattzcarey closed this Nov 28, 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