Pad/internal
Greg Pomerantz 51344b9a5b IME: fix post-commit caret for replacement commits; trace IME pushes
ApplyIMECommitToModel computed the caret pushed to the IME right
after a commit as Range.End + len(text). That is correct for a plain
insertion (Start == End) but wrong for a replacement — the case a
swipe/autocorrect over a selection produces: the inserted text starts
at Range.Start, so the caret is Range.Start + len(text). A 4-rune
replacement (the 'samet' autocorrect on the phone) pushed the caret
4 runes past the inserted text, desynchronizing the IME's caret from
ours at exactly the moment its local model was being updated; the
persistent 4-rune drift that followed (every commit 4 runes ahead,
then the empty-fix-up loop) matches this.

The logic side (applyIMECommitBytes) already computed the correct
caret; this aligns the renderer's immediate push with it.

Also log every IME push (snippet restarts, selection updates, commit
pushes) from the renderer: the phone incident's logcat rotated before
it could be re-analyzed, so the next occurrence must be
reconstructable from what we actually pushed to the IME.
2026-09-13 18:58:27 -04:00
..
browser Reload the previous directory's list after a failed navigation 2026-09-03 12:53:23 -04:00
editor IME: force a re-syncing snippet re-push when the IME desynchronizes 2026-09-13 18:23:06 -04:00
io/pool IME: map commits against the whole buffer; drop the renderer-side model 2026-09-13 11:57:38 -04:00
perf Add pre-release frame-regression profiling 2026-08-20 14:18:08 -04:00
test/e2e IME: force a re-syncing snippet re-push when the IME desynchronizes 2026-09-13 18:23:06 -04:00
ui IME: fix post-commit caret for replacement commits; trace IME pushes 2026-09-13 18:58:27 -04:00