Skip to content

Make the error page's Retry fetch the page again - #193

Merged
abhishekgahlot2 merged 1 commit into
useagenthq:mainfrom
coolestnick:fix-error-page-retry
Oct 23, 2026
Merged

abhishekgahlot2 merged 1 commit into
useagenthq:mainfrom
coolestnick:fix-error-page-retry

Conversation

@coolestnick

@coolestnick coolestnick commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The Retry button on the error page (app/error.tsx) now calls retry() instead of reset().

Why

Since #138, a thread that fails to load throws to this page instead of showing a false 404. But reset() only re-renders from what the client already holds, so a failed server render failed again on every click and the page never recovered. The console showed React error #441, the production form of a Server Components render error.

Next.js 16.3 (the version in bun.lock) made retry() stable. It refreshes from the server first, then re-renders, and the Next.js docs recommend it over reset() in most cases.

Checks

  • New test app/error.test.tsx checks that Retry calls retry, not reset. It fails on the old code.
  • Root bun run typecheck passes. Frontend bun run test 1694 pass, 0 fail. bun run lint passes. bun run build succeeds.

Screenshot

image

Not verified

I have not tested recovery in a browser against a failing and then recovering backend. If the backend is still down, Retry shows the same error again; it now actually tries again.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Retry called reset(), which re-renders the failed segment from what the client already holds. Since a thread that fails to load now throws to this page instead of showing a false 404, a failed server render failed again on every click and the page never recovered. retry() (stable since Next.js 16.3) refreshes from the server first, then re-renders.
@abhishekgahlot2

Copy link
Copy Markdown
Contributor

recheck

@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


Nickk'z seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@abhishekgahlot2
abhishekgahlot2 merged commit 8362e7b into useagenthq:main Oct 23, 2026
19 checks passed
@abhishekgahlot2

Copy link
Copy Markdown
Contributor

Merged, thanks @coolestnick, Retry actually retries now.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants