Language environment UI display issues #2158

Closed
opened 2026-02-16 17:34:27 -05:00 by yindo · 6 comments
Owner

Originally created by @dipping5115 on GitHub (Oct 18, 2025).

Originally assigned to: @thdxr on GitHub.

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.

Originally created by @dipping5115 on GitHub (Oct 18, 2025). Originally assigned to: @thdxr on GitHub. if use english language ```bash LANG=en_US.UTF-8 opencode ``` <img width="878" height="865" alt="Image" src="https://github.com/user-attachments/assets/3e84e95e-ebc3-4467-8bf2-c09346e858c0" /> its normal, but if is other language: ```bash LANG=zh_CN.UTF-8 opencode ``` <img width="1627" height="664" alt="Image" src="https://github.com/user-attachments/assets/102f72de-f862-4f99-b755-b12761a760f8" /> <img width="919" height="709" alt="Image" src="https://github.com/user-attachments/assets/8464c3c6-0bb5-4c8d-85bd-a3c4d9553510" /> The UI seems broken, and there are issues with characters not displaying.
yindo closed this issue 2026-02-16 17:34:27 -05:00
Author
Owner

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

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

  • #1146: Similar terminal UI display abnormalities with visual layout problems
  • #2593: Garbled text when input contains non-ASCII characters (Chinese)
  • #2920: TUI editor hides double-byte characters in input field (CJK characters)
  • #2013: Korean characters disappear in input prompt with certain terminals

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.

@github-actions[bot] commented on GitHub (Oct 18, 2025): This issue might be a duplicate of existing issues. Please check: - #1146: Similar terminal UI display abnormalities with visual layout problems - #2593: Garbled text when input contains non-ASCII characters (Chinese) - #2920: TUI editor hides double-byte characters in input field (CJK characters) - #2013: Korean characters disappear in input prompt with certain terminals 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.
Author
Owner

@rekram1-node commented on GitHub (Oct 18, 2025):

this should be fixed when opentui version ships next week

@rekram1-node commented on GitHub (Oct 18, 2025): this should be fixed when opentui version ships next week
Author
Owner

@hallelujah-shih commented on GitHub (Oct 26, 2025):

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
@hallelujah-shih commented on GitHub (Oct 26, 2025): 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. <img width="981" height="467" alt="Image" src="https://github.com/user-attachments/assets/d9a91122-b719-4b30-9f17-3f1b9032b883" />
Author
Owner

@dipping5115 commented on GitHub (Oct 27, 2025):

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

@dipping5115 commented on GitHub (Oct 27, 2025): hi @hallelujah-shih , your issue may not cause by envirmont variable, see #2013, #2593 and #2920
Author
Owner

@Nindaleth commented on GitHub (Dec 25, 2025):

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

@Nindaleth commented on GitHub (Dec 25, 2025): @hallelujah-shih Please retry on 1.0.x versions, this is my result on `LC_ALL=zh_CN.UTF-8 opencode`: <img width="826" height="262" alt="Image" src="https://github.com/user-attachments/assets/9bdc2a41-1076-46d4-866f-c79a3149ccf5" />
Author
Owner

@dipping5115 commented on GitHub (Dec 26, 2025):

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.

@dipping5115 commented on GitHub (Dec 26, 2025): 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2158