Skip to content

Leading half-width numerals in Japanese input are dropped from the prompt (e.g., “1人”) #4356

Closed

Description

@genki

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

Activity

  1. added
    bug
    on Sep 27, 2025
  2. tibo-openai commented on Sep 27, 2025

    @tibo-openai
    Collaborator

    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?

    Screenshot 2025-09-27 at 1 29 43 PM
  3. genki commented on Sep 27, 2025

    @genki
    ContributorAuthor

    @tibo-openai

    I have attached the video capturing this issue is really happening.

    494793498-571a84a4-763f-4f82-9d09-df09dce220e3.1.mov
  4. genki commented on Sep 27, 2025

    @genki
    ContributorAuthor

    @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.

  5. yanoryuichi commented on Oct 18, 2025

    @yanoryuichi

    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.

  6. joshka-oai commented on Oct 20, 2025

    @joshka-oai
    Contributor

    Repro steps

    • install Japanese - Romanji language and select this
    • Type hitori (romanji for ひとり)
    • from the popup select the item that has the half-width character 1人 (may need to tab a few times to select the right part of the popup dialog and search up/down to find this)
    • press enter a couple of times to insert the characters:
    Screen.Recording.2025-10-20.at.11.26.19.AM.mov

    Confirmed that the PR fixes this issue:

    Screen.Recording.2025-10-20.at.11.33.49.AM.mov
  7. genki commented on Oct 20, 2025

    @genki
    ContributorAuthor

    @joshka-oai Thank you for confirmation :)

    @tibo-openai Would you review my PR?

  8. joshka-oai commented on Oct 20, 2025

    @joshka-oai
    Contributor

    @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.

  9. added a commit that references this issue on Oct 22, 2025
    ed32da0
  10. added a commit that references this issue on Oct 28, 2025
    4979374
  11. added a commit that references this issue on Nov 10, 2025
    d03629b
  12. added a commit that references this issue on Nov 14, 2025
    6dcafdb
  13. added a commit that references this issue on Dec 2, 2025
    946edcb
  14. added a commit that references this issue on Jun 8, 2026
    39d3aa5
  15. added a commit that references this issue on Aug 7, 2026
    a84f92b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions