Skip to content

Dashboard crashes on load with React error #520 (all tabs, not just Chat) #45125

Open

Description

@Plunry

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

  1. Install Hermes Agent (curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash)
  2. Launch the desktop app (open -a Hermes.app) or run hermes dashboard
  3. Open the printed URL in any browser
  4. 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 useEffect that synchronously calls setState on first mount under conditions that don't match the dependency array
  • A useSyncExternalStore subscription 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

Workarounds that do NOT help

  • Hard browser refresh (Cmd+Shift+R) — same crash
  • Incognito window — same crash
  • Different browser — same crash
  • --skip-build flag — same crash (uses the same dist/)
  • Port change — same crash (the bundle is the issue, not the port)

Workarounds that DO help

  • Use the hermes kanban CLI 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

  1. added
    type/bugSomething isn't working
    comp/cliCLI entry point, hermes_cli/, setup wizard
    P3Low — cosmetic, nice to have
    on Jun 12, 2026
  2. DavidMetcalfe commented on Sep 7, 2026

    @DavidMetcalfe

    @Plunry — I verified this against current main in the standalone web dashboard (hermes dashboard), and the reported crash does not reproduce there.

    What I tested

    On current main (693641aa8b, v0.21.0):

    1. Built from source — cd web && npm run build completes cleanly (tsc -b && vite build). The bundle is now code-split into many chunks, unlike the single ~22 MB index-*.js bundle the report cites for v0.16.0.
    2. Served that build — hermes dashboard --skip-build against hermes_cli/web_dist/ on a loopback bind (no auth gate), pointed at a fresh temp HERMES_HOME so the run didn't touch a real profile.
    3. Loaded it in a real browser:
      • / → /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 dashboard SPA. On current main the 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/src since June. The specific mechanisms your report flags are no longer present in the shared load path:

    • useSyncExternalStore is currently used only in web/src/plugins/PluginPage.tsx (a plugin tab), not in the top-level shell.
    • The top-level providers and root hooks (ThemeProvider, I18nProvider, usePlugins) use stable snapshots and guarded effects — there's no unconditional top-level setState during 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.log if running via desktop) and I'll dig further. Otherwise this looks resolved on current main (or can be closed as cannot_reproduce on main).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/cliCLI entry point, hermes_cli/, setup wizardtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions