Skip to content

[Bug]: CLI TUI renders and deletes Chinese characters incorrectly #7443

@Smurfrey

Description

@Smurfrey

Description

The Hermes CLI/TUI has significant rendering issues when handling Chinese characters:

  • Character Overlap/Misalignment: When typing Chinese characters, the input box layout breaks and the cursor position becomes offset.
  • Deletion Bug: Pressing backspace to delete Chinese characters does not correctly clear the visual space, leading to 'ghost' characters or incorrect screen updates.
  • Rendering Lag: There is noticeable visual corruption when mixing English and Chinese in the same input line.

This makes using Hermes in a native Chinese terminal environment very difficult.

Steps to Reproduce

  1. Run hermes in a terminal.
  2. Type a string of Chinese characters (e.g., 你好测试).
  3. Try to backspace to delete them.
  4. Observe the visual corruption in the input box.

Environment

  • OS: Linux (CLI)
  • Hermes Version: 0.8.0
  • Terminal: UTF-8 compatible

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/tuiTerminal UI (ui-tui/ + tui_gateway/)sweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions