mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
Clicking the edit composer's send arrow did nothing — the edit only went through via revert. On macOS a <button> takes no focus on mousedown, so the arrow-click blurred the contenteditable, the blur's 80ms timer cancelled the edit and tore down the assistant-ui composer core, and the click's send() then threw "Composer is not available" against the dead core. submitEdit had already set submitting=true, so the arrow wedged and only revert worked. Guard focus on the send button with onPointerDown preventDefault, the same way the restore button does, so the click never blurs the editor. Also wrap the send() and the blur-timer cancel() in the #49903 unguarded-core swallow so a raced teardown can never wedge the arrow or leak an uncaught renderer error. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||