Skip to content

Bug: Pasting Turkish i/İ into Codex CLI on Windows drops those characters (only IIII ııı remains) #5684

Closed

Description

@ahmetcemkaraca

What version of Codex is running?

0.49.0

What subscription do you have?

pro

Which model were you using?

gpt-5-codex(med-high)

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

Additional information / environment

Terminals tried: Windows PowerShell (inside Windows Terminal), classic PowerShell.

Keyboard layouts tried: Turkish Q and US — same result.

Other CLIs in the same terminal do not have this paste problem (so it appears specific to Codex CLI’s TUI input handling).

No custom Codex keybindings; VI mode not available.

Config is near-default. CODEX_HOME points to ~/.codex.

Logs & diagnostics

If helpful, I can attach:

~/.codex/log/codex-tui.log excerpt around the time of paste

~/.codex/history.jsonl for the affected session (if relevant)

What steps can reproduce the bug?

Launch Codex CLI: codex
Copy this test string:
iiii İİİ ııı
Paste into the Codex CLI input box (PowerShell / Windows Terminal).

Note: VI mode is not enabled; bracketed paste support in the terminal is not available.

What is the expected behavior?

All pasted characters should appear as-is:
iiii İİİ ııı
What do you see instead?

Only these parts show up (the dotted i / uppercase İ go missing):
IIII ııı

So lowercase i and uppercase İ are dropped/stripped on paste; uppercase dotless I and lowercase dotless ı remain.

Additional information

According to Codex docs, Windows support is still experimental and WSL is recommended; however, this looks like a specific paste/input bug in the CLI TUI on Windows because other CLIs in the same terminal handle these characters correctly.

Related issues
Cannot input or paste @ sign on Windows (#4253) — indicates paste/input handling quirks on Windows TUI.
GitHub

Workarounds tried

Switching keyboard layout to US → No change
Updating PowerShell / Windows Terminal → No change
Toggling terminal paste/vi modes → VI mode not present; bracketed paste not supported → No change
Using other CLIs in the same terminal → Works fine

Activity

  1. added
    bug
    on Oct 25, 2025
  2. added
    windows-os
    on Oct 25, 2025
  3. github-actions commented on Oct 25, 2025

    @github-actions
    Contributor
  4. adsqx commented on Oct 25, 2025

    @adsqx

    I think this might be caused by requery_default_colors(). I sent a PR, if it works and gets merged, we'll see if the problem disappears.

    I checked with bracketed paste completely disabled and it worked fine. There's no mechanism there that could do anything like that to paste burst. There are issues with paste burst, but only when you paste very long texts with bracketed paste disabled. When you disable bracketed paste, the system works practically the same on Windows as on any other system—paste burst is a simple mechanism.

    I'm just betting that you paste it and at the same time RGB:// comes in and causes the substitution.

    For example, when I tried to paste what you wrote in the current version on Ubuntu, nothing pastes at all for me. Only after removing the problem I described does it work.

    #5683

  5. SeanD3v commented on Oct 26, 2025

    @SeanD3v

    Try version 0.50.0—I think this issue seems to have been fixed.

  6. ahmetcemkaraca commented on Oct 26, 2025

    @ahmetcemkaraca
    Author

    I think this might be caused by requery_default_colors(). I sent a PR, if it works and gets merged, we'll see if the problem disappears.

    I checked with bracketed paste completely disabled and it worked fine. There's no mechanism there that could do anything like that to paste burst. There are issues with paste burst, but only when you paste very long texts with bracketed paste disabled. When you disable bracketed paste, the system works practically the same on Windows as on any other system—paste burst is a simple mechanism.

    I'm just betting that you paste it and at the same time RGB:// comes in and causes the substitution.

    For example, when I tried to paste what you wrote in the current version on Ubuntu, nothing pastes at all for me. Only after removing the problem I described does it work.

    #5683

    for me still same.

    Try version 0.50.0—I think this issue seems to have been fixed.

    still same

  7. adsqx commented on Oct 26, 2025

    @adsqx

    still same

    But that fix hasn’t been implemented yet.

  8. elandil2 commented on Nov 1, 2025

    @elandil2

    I have same issue, couldnt use cli version of codex. and also "@" char. Not sure but it also effect mcp connection, just came from another cli from openai competator, this is not what i expected..

  9. added
    TUI
    on Nov 15, 2025
  10. etraut-openai commented on Nov 19, 2025

    @etraut-openai
    Contributor

    This should now be fixed in 0.59.0. Please let us know if you see similar issues in the latest version.

  11. elandil2 commented on Feb 4, 2026

    @elandil2

    It resolved for me.

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

    TUIbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions