Skip to content

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

@nogataka

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

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