hermes - 💡(How to fix) Fix [Bug]: Desktop: trailing characters lost when sending message without punctuation

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

Suspected Root Cause

RAW_BUFFERClick to expand / collapse

Bug Description

In Hermes Desktop, when the user types a message that ends without punctuation and presses Enter, the last few characters are sometimes lost from the sent message. Adding a trailing punctuation mark (e.g. "。" or ".") prevents the issue.

Steps to Reproduce

  1. Open Hermes Desktop
  2. Type a message ending without punctuation (e.g. 帮我查一下这个bug)
  3. Press Enter to send
  4. Observe the sent message is missing trailing characters (e.g. 帮我查一下这个bu)

Expected Behavior

The full message text should be sent regardless of trailing punctuation.

Actual Behavior

The last few characters are dropped if there is no trailing punctuation. Adding a period or other punctuation mark at the end makes the message send correctly.

Suspected Root Cause

Likely a race condition in apps/desktop/src/app/chat/composer/index.tsx — the draft state (read via composerPlainText()) may not have fully synced from the contenteditable DOM when submitDraft() fires on Enter keydown. Trailing punctuation may coincidentally trigger a DOM update that resolves the sync before submission.

Environment

  • Hermes Desktop (latest release)
  • macOS
  • Model: mimo-v2.5 (Xiaomi)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING