Windows TUI drops non-BMP Unicode characters on paste/input
What version of Codex CLI is running?
codex-cli 0.147.0
What subscription do you have?
plus
Which model were you using?
sol max
What platform is your computer?
Windows 11
What terminal emulator and version are you using (if applicable)?
Windows PowerShell 7.4.18 Windows Terminal
Codex doctor report
What issue are you seeing?
What issue are you seeing?
Codex CLI TUI drops non-BMP Unicode characters when they are
pasted into the input composer.
BMP Unicode characters work correctly, but characters above
U+FFFF disappear.
PowerShell itself can input and display these characters normally,
so the issue only occurs inside the Codex CLI TUI.
What steps can reproduce the bug?
Steps to reproduce
- Start Codex CLI from PowerShell:
codex
- Paste the following text into the Codex input box:
A©B
A€B
A✓B
A✅B
A中B
A𠀀B
A😀B
A🔵B
Actual behavior
BMP characters are preserved:
A©B
A€B
A✓B
A✅B
A中B
Non-BMP characters are dropped:
A𠀀B -> AB
A😀B -> AB
A🔵B -> AB
Expected behavior
All Unicode characters should be preserved when pasted into
the Codex input composer.
Additional information
The same characters work correctly directly in PowerShell.
For example:
Write-Output "🔵"
correctly accepts and displays the blue-circle emoji.
This appears to be related specifically to non-BMP Unicode
characters / UTF-16 surrogate pairs in the Windows TUI input path.
Examples:
𠀀 U+20000
😀 U+1F600
🔵 U+1F535
All of these require surrogate pairs in UTF-16.
BMP characters such as:
中 U+4E2D
✅ U+2705
are accepted successfully.
What is the expected behavior?
the symbol 🔵 U+1F535 be able to show in the codex CLI input
Additional information
_No response_