-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
What version of Codex is running?
Codex CLI: 0.46.0
Which model were you using?
gpt-5-codex
What platform is your computer?
OS: Windows 11 x64 ; Shell: PowerShell 7.5.3
What steps can reproduce the bug?
Description
When using Codex CLI in PowerShell on Windows 11 with the Chinese IME enabled, pressing Space during composition causes the already-committed Chinese characters immediately to the left of the caret to become invisible (they appear “hidden” as if not drawn). Input still works, but the characters are not visible until further actions (e.g., continuing to type, moving the cursor, or submitting the line) sometimes trigger a repaint.
Steps to Reproduce
- Open PowerShell on Windows 11.
- Run codex.
- Switch to Chinese IME (Microsoft Pinyin).
- Type some Chinese text.
- Press Space (either to commit a candidate or to insert a space).
- Observe that the characters directly to the left of the caret become invisible.
What is the expected behavior?
Expected Behavior
Previously typed/committed characters should remain visible when Space is pressed during IME composition.
What do you see instead?
Actual Behavior
Pressing Space hides previously typed characters to the left of the caret until another action causes the line to be repainted.
Additional information
Notes / Additional Context
- The issue is consistently reproducible on my machine.
- It looks like an IME composition + line redraw issue (text attributes or paint order) in the REPL/TUI layer.
Versions (for convenience)
codex --version
codex-cli 0.46.0
$PSVersionTable.PSVersion
7.5.3