opencode
opencode copied to clipboard
opentui: Strange characters appear between Chinese characters
Description
OpenCode version
1.0.15
Steps to reproduce
Simply send any Chinese instructions to OpenCode
Screenshot and/or share link
No response
Operating System
Mac OS 15.5 (24F74)
Terminal
Warp
This issue might be a duplicate of existing issues. Please check:
- #3734: CJK characters break some features like
@mentions - This issue describes problems with CJK (Chinese, Japanese, Korean) character handling in opentui, including cursor positioning issues - #3493: Korean (Hangul) characters display as broken/garbled in input field - This issue reports similar display problems with Korean characters appearing broken/garbled in the input field
Both issues involve CJK character display problems in opentui, similar to the strange characters appearing between Chinese characters reported here.
Feel free to ignore if none of these address your specific case.
I am looking into this.
Related opentui issue:
- sst/opentui#255
- sst/opentui#262
- (includes grapheme test, albeit skipped)