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
Investigating how global error components and error boundaries are implemented in the codebase.
- Assistant
Implementing double global-error boundaries (matching Next.js) and a static HTML last-resort fallback when the user's global-error component fails.
- Assistant
Updating wrapping to only apply when we know the global-error module is user-defined, so generic component mocks in existing tests aren't double-wrapped.
- Assistant
Implemented last-resort handling when a user
global-errorcomponent throws, aligned with Next.js’s outerDefaultGlobalErrorboundary (app-router.tsx) and theerror-in-global-errorbehavior.Changes
-
packages/vinext/src/server/builtin-global-error-fallback.ts(new)- Detects user vs built-in global error modules/components.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.