Skip to content

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

Closed

Description

@nogataka
  • 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

Activity

  1. github-actions commented on Oct 2, 2025

    @github-actions
    Contributor

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

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

  2. jensenojs commented on Nov 1, 2025

    @jensenojs
    Contributor

    fix on 1.0? @nogataka

  3. nogataka commented on Nov 5, 2025

    @nogataka
    Author

    Thanks, the issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions