Skip to content

Fix canceled preview queue requests - #2237

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-2235-wp-codebox
Aug 8, 2026
Merged

Fix canceled preview queue requests#2237
chubes4 merged 1 commit into
mainfrom
fix/issue-2235-wp-codebox

Conversation

@chubes4

@chubes4 chubes4 commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #2235.

The serialized preview proxy queue now observes queued client cancellation. A canceled pending request is removed and resolved before it can invoke its upstream task. Active aborted requests destroy their upstream request/response streams and release the queue slot.

The regression contract holds the first request open, aborts a queued second request, then sends a third request. It asserts that the target receives only /first and /third, proving the canceled queued request never opens an upstream connection.

Verification

  • npm run test:browser-callback-materialization-contracts passed twice after restoring the local generated runtime-core build output.
  • node ./node_modules/typescript/bin/tsc -p packages/runtime-playground --noEmit passed.
  • git diff --check passed.
  • git diff and git status --short are clean.

AI Assistance

OpenAI gpt-5.6-sol via OpenCode traced the queue lifecycle, implemented the initial fix and deterministic regression, and assisted with review and verification. Chris Huber reviewed and remains responsible for the change.

AI assistance: OpenAI gpt-5.6-sol via OpenCode traced the queue lifecycle, implemented the initial fix and regression, and assisted with deterministic review refinements. Chris Huber reviewed and remains responsible for the change.
@chubes4
chubes4 merged commit 0b9e306 into main Aug 8, 2026
4 checks passed
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.

Release serialized preview queue when a queued browser request is canceled

1 participant