codex icon indicating copy to clipboard operation
codex copied to clipboard

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

Open Akrelion45 opened this issue 1 year ago • 10 comments

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

Akrelion45 avatar Aug 22 '25 23:08 Akrelion45

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

Priyabhunia avatar Aug 23 '25 05:08 Priyabhunia

Sure

Image

Akrelion45 avatar Aug 23 '25 11:08 Akrelion45

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 .

Priyabhunia avatar Aug 23 '25 15:08 Priyabhunia

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

Image

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

Akrelion45 avatar Aug 23 '25 16:08 Akrelion45

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 /

YasinHossain avatar Aug 25 '25 05:08 YasinHossain

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.

Akrelion45 avatar Aug 25 '25 15:08 Akrelion45

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.

Priyabhunia avatar Aug 25 '25 15:08 Priyabhunia

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++

Image

lupinsansei avatar Aug 27 '25 08:08 lupinsansei

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++ Image

Is this the only solution left

Priyabhunia avatar Aug 27 '25 19:08 Priyabhunia

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

etraut-openai avatar Nov 25 '25 07:11 etraut-openai