mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-29 11:42:04 +00:00
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> |
||
|---|---|---|
| .. | ||
| ansi-text.tsx | ||
| block-direction.test.tsx | ||
| clarify-tool.tsx | ||
| directive-text.test.ts | ||
| directive-text.tsx | ||
| markdown-text.test.ts | ||
| markdown-text.tsx | ||
| message-render-boundary.test.tsx | ||
| message-render-boundary.tsx | ||
| streaming.test.tsx | ||
| thread-list.tsx | ||
| thread.tsx | ||
| tool-approval-group.test.tsx | ||
| tool-approval.test.tsx | ||
| tool-approval.tsx | ||
| tool-fallback-model.test.ts | ||
| tool-fallback-model.ts | ||
| tool-fallback.tsx | ||
| tooltip-icon-button.tsx | ||
| user-message-edit.test.tsx | ||
| user-message-text.tsx | ||