GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OpenCode TUI Chinese Text Display Issue · Issue #7891 · anomalyco/opencode

OpenCode TUI Chinese Text Display Issue #7891

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
OpenCode TUI Chinese Text Display Issue#7891
Copy link
Assignees
kommander

Description

@darkmanno6
darkmanno6
opened on Jan 12, 2026
Issue body actions

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. darkmanno6
    added
    bugSomething isn't working
    on Jan 12, 2026
  2. github-actions
    assigned
    kommander
    on Jan 12, 2026
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 12, 2026
  4. github-actions commented on Jan 12, 2026

    @github-actions
    github-actionsBot
    on Jan 12, 2026 – with GitHub Actions
    Contributor
    More actions

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

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

  5. kommander commented on Jan 12, 2026

    @kommander
    kommander
    on Jan 12, 2026 – with Linear
    Contributor
    More actions

    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.

  6. darkmanno6 commented on Jan 12, 2026

    @darkmanno6
    darkmanno6
    on Jan 12, 2026
    Author
    More actions

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

    @kommander
    kommander
    on Jan 12, 2026 – with Linear
    Contributor
    More actions

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

  8. darkmanno6 commented on Jan 13, 2026

    @darkmanno6
    darkmanno6
    on Jan 13, 2026
    Author
    More actions

    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

  9. kommander commented on Jan 13, 2026

    @kommander
    kommander
    on Jan 13, 2026 – with Linear
    Contributor
    More actions

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

  10. darkmanno6 commented on Jan 13, 2026

    @darkmanno6
    darkmanno6
    on Jan 13, 2026
    Author
    More actions

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

    @kommander
    kommander
    on Jan 13, 2026 – with Linear
    Contributor
    More actions

    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.

  12. darkmanno6 commented on Jan 13, 2026

    @darkmanno6
    darkmanno6
    on Jan 13, 2026
    Author
    More actions

    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

  13. kommander commented on Jan 13, 2026

    @kommander
    kommander
    on Jan 13, 2026 – with Linear
    Contributor
    More actions

    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.

  14. darkmanno6 commented on Jan 14, 2026

    @darkmanno6
    darkmanno6
    on Jan 14, 2026
    Author
    More actions

    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

  15. 01luyicheng
    added a commit that references this issue on Jan 31, 2026

    fix(pty): Add UTF-8 encoding defaults for Windows PTY

    b85b0d3
  16. code-lixm commented on Mar 2, 2026

    @code-lixm
    code-lixm
    on Mar 2, 2026
    More actions

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

  17. syllr commented on Mar 3, 2026

    @syllr
    syllr
    on Mar 3, 2026
    More actions

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

  18. kommander commented on Mar 4, 2026

    @kommander
    kommander
    on Mar 4, 2026 – with Linear
    Contributor
    More actions

    Did this improve in the latest version?

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

    @github-actions
    github-actionsBot
    on Jul 3, 2026 – with GitHub Actions
    Contributor
    More actions

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

  21. github-actions
    closed this as not plannedon Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.