Repository navigation
Description
Operating system
Other: Android on Galaxy Fold7 with Samsung Keyboard Korean IME
Orca version
- Repository version observed locally:
1.4.120-rc.2 - Regression introduced by Fix mobile terminal Korean IME composition on Android #7011 (merged 2026-07-02)
Details
Short summary:
After #7011, Korean cannot be typed into the Orca mobile terminal at all. While composing Hangul, nothing reaches the terminal — no live echo, no committed text — and Space does not send the pending text either. English/ASCII input still works, so the breakage is Korean-only.
What happened:
#7011 fixed the original jamo-splitting bug (#7000) by deferring Hangul IME preedit values instead of sending each onChangeText intermediate. But the deferral has no exit path during normal typing:
mobile/src/terminal/terminal-live-text-commit.tsreturns{ kind: 'defer', delayMs: null }for ANY text containing Hangul — unlike other IME text, which gets a 150 ms settle timer.mobile/src/terminal/use-terminal-live-pending-input-flush.tsnever schedules a commit timer whendelayMs === null, so pending Hangul is only flushed by Enter, special keys (Tab/arrows/Esc/F-keys), or accessory-bar keys.- Space is plain text, not a flush trigger:
'한글 'still contains Hangul, so the whole string re-defers forever. Any ASCII typed after a Hangul character is swallowed with it ('한글abc'defers as a whole, because the check scans the entire field value). - The pending text lives in the hidden capture
TextInput, which isopacity: 0, width: 1, height: 1— the user can never see it.
Net effect: typing Korean produces zero feedback anywhere. Before #7011, intermediates were at least visible (as split jamo); now nothing is.
Compounding factors:
- On Samsung Keyboard, the first Enter during active composition often only commits the composition without firing
onSubmitEditing, so even the one primary flush path can appear dead on first press. - The pending-clear effect in
mobile/src/terminal/use-terminal-live-input-commit.tswipes pending composition whenever the active session tab type is transientlyundefined(the mobile tab list briefly lagging desktop state), silently dropping in-progress Hangul.
How can we reproduce it?
- Use Orca mobile on Android with Samsung Keyboard set to Korean input.
- Open a terminal session and focus the terminal live input surface.
- Type
한글and keep typing, including a trailing space. - Observe the terminal receives nothing while typing; only Enter (sometimes needing a second press mid-composition) eventually delivers text, executing the line immediately with no chance to preview it.
Expected behavior:
Korean typing should echo to the terminal as you type (without leaking decomposed jamo), Space should commit the composed syllables, and Enter should submit the full text plus a newline.
Fix direction:
Replace the indefinite deferral with a mirror model: stream the stable prefix of the capture field to the PTY immediately (Hangul composition only ever mutates the trailing syllable), hold at most the last Hangul code point with a short settle timer, treat a trailing non-Hangul character (Space/punctuation/ASCII) as the composition-commit signal, and repair premature commits with DEL corrections. PR: #7181.
Activity
realitsyourman commentedon Jul 3, 2026
Fix verified on a physical Galaxy Z Fold7 (SM-F966N) with Samsung Keyboard Korean IME using a release APK built from the PR branch: Hangul now composes correctly in the mobile terminal live input — live echo of the stable prefix, no jamo splitting, and Space commits immediately (
안녕하세요 반갑습니다typed end-to-end). Fix lands via #7181, which closes this issue on merge. Note: #7182 was an accidental duplicate of this issue and has been closed.