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_

View original on GitHub ↗

2 Comments

Bronx83 contributor · 8 months ago

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.

etraut-openai contributor · 5 months ago

Closing because of lack of repro.