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 I'll create the static HTML fallback module:
- Assistant
Now wire the last-resort catch into
renderAppPageErrorBoundary: - Assistant
Typecheck passes. Now add unit tests covering the new behavior:
- Assistant
Now append the new test block:
- Assistant
All 22 pass. Now run the related boundary and compat suites to check for regressions:
- Assistant
I'll add an end-to-end test through the real dev pipeline. First the fixture page, then a conditional self-throw in the shared
global-error.tsx: - Assistant
Now add the integration test to the dev-server suite:
- Assistant
While that runs, let me check the baseline: whether these failures exist without my changes:
- Assistant
The background rerun will notify when done. Meanwhile, let me look at what test creates that stray symlink (it may be one of the failures):
- Assistant
Now I'll wait for the background rerun to identify the 3 failing files:
- Assistant
Knip is clean (only pre-existing hints). Waiting on the full-unit-suite rerun to compare failures against baseline...
- Assistant
Still waiting on the full unit-suite rerun to finish — the background waiter (bpr3xswqq) will report the FAIL summary when the run exits.
- Assistant
The rerun is still in progress. I'll wait for its completion notification before summarizing.
- Assistant
The background rerun looks wedged (single worker, 11 min). Let me kill it and rerun in the foreground with output captured to a file:
- Assistant
The pkill also took out the monitor scripts (their command lines matched the pattern) — all cleaned up. Now rerun the full unit suite in the foreground, capturing output:
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.