Repository navigation
fix(editor): a composition always ends (iOS) - #19
Conversation
While a composition is open, local changes are not incorporated and etherpad's collab client holds back NEW_CHANGES from the server. iOS Safari does not always send compositionend (keyboard dismissed, focus lost, inline prediction accepted), so the pad kept the typed text locally and sent nothing - and applied nothing from others. A composition now also ends on blur, on an input event with isComposing === false, and after 3 s without composition activity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012RMvvMtnCwj6ycD9fwLYVu
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoEnd abandoned editor compositions on iOS
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
… closed A pause longer than the watchdog timeout does not prove the composition is over. compositionupdate and composing input events now re-open it, so text that is still being composed is not incorporated before the real compositionend. Addresses the Qodo review on #19. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012RMvvMtnCwj6ycD9fwLYVu
Reported on an iPhone: the keyboard appears and typing works locally, but nothing reaches the server.
Cause:
AceEditordoes not incorporate local changes.collab_clientwaits forgetInInternationalComposition()before applyingNEW_CHANGESfrom the server.compositionend, for example when the keyboard is dismissed, the field loses focus or a prediction is accepted.Fix: a composition also ends
blurof the editor,inputevent withisComposing === false,compositionstartorcompositionupdate(watchdog,AceEditor.COMPOSITION_TIMEOUT_MS).The end resolves the waiting promise and incorporates the text right away.
Test: new play test
EpEditor › CompositionAlwaysEndscovering blur, a non-composing input (the text typed during the composition ends up in the editor), the watchdog and the normalcompositionend. Locally all 139 tests pass.After merge and release, etherpad-go needs the new version.
Generated by Claude Code