hermes-agent/apps/desktop/src/components/assistant-ui
Austin Pickett ee41aa0c1a
feat(desktop): add dismiss control to chat error banners (#47985)
A failed turn leaves a red error banner inline in the transcript. These
errors are renderer-local state (never persisted) and stay pinned to the
message until the session is reloaded, so a stale, no-longer-relevant
error (e.g. a transient provider/inference error) lingers with no way to
clear it.

Add an 'x' dismiss button inside the existing MessagePrimitive.Error
block. Clicking it clears the error from BOTH the live $messages view
and the per-runtime session cache — the view first, because
preserveLocalAssistantErrors re-grafts any still-errored message it finds
in the view onto the next session.info flush, so clearing only the cache
would let the heartbeat resurrect the banner. A bare error placeholder
(no streamed content) is dropped entirely; a turn that streamed partial
output before failing keeps its text and just sheds the error.

The control only renders when an onDismissError handler is wired, so
secondary/embedded Thread usages are unaffected. Adds the dismissError
string to all four locales (en/ja/zh/zh-hant) and two behavior tests.

Co-authored-by: Teknium <127238744+teknium1@users.noreply.github.com>
2026-06-17 16:46:43 -04:00
..
ansi-text.tsx fix(desktop): triage batch of GUI quality-of-life fixes (#37536) 2026-06-02 16:33:22 -04:00
block-direction.test.tsx fix(desktop): list markers and quote border follow RTL message direction 2026-06-17 05:40:15 -07:00
clarify-tool.tsx fix(desktop): clarify UX — loading, enter-to-send, radio align (#46014) 2026-06-14 07:06:40 +00:00
directive-text.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
directive-text.tsx perf(desktop): keep oversized messages from freezing the chat 2026-06-17 08:25:52 -05:00
markdown-text.test.ts fix(desktop): avoid stack overflow rendering huge fenced blocks 2026-06-17 00:34:59 -05:00
markdown-text.tsx Merge pull request #47664 from NousResearch/bb/desktop-markdown-spread-overflow 2026-06-17 08:37:06 -05:00
message-render-boundary.test.tsx fix(desktop): recover from transient assistant-ui index-lookup crash (#44493) 2026-06-11 22:52:37 +00:00
message-render-boundary.tsx fix(desktop): recover from transient assistant-ui index-lookup crash (#44493) 2026-06-11 22:52:37 +00:00
streaming.test.tsx feat(desktop): add dismiss control to chat error banners (#47985) 2026-06-17 16:46:43 -04:00
thread-list.tsx feat(desktop): stream subagent activity into watch windows (#47060) 2026-06-16 14:30:11 -04:00
thread.tsx feat(desktop): add dismiss control to chat error banners (#47985) 2026-06-17 16:46:43 -04:00
tool-approval-group.test.tsx fix(desktop): persist tool-row dismissal across virtualization; keep caret hittable 2026-06-12 17:34:48 -05:00
tool-approval.test.tsx test(desktop): cover the inline command expander on the approval bar 2026-06-13 05:08:37 -07:00
tool-approval.tsx feat(desktop): expand the full command inline from the approval bar 2026-06-13 05:08:37 -07:00
tool-fallback-model.test.ts Fix clarify icon alignment and spurious error-red on non-zero exit 2026-06-06 09:23:50 -05:00
tool-fallback-model.ts feat(desktop): make cron jobs the first-class sidebar entity 2026-06-06 14:04:11 -05:00
tool-fallback.tsx fix(desktop): persist tool-row dismissal across virtualization; keep caret hittable 2026-06-12 17:34:48 -05:00
tooltip-icon-button.tsx feat(desktop): per-session profile switching + cross-profile sessions 2026-06-04 16:35:34 -05:00
user-message-edit.test.tsx fix(desktop): carve sticky user bubbles out of the titlebar drag region 2026-06-10 03:46:03 -05:00
user-message-text.tsx feat(desktop): auto-detect RTL/bidi text direction in chat 2026-06-11 21:06:26 -05:00