Skip to content

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

@seaworld008

Description

@seaworld008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions