Copy Paste with '/', like a file path, makes codex hang..
Resolved 💬 2 comments Opened Dec 7, 2025 by Spacetime99 Closed Mar 2, 2026
💡 Likely answer: A maintainer (Bronx83, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.65.0
What subscription do you have?
Plus
Which model were you using?
5.1
What platform is your computer?
MacOS
What issue are you seeing?
Hangs, no message
What steps can reproduce the bug?
open codex, copy / paste - /dev/tty0
What is the expected behavior?
_No response_
Additional information
_No response_
2 Comments
I was able to reproduce this issue. It occurs because the application attempts to read image dimensions from the path without verifying if it's a regular file first. This causes
image::image_dimensionsto block indefinitely when encountering special files like/dev/tty0or named pipes.I have submitted a PR that fixes this by checking
std::fs::metadatato ensure the path is a regular file before attempting to read it.Closing because of lack of repro.