codex icon indicating copy to clipboard operation
codex copied to clipboard

Chinese IME — pressing Space hides previously typed characters (PowerShell on Windows 11)

Open seaworld008 opened this issue 1 year ago • 2 comments

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

  1. Open PowerShell on Windows 11.
  2. Run codex.
  3. Switch to Chinese IME (Microsoft Pinyin).
  4. Type some Chinese text.
  5. Press Space (either to commit a candidate or to insert a space).
  6. 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

seaworld008 avatar Oct 10 '25 06:10 seaworld008

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4870
  • #3260
  • #4898
  • #3693
  • #4861

Powered by Codex Action

github-actions[bot] avatar Oct 10 '25 06:10 github-actions[bot]

It has fixed in #4921, but waiting approve

MomentDerek avatar Oct 12 '25 01:10 MomentDerek