You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chinese IME input not working in Unsloth Studio (WSL + Windows Chrome) #5546
Root Cause
The compositionend event never fires when using Windows IME through
Chrome accessing a WSL localhost service. Since the frontend relies on isComposing / compositionend to confirm Chinese input, the text
gets discarded.
Verified via DevTools: compositionstart and compositionupdate fire
correctly, but compositionend never fires.
Workaround
Copy-paste Chinese text works. Direct typing does not.
Suggested Fix
Instead of relying solely on compositionend, use a self-maintained composing variable with a fallback:
Track composition state manually and detect composition end by checking
if the input value contains CJK characters after an input event where
the previous state was composing.
Activity
studio/chat: release stuck IME flag when compositionend never fires (#…
wangteakwoo-wq commentedon May 18, 2026
Thank you for the incredibly fast fix! Really appreciate the effort.
studio/chat: release stuck IME flag when compositionend never fires (u…
Read the IME re-arm flush off the live composer (#8401)
fix(studio): track open IME session for idle Pinyin Enter send
fix(studio): allow Enter to send with idle macOS Pinyin IME (#12138)