You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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.
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.
Activity
github-actions commentedon Jan 12, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
kommander commentedon 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.darkmanno6 commentedon Jan 12, 2026
it works on Alacritty.
and I've noticed that different themes also affect this issue. For example, the
systemtheme exhibits this problem, while some others likeayudo 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.
kommander commentedon Jan 12, 2026
Could you try
bunx opencode-ai@snapshot-kmdr-debugagain if that input issue still happens in the terminal it happened before?darkmanno6 commentedon Jan 13, 2026
yes ,it still happened

kommander commentedon Jan 13, 2026
Weird. Did you try without any plugins, like without OMO?
darkmanno6 commentedon Jan 13, 2026
I t ry it without omo , and still happened
and i have found that it worked ok in the vscode terminal
kommander commentedon 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.
darkmanno6 commentedon Jan 13, 2026
sorry,the app you provided is an .exe program, which I cannot use on my Mac system
kommander commentedon 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.
darkmanno6 commentedon Jan 14, 2026
keypress-debug-2026-01-14T01-04-23-760Z.json
fix(pty): Add UTF-8 encoding defaults for Windows PTY
code-lixm commentedon Mar 2, 2026
只要文件中含有 .git 文件就会出现这个问题,只要文件中不含有 git 目录就不会出现这个问题,或者使用 opencode 进入内部含有 git 目录的文件就不会出现这个问题
syllr commentedon Mar 3, 2026
@code-lixm 对,是这个原因,我把.git目录删了就不会出现这个问题了
kommander commentedon Mar 4, 2026
Did this improve in the latest version?
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.