Pasting a path removes \ in the CLI in the Windows Version, also Pasting text from multiple lines only pastes the first line.

Resolved 💬 10 comments Opened Aug 22, 2025 by Akrelion45 Closed Nov 25, 2025
💡 Likely answer: A maintainer (Akrelion45, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.23.0

Which model were you using?

gpt-5-high

What platform is your computer?

Windows

What steps can reproduce the bug?

When Pasting a path like C:\ProgramData\Blizzard Entertainment\Battle.net\Cache in Codex it becomes

C:ProgramDataBlizzard EntertainmentBattle.netCache

Also, if you are pasting multiple lines in to codex it is just pasting the first line in to the chat.
Example:
aaaa

bbbb
cccc

becomes just:
aaaa

This makes it hard, to paste things like console outputs or logs in to the chat

What is the expected behavior?

Path should be:
C:\ProgramData\Blizzard Entertainment\Battle.net\Cache in Codex

Pasting text should be:
aaaa

bbbb
cccc

Or do it like claude [+100 lines]

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

10 Comments

Priyabhunia · 11 months ago

yes the second one is happening with me but I dont know about the first one . can you give me more details or at least a screenshot

Akrelion45 contributor · 11 months ago

Sure

<img width="1020" height="330" alt="Image" src="https://github.com/user-attachments/assets/394380df-237e-44da-bcf1-c218bcc38ecf" />

Priyabhunia · 11 months ago

No thats definitely not happening with my one . I think this one temporary you just have to delete and download one more time .

And can you pls tell me one more thing in the first problem, I think the issue with this is just not appearing/showing the text in the tui .can you confirm that the pasted script or prompt is working properly without only appearing in screen only .
If you tell me I can assure that this is only problem with the tui.

Actually my codex is not working properly so I have some problem with the testing .I just opened one issue #2612
But I also want to try atleast one time on this issue .

Akrelion45 contributor · 11 months ago

I have copied multiple lines in to codex and told it "output me the log i just gave you" and it outputed me just the first line. so its not just a visual issue. It really has no clue about what was in line 2,3,4

<img width="843" height="331" alt="Image" src="https://github.com/user-attachments/assets/59f6c4b2-2306-441b-9b3c-e80e9e80b4d4" />

Also, the other problem, with removing the \ from my path when copying it into codex still happens after a fresh installation of codex

YasinHossain · 10 months ago

Yes this is so frustrating. To fix a error I have to type the entire prompt because I can't paste the error log entirely. It only paste one line and misses the rest that had space or /

Akrelion45 contributor · 10 months ago

And I just confirmed its a windows only problem. On my Linux root server copy pasting multiple lines or a path works perfect.

Probably works fine on Windows + WSL too, just on Native Windows not.

Priyabhunia · 10 months ago

I also trying to find
whats going on the code . There is no clear solution.but they did notice the problem I can say by commented out part.but still with windows these cli tools are very poorly Integrated.

lupinsansei · 10 months ago

If you remove all the CR characters from your text before pasting into Codex on Windows, it can see the rest of the lines as they will still be separated by LF characters. Windows unlike Unix ends each line with CR + LF.

To make it easy to remove the CR characters but leave the LF characters I use Notepad++

<img width="940" height="145" alt="Image" src="https://github.com/user-attachments/assets/5719e440-cddc-42f4-8e09-8c983518068e" />

Priyabhunia · 10 months ago
> If you remove all the CR characters from your text before pasting into Codex on Windows, it can see the rest of the lines as they will still be separated by LF characters. Windows unlike Unix ends each line with CR + LF. > To make it easy to remove the CR characters but leave the LF characters I use Notepad++ > <img alt="Image" width="940" height="145" src="https://private-user-images.githubusercontent.com/6993585/482572679-5719e440-cddc-42f4-8e09-8c983518068e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTYzMjQ3NjQsIm5iZiI6MTc1NjMyNDQ2NCwicGF0aCI6Ii82OTkzNTg1LzQ4MjU3MjY3OS01NzE5ZTQ0MC1jZGRjLTQyZjQtOGUwOS04Yzk4MzUxODA2OGUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTA4MjdUMTk1NDI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWI1ZWVmNTYyNjlkOTI2MDlmZmEyZmI4NzQ4MGE5Mjc1OGNlYTYyNjNmYWNlYzc4MzIwNGRiNGYwMDY2MGQzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.IDnD3E0ivL9xKkyE62KnW_rW9HJM1CSJGGhx9XePuxQ"> Is this the only solution left
etraut-openai contributor · 7 months ago

The pasting of \ has been fixed. The other issue reported here is a duplicate of #2137