Skip to content

OpenCode TUI Chinese Text Display Issue #7891

Closed as not planned
Closed as not planned

Description

@darkmanno6

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 12, 2026
  2. github-actions commented on Jan 12, 2026

    @github-actions
    Contributor

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

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

  3. kommander commented on Jan 12, 2026

    @kommander
    Collaborator

    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.

  4. darkmanno6 commented on Jan 12, 2026

    @darkmanno6
    Author

    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
  5. kommander commented on Jan 12, 2026

    @kommander
    Collaborator

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

  6. darkmanno6 commented on Jan 13, 2026

    @darkmanno6
    Author

    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

  7. kommander commented on Jan 13, 2026

    @kommander
    Collaborator

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

  8. darkmanno6 commented on Jan 13, 2026

    @darkmanno6
    Author

    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
  9. kommander commented on Jan 13, 2026

    @kommander
    Collaborator

    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.

  10. darkmanno6 commented on Jan 13, 2026

    @darkmanno6
    Author

    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

  11. kommander commented on Jan 13, 2026

    @kommander
    Collaborator

    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.

  12. darkmanno6 commented on Jan 14, 2026

    @darkmanno6
    Author

    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

  13. code-lixm commented on Mar 2, 2026

    @code-lixm

    只要文件中含有 .git 文件就会出现这个问题,只要文件中不含有 git 目录就不会出现这个问题,或者使用 opencode 进入内部含有 git 目录的文件就不会出现这个问题

  14. syllr commented on Mar 3, 2026

    @syllr

    @code-lixm 对,是这个原因,我把.git目录删了就不会出现这个问题了

  15. kommander commented on Mar 4, 2026

    @kommander
    Collaborator

    Did this improve in the latest version?

  16. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  17. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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