A self-throwing global error component renders no last-resort UI If the global error…
- User
A self-throwing global error component renders no last-resort UI
If the global error component itself fails, return the built-in valid HTML fallback with the expected successful fallback status while preserving response headers and cookies. Local error boundaries and framework navigation/control-flow signals must retain their existing semantics, and the original boundary exception must not be exposed.
Interface
No new public interfaces are introduced.
- Assistant
Now wire it into
renderAppPageErrorBoundary: - Assistant
Now add unit tests to
tests/app-page-boundary-render.test.ts: - Assistant
Now run the unit tests:
- Assistant
Unit tests pass. Now add an integration test that exercises the real RSC/SSR pipeline. Let me look at a small existing fixture pattern:
- Assistant
The
tests/nextjs-compat/**glob is auto-included in the integration project. Now the integration test: - Assistant
Both dev and production paths work. Now check for regressions in the related suites:
- Assistant
The test run is still in progress. While waiting, let me double-check the duplicate-import lint concern and view the final new-module state:
- Assistant
Resource contention with the running test suite (spawn EAGAIN). I'll retry checks after the background run completes.
- Assistant
- Assistant
That's just the stale monitor from the earlier unit-test wait timing out — the run it was watching was already killed, re-run with bounded workers, and verified (5857 passed; the 3 environment-induced failures pass in isolation). No re-arm needed; the task remains complete as summarized above.
- Assistant
Same situation — this is the second stale monitor from the superseded background run timing out. All verification already completed successfully; nothing to re-arm. The fix stands as delivered:
packages/vinext/src/server/default-global-error-html.ts— built-in static HTML fallback (200, headers/cookies preserved)app-page-boundary-render.ts— serves it when the global-error boundary itself throws on an HTML request, rethrowing control-flow signals and local-boundary failures- Tests: 19 unit + 11 integration (dev + prod preview) + related suites all green,
vp checkclean
- Assistant
That's the last of the three stale monitors timing out — all were watching the original hung unit-test run that I killed and replaced with the bounded-worker re-run. No monitors remain and nothing needs re-arming.
Final state, unchanged: the self-throwing global-error fix is implemented and fully verified (30 new/updated tests passing, full unit project green apart from environment-induced thread-spawn failures that pass in isolation,
vp checkclean).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.