Skip to content

Language environment UI display issues #3260

Closed

Description

@dipping5115

if use english language

LANG=en_US.UTF-8 opencode
Image

its normal, but if is other language:

LANG=zh_CN.UTF-8 opencode
Image Image

The UI seems broken, and there are issues with characters not displaying.

Activity

  1. github-actions commented on Oct 18, 2025

    @github-actions
    Contributor

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

    All of these issues relate to character encoding, internationalization, and UI display problems with non-English locales/characters. Your issue with LANG=zh_CN.UTF-8 causing UI breakage appears to be the same underlying problem with how opencode handles different language environments and character encodings.

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

  2. rekram1-node commented on Oct 18, 2025

    @rekram1-node
    Contributor

    this should be fixed when opentui version ships next week

  3. hallelujah-shih commented on Oct 27, 2025

    @hallelujah-shih

    I also encountered display issues in the UI input field when entering Chinese, and sometimes garbled characters appear.

    Environment:

    • Operating System: Fedora 42 with GNOME Wayland
    • opencode version: v0.15.16
    • Launch command: LC_ALL=zh_CN.UTF-8 opencode

    Issue Description:
    When attempting to input Chinese text (specifically "中文测试" meaning "Chinese test") for testing purposes, display issues occur. As demonstrated in the attached screenshot, the Chinese characters are not rendering correctly or experiencing display problems.

    Image
  4. dipping5115 commented on Oct 27, 2025

    @dipping5115
    Author

    hi @hallelujah-shih , your issue may not cause by envirmont variable, see #2013, #2593 and #2920

  5. Nindaleth commented on Dec 25, 2025

    @Nindaleth
    Contributor

    @hallelujah-shih Please retry on 1.0.x versions, this is my result on LC_ALL=zh_CN.UTF-8 opencode:
    Image

  6. dipping5115 commented on Dec 27, 2025

    @dipping5115
    Author

    I just tested this, and it looks like the problem is resolved, so I'll close this issue. Feel free to reopen it if needed.

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