hermes-agent/apps/desktop/src
Brooklyn Nicholson fa92aa1984 fix(desktop): keep a markdown render failure inside its own message
MessageRenderBoundary re-throws anything that is not the transient
assistant-ui lookup race, by design, so a RangeError raised inside
Streamdown's render unwinds all the way to the workspace boundary and
replaces the entire app with "workspace failed to render". The message
is replayed from the session on every reload, so Retry lands on the same
content and fails the same way — the app is bricked, not glitching.

Wrap the markdown surface itself, so one bad message degrades to the
existing HugeTextFallback (readable, already used for oversized text)
while the rest of the transcript stays alive. The boundary sits on
MarkdownTextSurface rather than any single caller because the crash is a
property of the content, not of which part carries it: the same payload
arrives as an assistant answer, as reasoning, or in tool output, and all
of them render through here.

Tests drive the real component with both known overflow shapes and fail
with the reported RangeError when either half of the fix is reverted.
The depth clamp handles the raw-HTML cause; deeply nested block
structure recurses in mdast-to-hast where no HTML guard can reach it,
which is why the boundary is not redundant.

Co-authored-by: Gille <helix4u@users.noreply.github.com>
2026-08-13 13:36:54 -05:00
..
app feat(desktop): show full session title in a tooltip when it truncates 2026-08-13 02:38:32 -07:00
assets/tiers
…
components fix(desktop): keep a markdown render failure inside its own message 2026-08-13 13:36:54 -05:00
contrib feat(desktop): ship unified desktop halves opt-in; guard cross-root inventory rows 2026-08-13 13:18:49 -05:00
debug fmt(js): `npm run fix` on merge (#78271) 2026-08-04 07:10:23 +00:00
fonts
…
hooks feat(desktop): SDK — useGrabScroll export + dogfood plugin touch-ups 2026-07-30 07:18:08 -05:00
i18n feat(desktop): cron + blueprint recipes in the sidebar nav rail 2026-08-13 02:12:23 -07:00
lib fix(desktop): bound raw HTML nesting before it reaches rehype-raw 2026-08-13 13:36:54 -05:00
plugins feat(desktop): plugin descriptions + open the agent plugins folder 2026-08-08 17:34:20 -05:00
sdk fix(sdk): keep all-profiles sidebar scope on cross-profile openSession (#85155) 2026-08-13 01:50:04 -07:00
store fmt(js): `npm run fix` on merge (#85140) 2026-08-13 08:15:48 +00:00
themes fix(desktop): repaint peer windows when the appearance changes 2026-08-08 18:31:25 -05:00
types feat(cron): surface model drift impact in Desktop 2026-08-12 23:47:22 -07:00
global.d.ts feat(desktop): load a desktop half from unified agent-plugin packages 2026-08-13 13:18:49 -05:00
hermes-cron-scope.test.ts
…
hermes-parity.test.ts
…
hermes-profile-scope.test.ts
…
hermes.test.ts fix(sessions): prevent oversized transcripts from exhausting memory 2026-08-08 13:36:08 +05:30
hermes.ts fix(desktop): cancel MCP OAuth flows server-side so a retry doesn't 409 2026-08-13 01:06:51 -05:00
main.tsx fix(desktop): title HUD windows Hermes HUD 2026-08-10 16:19:50 -05:00
pairing-scope.test.ts
…
styles.css feat(desktop): marquee clipped card titles on hover 2026-08-12 22:24:37 -05:00
vite-env.d.ts
…
webhooks-rest.test.ts
…