Bug Description
When using hermes --tui, the terminal UI rendering breaks with Chinese text output. Characters scatter to the right side of the screen, leaving ghost trails and overlapping text.
Steps to Reproduce
- Run
hermes --tui
- Engage in a conversation that produces Chinese text output (several paragraphs)
- Observe — text does not wrap correctly, characters appear scattered on the right side
Expected Behavior
Chinese text should render cleanly without ghosting or scattering.
Actual Behavior
- Characters scatter on the right side of the screen
- Large irregular whitespace mid-sentence
- Characters overlap vertically (ghost effect)
- Status bar shows duplicated fragments
- Text lines broken mid-sentence
Environment
- OS: WSL2
- Terminal: Windows Terminal / browser-based terminal
Possible Cause
CJK character width calculation issue. Chinese characters are full-width (2 cells) but the TUI rendering engine calculates them as 1 cell, causing incorrect line-wrap and cursor position misalignment.
Bug Description
When using
hermes --tui, the terminal UI rendering breaks with Chinese text output. Characters scatter to the right side of the screen, leaving ghost trails and overlapping text.Steps to Reproduce
hermes --tuiExpected Behavior
Chinese text should render cleanly without ghosting or scattering.
Actual Behavior
Environment
Possible Cause
CJK character width calculation issue. Chinese characters are full-width (2 cells) but the TUI rendering engine calculates them as 1 cell, causing incorrect line-wrap and cursor position misalignment.