Repository navigation
Description
Summary
The Hermes web dashboard (both standalone hermes dashboard and the one launched by the desktop app) crashes on page load with Minified React error #520. This is not the Chat-tab-only bug from #41739 — the crash happens on every tab, including Kanban, before the user can interact with anything.
React error #520: "There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root."
Environment
- Hermes version: v0.16.0 (upstream
46d758bb) - Desktop app version: 0.15.1
- Platform: macOS 26.5 (arm64)
- Dashboard URL tested: random local port chosen by the desktop-app-managed dashboard
- Browser: Any (server returns valid HTML + 22 MB JS bundle with
HTTP 200, but the bundle throws on first render)
Steps to reproduce
- Install Hermes Agent (
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash) - Launch the desktop app (
open -a Hermes.app) or runhermes dashboard - Open the printed URL in any browser
- Observe: page stays blank / shows the React error overlay
What I've already verified
- The Python backend serves the SPA correctly:
GET /→200 OK(valid HTML shell)GET /assets/index-CkJi2w9x.js→200 OK(22 MB bundle, fully delivered)GET /api/health→401(auth-required, expected)
- The crash is purely client-side. From
~/.hermes/logs/desktop.log:[hermes] [renderer console] Uncaught Error: Minified React error #520; visit https://react.dev/errors/520 for the full message (file:///.../apps/desktop/release/mac-arm64/Hermes.app/Contents/Resources/app.asar/dist/assets/index-CkJi2w9x.js:8) - The same
dist/build is loaded by both the Electron renderer and the standalone web dashboard, so both entry points crash. - The bug reproduces without ever clicking into the Chat tab, so it is distinct from the Dashboard: Infinite re-render crash (React error #301) #41739 / PR fix(dashboard): avoid chat resume param update loop #42020 fix (which is scoped to "chat resume param update loop").
Suspected root cause area
React error #520 is a "concurrent rendering recovered, but a re-render is now required for the whole root" failure. In practice this means some effect or state write during render triggers an infinite re-render that React can no longer hide via concurrent recovery (whereas #301 in #41739 is the same class of bug but caught earlier by React's 25-cycle guard).
Likely candidates worth checking:
- A top-level layout/router component doing a
useEffectthat synchronously callssetStateon first mount under conditions that don't match the dependency array - A
useSyncExternalStoresubscription returning a new snapshot on every read (would trigger re-render every time) - The new
HERMES_DASHBOARD_READY port=...injection path the desktop launcher uses — it may be passing an unexpected shape the renderer does not guard against
Suggested next steps
- Add a dev build path (
hermes dashboard --dev?) that ships the unminified React error decoder, so users can paste a full stack trace instead of guessing from Feature: Tool Call Repair Middleware — Auto-Lowercase + Invalid Tool Handler (inspired by Kilocode) #520 - Audit all
useEffectcalls in the top-level router/layout files for unconditionalsetState - Consider whether the open PR fix(dashboard): avoid chat resume param update loop #42020 fully covers the underlying re-render class or only the specific Chat-resume-param loop
Workarounds that do NOT help
- Hard browser refresh (Cmd+Shift+R) — same crash
- Incognito window — same crash
- Different browser — same crash
--skip-buildflag — same crash (uses the samedist/)- Port change — same crash (the bundle is the issue, not the port)
Workarounds that DO help
- Use the
hermes kanbanCLI directly (100 % functional, just no visual board) - Use the Hermes Desktop App's embedded chat instead of the web dashboard
cc: @shandian64 (reporter of PR #42020, since this may be a sibling bug in the same area)
Activity
DavidMetcalfe commentedon Sep 7, 2026
@Plunry — I verified this against current
mainin the standalone web dashboard (hermes dashboard), and the reported crash does not reproduce there.What I tested
On current
main(693641aa8b, v0.21.0):cd web && npm run buildcompletes cleanly (tsc -b && vite build). The bundle is now code-split into many chunks, unlike the single ~22 MBindex-*.jsbundle the report cites for v0.16.0.hermes dashboard --skip-buildagainsthermes_cli/web_dist/on a loopback bind (no auth gate), pointed at a fresh tempHERMES_HOMEso the run didn't touch a real profile./→/sessions: the full shell mounts — sidebar, all nav entries (Sessions/Files/Analytics/… plus the KANBAN and ACHIEVEMENTS plugin tabs), gateway status, theme and version. No blank page./chat: the embedded TUI chrome mounts too. No crash.Note: this tests the standalone
hermes dashboardSPA. On currentmainthe desktop app's own renderer is a separate surface and no longer serves this web bundle, so the report's "desktop-launched dashboard" path doesn't load this SPA anymore either.Why
The dashboard has been heavily reworked since v0.16.0 — ≈209 commits have touched
web/srcsince June. The specific mechanisms your report flags are no longer present in the shared load path:useSyncExternalStoreis currently used only inweb/src/plugins/PluginPage.tsx(a plugin tab), not in the top-level shell.ThemeProvider,I18nProvider,usePlugins) use stable snapshots and guarded effects — there's no unconditional top-levelsetStateduring first render.One caveat
I verified the rendered UI (no blank page, no crash overlay, pages usable) in a real browser, but I could not capture the browser devtools console in my setup, so I can't rule out a non-fatal React error #520 recovery message in the browser console. The user-facing symptom you described — blank page on load, every tab unusable — is not present.
@shandian64 — this is distinct from PR #42020, which is scoped to the Chat resume-param loop and is currently open but unmerged; it does not cover this all-tabs class.
@Plunry — if this reproduces for you on a current release (post-rewrite) or on a specific version, post the version plus the browser console error/stack trace (and
desktop.logif running via desktop) and I'll dig further. Otherwise this looks resolved on currentmain(or can be closed ascannot_reproduceonmain).