Leading half-width numerals in Japanese input are dropped from the prompt (e.g., “1人”)
Resolved 💬 8 comments Opened Sep 27, 2025 by genki Closed Oct 22, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.42.0
Which model were you using?
gpt-5 high
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
When entering Japanese text that starts with a half-width digit, codex-cli drops the leading numeral before sending the prompt. For example, typing ひとり and transformed to 1人 results in 人 being sent.
What is the expected behavior?
The input should be sent unchanged: 1人.
What do you see instead?
The input was changed to: 人
Additional information
_No response_
8 Comments
I'm not able to reproduce by either typing or copy pasting the characters above, could you explain a bit more on how to repro this issue?
<img width="594" height="437" alt="Screenshot 2025-09-27 at 1 29 43 PM" src="https://github.com/user-attachments/assets/d23abed7-b072-4a68-a3fa-6bae060f7848" />
@tibo-openai
I have attached the video capturing this issue is really happening.
https://github.com/user-attachments/assets/16b99234-4ef1-4bda-9470-c893a49f45d6
@tibo-openai
The copy and paste doesn't cause this issue.
Only typing thru IME/Japanese Input transformer causes this issue.
I am using MacOS 15.6.1(24G90)with the default Japanese input method named "日本語入力プログラム".
I have confirmed my PR has solved this issue.
Potential duplicates detected:
Powered by Codex Action
This occurs on both WSL and Windows when using Windows Terminal.
When I enter Japanese characters and delete one character with the Backspace key, two characters disappear from the screen.
It happens not only when the text is entered with the IME, but also when it is pasted from the clipboard. The Japanese characters get garbled or broken.
Repro steps
https://github.com/user-attachments/assets/c14bd2c2-497c-451f-b0d4-e4665e5aa34f
Confirmed that the PR fixes this issue:
https://github.com/user-attachments/assets/4b289d0e-97c1-4e2e-8180-a361243b40a3
@joshka-oai Thank you for confirmation :)
@tibo-openai Would you review my PR?
@genki I'm on it right now. Just making sure that the PR doesn't break other parts of the burst paste functionality as we speak and ensuring that the area is a bit better documented than it was to make it easier to understand how some of this code fits together.