Description
When running TUI applications (e.g., opencode) in OpenWarp on Windows, long-pressing Ctrl to activate a voice IME (e.g., Zhipu IME / Meta Echo) causes the TUI app to immediately exit/crash.
Reproduction Steps
- Install OpenWarp v2026.05.10.preview on Windows
- Launch any TUI application:
opencode
- Long-press the right Ctrl key to activate a voice IME
- The TUI app immediately exits
Expected Behavior
The TUI app should continue running after IME activation.
Actual Behavior
The TUI app crashes/exits immediately when the voice IME is activated.
Environment
- OS: Windows 11
- OpenWarp version: v2026.05.10.preview (zerx-lab fork)
- TUI app tested: opencode v1.14.48
- IME tested: Zhipu IME, Meta Echo
- Hotkey: Long-press right Ctrl
Additional Notes
Possible Root Cause
When the voice IME activates via long-press Ctrl:
- The IME UI pops up, potentially causing a focus change in Warp
- Warp's input mode may transition between passthrough and native input
- During this transition, Warp may send unexpected control sequences or terminal reset sequences to the PTY
- The TUI app receives these and exits
Description
When running TUI applications (e.g., opencode) in OpenWarp on Windows, long-pressing Ctrl to activate a voice IME (e.g., Zhipu IME / Meta Echo) causes the TUI app to immediately exit/crash.
Reproduction Steps
opencodeExpected Behavior
The TUI app should continue running after IME activation.
Actual Behavior
The TUI app crashes/exits immediately when the voice IME is activated.
Environment
Additional Notes
os:windows, area:terminal-input, bug, repro:high.Possible Root Cause
When the voice IME activates via long-press Ctrl: