OpenCode TUI Chinese Text Display Issue #4793

Open
opened 2026-02-16 17:45:27 -05:00 by yindo · 11 comments
Owner

Originally created by @darkmanno6 on GitHub (Jan 11, 2026).

Originally assigned to: @kommander on GitHub.

Description

After upgrading OpenCode TUI to version 1.1.13, Chinese characters cannot be displayed properly(). However, they display correctly in version 1.1.8.
It will be displayed if the mouse selects it; otherwise, it will not be displayed, as shown in the figure.

Image

Environment

  • Operating System: macOS
  • Terminal: iTerm2
  • OpenCode Version:
    • 1.1.8: Chinese characters display normally
    • 1.1.13: Chinese characters cannot be displayed
  • Installation Method: bun add -g opencode-ai
  • Terminal Font: Font that supports Chinese (Chinese text displays normally in other applications)

Additional Information

  • Terminal encoding is set to UTF-8
  • iTerm2 font supports Chinese (Chinese text displays normally in other system applications)
  • Pure English messages display normally in both versions

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @darkmanno6 on GitHub (Jan 11, 2026). Originally assigned to: @kommander on GitHub. ### Description After upgrading OpenCode TUI to version 1.1.13, Chinese characters cannot be displayed properly(). However, they display correctly in version 1.1.8. It will be displayed if the mouse selects it; otherwise, it will not be displayed, as shown in the figure. <img width="1012" height="198" alt="Image" src="https://github.com/user-attachments/assets/d4da55a4-bb20-46d4-858d-1b5d7207273e" /> ### Environment - Operating System: macOS - Terminal: iTerm2 - OpenCode Version: - 1.1.8: ✅ Chinese characters display normally - 1.1.13: ❌ Chinese characters cannot be displayed - Installation Method: bun add -g opencode-ai - Terminal Font: Font that supports Chinese (Chinese text displays normally in other applications) ### Additional Information - Terminal encoding is set to UTF-8 - iTerm2 font supports Chinese (Chinese text displays normally in other system applications) - Pure English messages display normally in both versions ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:45:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2026):

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

  • #7650: Chinese text in background chat disappears when Ctrl+P command menu is open - Related to Chinese character rendering issues in v1.1.12
  • #5763: Unicode character in line causing rendering to count characters incorrectly - Similar character rendering problem affecting display
  • #3493: Korean (Hangul) characters display as broken/garbled in input field - CJK character rendering issue affecting visibility
  • #6216: Unescaped binary response scrambles TUI, possible code injection - Binary/character scrambling issues in TUI

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

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7650: Chinese text in background chat disappears when Ctrl+P command menu is open - Related to Chinese character rendering issues in v1.1.12 - #5763: Unicode character in line causing rendering to count characters incorrectly - Similar character rendering problem affecting display - #3493: Korean (Hangul) characters display as broken/garbled in input field - CJK character rendering issue affecting visibility - #6216: Unescaped binary response scrambles TUI, possible code injection - Binary/character scrambling issues in TUI Feel free to ignore if none of these address your specific case.
Author
Owner

@kommander commented on GitHub (Jan 12, 2026):

Can you try running the debug version like OC_NO_KITTY_KEYBOARD=1 bunx opencode-ai@snapshot-kmdr-debug? Or try it in a terminal that does not support kitty keyboard, like Alacritty. I need to know if it is an issue with kitty keyboard input.

@kommander commented on GitHub (Jan 12, 2026): Can you try running the debug version like `OC_NO_KITTY_KEYBOARD=1 bunx opencode-ai@snapshot-kmdr-debug`? Or try it in a terminal that does not support kitty keyboard, like Alacritty. I need to know if it is an issue with kitty keyboard input.
Author
Owner

@darkmanno6 commented on GitHub (Jan 12, 2026):

Can you try running the debug version like OC_NO_KITTY_KEYBOARD=1 bunx opencode-ai@snapshot-kmdr-debug? Or try it in a terminal that does not support kitty keyboard, like Alacritty. I need to know if it is an issue with kitty keyboard input.

it works on Alacritty.
and I've noticed that different themes also affect this issue. For example, the system theme exhibits this problem, while some others like ayu do not.

Additionally, there seem to be some issues with the theme colors. I remember that the Materia theme is a dark theme, but now it's appearing as a light theme.

Image
@darkmanno6 commented on GitHub (Jan 12, 2026): > Can you try running the debug version like `OC_NO_KITTY_KEYBOARD=1 bunx opencode-ai@snapshot-kmdr-debug`? Or try it in a terminal that does not support kitty keyboard, like Alacritty. I need to know if it is an issue with kitty keyboard input. it works on Alacritty. and I've noticed that different themes also affect this issue. For example, the `system` theme exhibits this problem, while some others like `ayu` do not. Additionally, there seem to be some issues with the theme colors. I remember that the Materia theme is a dark theme, but now it's appearing as a light theme. <img width="2272" height="1422" alt="Image" src="https://github.com/user-attachments/assets/89703eef-7580-45c5-bb5a-3b1f49400618" />
Author
Owner

@kommander commented on GitHub (Jan 12, 2026):

Could you try bunx opencode-ai@snapshot-kmdr-debug again if that input issue still happens in the terminal it happened before?

@kommander commented on GitHub (Jan 12, 2026): Could you try `bunx opencode-ai@snapshot-kmdr-debug` again if that input issue still happens in the terminal it happened before?
Author
Owner

@darkmanno6 commented on GitHub (Jan 12, 2026):

Could you try bunx opencode-ai@snapshot-kmdr-debug again if that input issue still happens in the terminal it happened before?

yes ,it still happened
Image

@darkmanno6 commented on GitHub (Jan 12, 2026): > Could you try `bunx opencode-ai@snapshot-kmdr-debug` again if that input issue still happens in the terminal it happened before? yes ,it still happened <img width="1270" height="960" alt="Image" src="https://github.com/user-attachments/assets/6b6bc2d4-5945-4202-87ea-b0181d60adf6" />
Author
Owner

@kommander commented on GitHub (Jan 12, 2026):

Weird. Did you try without any plugins, like without OMO?

@kommander commented on GitHub (Jan 12, 2026): Weird. Did you try without any plugins, like without OMO?
Author
Owner

@darkmanno6 commented on GitHub (Jan 12, 2026):

Weird. Did you try without any plugins, like without OMO?

I t ry it without omo , and still happened

Image

and i have found that it worked ok in the vscode terminal

Image
@darkmanno6 commented on GitHub (Jan 12, 2026): > Weird. Did you try without any plugins, like without OMO? I t ry it without omo , and still happened <img width="1538" height="956" alt="Image" src="https://github.com/user-attachments/assets/f26b903e-219d-49e2-9e78-fe08e7df534d" /> and i have found that it worked ok in the vscode terminal <img width="3508" height="1268" alt="Image" src="https://github.com/user-attachments/assets/cee9cdac-7d7c-42ca-b994-c18f358e43c9" />
Author
Owner

@kommander commented on GitHub (Jan 13, 2026):

I want to get to the bottom of this. Can you get the opentui examples app from https://github.com/anomalyco/opentui/releases/download/v0.1.72/opentui-examples-v0.1.72-windows-x64.zip and run the "Keypress Debug Tool", type a few characters that cause problems in the prompt textarea, then trigger shift+s (sorry, western keybinding at the moment), which should create a json log file in the CWD with some info. Please share that.

@kommander commented on GitHub (Jan 13, 2026): I want to get to the bottom of this. Can you get the opentui examples app from [https://github.com/anomalyco/opentui/releases/download/v0.1.72/opentui-examples-v0.1.72-windows-x64.zip](https://github.com/anomalyco/opentui/releases/download/v0.1.72/opentui-examples-v0.1.72-windows-x64.zip) and run the "Keypress Debug Tool", type a few characters that cause problems in the prompt textarea, then trigger shift+s (sorry, western keybinding at the moment), which should create a json log file in the CWD with some info. Please share that.
Author
Owner

@darkmanno6 commented on GitHub (Jan 13, 2026):

I want to get to the bottom of this. Can you get the opentui examples app from https://github.com/anomalyco/opentui/releases/download/v0.1.72/opentui-examples-v0.1.72-windows-x64.zip and run the "Keypress Debug Tool", type a few characters that cause problems in the prompt textarea, then trigger shift+s (sorry, western keybinding at the moment), which should create a json log file in the CWD with some info. Please share that.

sorry,the app you provided is an .exe program, which I cannot use on my Mac system

@darkmanno6 commented on GitHub (Jan 13, 2026): > I want to get to the bottom of this. Can you get the opentui examples app from https://github.com/anomalyco/opentui/releases/download/v0.1.72/opentui-examples-v0.1.72-windows-x64.zip and run the "Keypress Debug Tool", type a few characters that cause problems in the prompt textarea, then trigger shift+s (sorry, western keybinding at the moment), which should create a json log file in the CWD with some info. Please share that. sorry,the app you provided is an .exe program, which I cannot use on my Mac system
Author
Owner

@kommander commented on GitHub (Jan 13, 2026):

Sorry, so many windows issues, I mixed that up: https://github.com/anomalyco/opentui/releases/tag/v0.1.72 - there are releases of the example app for all platforms.

@kommander commented on GitHub (Jan 13, 2026): Sorry, so many windows issues, I mixed that up:[ https://github.com/anomalyco/opentui/releases/tag/v0.1.72](https://github.com/anomalyco/opentui/releases/tag/v0.1.72) - there are releases of the example app for all platforms.
Author
Owner

@darkmanno6 commented on GitHub (Jan 13, 2026):

Sorry, so many windows issues, I mixed that up: https://github.com/anomalyco/opentui/releases/tag/v0.1.72 - there are releases of the example app for all platforms.

keypress-debug-2026-01-14T01-04-23-760Z.json

@darkmanno6 commented on GitHub (Jan 13, 2026): > Sorry, so many windows issues, I mixed that up:[ https://github.com/anomalyco/opentui/releases/tag/v0.1.72](https://github.com/anomalyco/opentui/releases/tag/v0.1.72) - there are releases of the example app for all platforms. [keypress-debug-2026-01-14T01-04-23-760Z.json](https://github.com/user-attachments/files/24603022/keypress-debug-2026-01-14T01-04-23-760Z.json)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4793