TUI editor hides some double-byte characters in the input field #1918

Closed
opened 2026-02-16 17:33:14 -05:00 by yindo · 3 comments
Owner

Originally created by @nogataka on GitHub (Oct 2, 2025).

Originally assigned to: @adamdotdevin on GitHub.

  • Symptom
    Certain double-byte characters entered in the input field are not visible.

    This issue occurs because macOS’s native Terminal handles CJK full-width characters and combining marks more consistently, while VS Code and Cursor (VS Code–based integrated terminals, powered by xterm.js) are more prone to misalignment depending on configuration.

    (CJK stands for Chinese, Japanese, and Korean — languages that use full-width characters which typically occupy two cells in a fixed-width terminal.)

  • Steps to Reproduce

    1. Launch the TUI via the opencode command.
    2. Using a keyboard capable of double-byte input, enter four or more double-byte characters.
    3. Observe that some of the characters fail to render in the input field.
  • Expected Result
    All double-byte characters entered in the field should be displayed.

Here are screenshots:

Image Image
Originally created by @nogataka on GitHub (Oct 2, 2025). Originally assigned to: @adamdotdevin on GitHub. - Symptom Certain double-byte characters entered in the input field are not visible. This issue occurs because macOS’s native Terminal handles CJK full-width characters and combining marks more consistently, while VS Code and Cursor (VS Code–based integrated terminals, powered by xterm.js) are more prone to misalignment depending on configuration. (CJK stands for Chinese, Japanese, and Korean — languages that use full-width characters which typically occupy two cells in a fixed-width terminal.) - Steps to Reproduce 1. Launch the TUI via the opencode command. 2. Using a keyboard capable of double-byte input, enter four or more double-byte characters. 3. Observe that some of the characters fail to render in the input field. - Expected Result All double-byte characters entered in the field should be displayed. Here are screenshots: <img width="625" height="335" alt="Image" src="https://github.com/user-attachments/assets/79afdd7b-0fe6-4c05-8189-daa01fc87b83" /> <img width="599" height="92" alt="Image" src="https://github.com/user-attachments/assets/24f7a9ab-b995-4b1c-915c-26d32eabafbf" />
yindo closed this issue 2026-02-16 17:33:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 2, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2904: Icons/Unicode characters cause file editing failures
  • #2593: [bug] opencode produces garbled text when input containing non-ascii characters
  • #2013: Korean characters disappear in the input prompt when using WezTerm/Ghostty
  • #379: Cyrillic characters are not displayed correctly in diff view

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 2, 2025): This issue might be a duplicate of existing issues. Please check: - #2904: Icons/Unicode characters cause file editing failures - #2593: [bug] opencode produces garbled text when input containing non-ascii characters - #2013: Korean characters disappear in the input prompt when using WezTerm/Ghostty - #379: Cyrillic characters are not displayed correctly in diff view Feel free to ignore if none of these address your specific case.
Author
Owner

@jensenojs commented on GitHub (Nov 1, 2025):

fix on 1.0? @nogataka

@jensenojs commented on GitHub (Nov 1, 2025): fix on 1.0? @nogataka
Author
Owner

@nogataka commented on GitHub (Nov 5, 2025):

Thanks, the issue has been fixed.

@nogataka commented on GitHub (Nov 5, 2025): Thanks, the issue has been fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1918