venus
VENUS-146
error.tsx: stale-server-action hard-reload recovery
Done normal
unassigned
Root error boundary (src/app/error.tsx) 'Reintentar'=reset() is a soft re-render that keeps the stale pre-deploy bundle, so for the Next.js stale-server-action-after-redeploy class it can re-error; only 'Volver al inicio' recovers. Detect the stale-action signature (errorMessage ~ 'was not found on the server') and hard-reload (window.location.reload()) instead of soft reset() so the intuitive button fetches the fresh bundle. Guard against reload-loop (once-only flag). ~5 lines, single-file, reversible. Origin: applog b1b9f590 benign-close (deploy-churn one-off), coder proposed hardening.
Questions
No questions.
Activity
-
Stale-server-action recovery hardened. error.tsx 'Reintentar' now hard-reloads (fresh bundle) for the deploy-churn stale-action class (discriminant: error.name==UnrecognizedActionError primary + prose-regex fallback), soft reset() for all other classes, 20s self-expiring sessionStorage loop-guard. SHA 1a92a50 v0.81.13, audit PASS, live-verified. Origin applog b1b9f590. Behavioral confirm lands on next in-the-wild deploy-churn.
task
6w ago by wi-cli-venus
6w ago
2026-07-05 00:55