CJK Input Method (IME) not working in terminal - input bypasses IME and shows raw keystrokes #7805

Open
opened 2026-02-16 18:08:18 -05:00 by yindo · 2 comments
Owner

Originally created by @ChatGateAI on GitHub (Jan 28, 2026).

Originally assigned to: @kommander on GitHub.

Description

Chinese IME input doesn't work. When typing pinyin (e.g., nihao), the terminal in opencode shows raw keystrokes NIHAO instead of the composed characters 你好.

The IME candidate window appears correctly, but the composed text is never submitted to the terminal.

Environment

macOS (Apple Silicon)
Locale: zh_CN.UTF-8
Expected: 你好 Actual: NIHAO

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 @ChatGateAI on GitHub (Jan 28, 2026). Originally assigned to: @kommander on GitHub. ### Description Chinese IME input doesn't work. When typing pinyin (e.g., nihao), the terminal in opencode shows raw keystrokes NIHAO instead of the composed characters 你好. The IME candidate window appears correctly, but the composed text is never submitted to the terminal. Environment macOS (Apple Silicon) Locale: zh_CN.UTF-8 Expected: 你好 Actual: NIHAO ### 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 18:08:18 -05:00
Author
Owner

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

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

  • #8652: Keyboard shortcuts don't work while Korean IME is active on macOS - directly related to IME handling on macOS
  • #2013: Korean characters disappear in the input prompt when using IME - similar composition issue
  • #9945: Web terminal can't input Chinese - same IME input issue in web version
  • #8833: Web terminal cannot input Chinese - same IME input issue in web version
  • #7556: Ctrl+V image paste fails with Russian input source on macOS - demonstrates input source interference
  • #8175: Chinese output occasionally renders duplicated characters - related CJK character handling issue

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

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #8652: Keyboard shortcuts don't work while Korean IME is active on macOS - directly related to IME handling on macOS - #2013: Korean characters disappear in the input prompt when using IME - similar composition issue - #9945: Web terminal can't input Chinese - same IME input issue in web version - #8833: Web terminal cannot input Chinese - same IME input issue in web version - #7556: Ctrl+V image paste fails with Russian input source on macOS - demonstrates input source interference - #8175: Chinese output occasionally renders duplicated characters - related CJK character handling issue Feel free to ignore if none of these address your specific case.
Author
Owner

@LeoNardo-LB commented on GitHub (Feb 14, 2026):

same issue

@LeoNardo-LB commented on GitHub (Feb 14, 2026): same issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7805