codex icon indicating copy to clipboard operation
codex copied to clipboard

Copy Paste with '/', like a file path, makes codex hang..

Open Spacetime99 opened this issue 11 months ago • 2 comments

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

Spacetime99 avatar Dec 07 '25 10:12 Spacetime99

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_dimensions to block indefinitely when encountering special files like /dev/tty0 or named pipes.

I have submitted a PR that fixes this by checking std::fs::metadata to ensure the path is a regular file before attempting to read it.

Bronx83 avatar Dec 10 '25 14:12 Bronx83

Closing because of lack of repro.

etraut-openai avatar Mar 02 '26 19:03 etraut-openai