Skip to content

fix(qwik): surface container resume failures instead of hanging#8772

Open
maiieul wants to merge 1 commit into
build/v2from
claude/surface-resume-failures
Open

fix(qwik): surface container resume failures instead of hanging#8772
maiieul wants to merge 1 commit into
build/v2from
claude/surface-resume-failures

Conversation

@maiieul

@maiieul maiieul commented Jun 26, 2026

Copy link
Copy Markdown
Member

What is it?

  • Bug

Description

The container state-resume pipeline (process-state-data.ts) swallowed a thrown resume: scheduleProcessContainerStateData's onError marked the container done but never called markContainerDataReady, so every whenContainerDataReady waiter hung forever — and it logged nothing, so the failure was invisible (a silent hang rather than a surfaced error).

Now it reports the error via logError and unblocks waiters so the rest of the page can still resume (graceful degradation). Includes a regression test that drives the pipeline with a throwing iterator and asserts it resolves instead of timing out (it times out without the fix).

Split out of the ErrorBoundary PR (#8745), where this was discovered — it's an independent core-resume robustness fix.

@maiieul maiieul requested a review from a team as a code owner June 26, 2026 05:08
@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 03fae8a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@qwik.dev/core Patch
eslint-plugin-qwik Patch
@qwik.dev/react Patch
@qwik.dev/router Patch
create-qwik Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@maiieul maiieul self-assigned this Jun 26, 2026
@maiieul maiieul moved this to Waiting For Review in Qwik Development Jun 26, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jun 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

@qwik.dev/core

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8772

@qwik.dev/router

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8772

eslint-plugin-qwik

npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8772

create-qwik

npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8772

@qwik.dev/optimizer

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/optimizer@8772

commit: 03fae8a

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 5329361

The container state-resume pipeline swallowed a thrown resume:
scheduleProcessContainerStateData's onError marked the container done but never
called markContainerDataReady, so every whenContainerDataReady waiter hung
forever — and it logged nothing, so the failure was invisible. Now report the
error via logError and unblock waiters so the rest of the page can still resume.
Regression test drives the pipeline with a throwing iterator and asserts it
resolves rather than timing out (it times out without the fix).
@maiieul maiieul force-pushed the claude/surface-resume-failures branch 2 times, most recently from 5329361 to 03fae8a Compare June 26, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Waiting For Review

Development

Successfully merging this pull request may close these issues.

1 participant