Description
What happened?
When using the OpenCode extension in VS Code on Windows with the default modern Microsoft Pinyin IME, pressing the Caps Lock key (which toggles case/language) while focused on the chat input box inserts a garbled or unprintable character instead of just toggling the keyboard state.
Important Clue for Developers:
This issue seems related to how the Webview handles modern IME composition events. If I go to Windows Settings and enable "Use previous version of Microsoft Pinyin" (compatibility mode), the bug disappears entirely. It only happens with the modern Windows IME architecture. It also does not happen in the native VS Code editor or search bar, only within the OpenCode Webview.
Plugins
None / Not applicable
OpenCode version
0.0.13
Steps to reproduce
1.Use a Windows 10/11 machine with the default Microsoft Pinyin IME.
2.Open the OpenCode chat panel in VS Code.
3.Focus the text input box.
4.Press the Caps Lock key (or click Caps on the Windows on-screen keyboard).
5.Observe the unexpected garbled character appearing in the input box.
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
What happened?
When using the OpenCode extension in VS Code on Windows with the default modern Microsoft Pinyin IME, pressing the Caps Lock key (which toggles case/language) while focused on the chat input box inserts a garbled or unprintable character instead of just toggling the keyboard state.
Important Clue for Developers:
This issue seems related to how the Webview handles modern IME composition events. If I go to Windows Settings and enable "Use previous version of Microsoft Pinyin" (compatibility mode), the bug disappears entirely. It only happens with the modern Windows IME architecture. It also does not happen in the native VS Code editor or search bar, only within the OpenCode Webview.
Plugins
None / Not applicable
OpenCode version
0.0.13
Steps to reproduce
1.Use a Windows 10/11 machine with the default Microsoft Pinyin IME.
2.Open the OpenCode chat panel in VS Code.
3.Focus the text input box.
4.Press the Caps Lock key (or click Caps on the Windows on-screen keyboard).
5.Observe the unexpected garbled character appearing in the input box.
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response