Skip to content

v0.2.12

Choose a tag to compare

@cnaron cnaron released this 28 Apr 03:44
· 136 commits to main since this release

Fix: swallowing characters during streaming (IME root cause)

updateNSView was calling textView.font = font and textView.string = text on every streaming token. On macOS, modifying these properties while the input method (中文输入法) has active marked text silently cancels the in-progress candidate — causing typed characters to disappear.

Fixes:

  • All updateNSView text/font writes now check markedRange().length == 0 first — IME composition is never interrupted
  • text.isEmpty (send-clear) now also resets the recency guard so the clear always fires correctly
  • Recency guard extended from 0.5s → 1.0s