The `--image` seems not working

Resolved 💬 4 comments Opened May 18, 2025 by doggy8088 Closed Aug 7, 2025

What version of Codex is running?

0.1.2505171619

Which model were you using?

o4-mini

What platform is your computer?

Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 unknown

What steps can reproduce the bug?

codex --auto-edit -w . --full-stdout --notify -i /image.png "What's in this image?"

What is the expected behavior?

It should read image.

What do you see instead?

The response:

Hi there! What would you like to work on today? Feel free to describe the task or issue you're facing, and I'll help you out.

!Image

Additional information

_No response_

View original on GitHub ↗

4 Comments

raj-iwt · 1 year ago

When I try with ./image.png, it is working

!Image

doggy8088 · 1 year ago

I'm using o4-mini (Azure OpenAI Service).

doggy8088 · 1 year ago

@crazywolf132 It seems not a path issue. I traced the code. I think it's related to OpenAI Response API. Only openai provider support that at this moment.

https://github.com/openai/codex/blob/6b5b184f21504c99eeeee56b9d607eb8576f96db/codex-cli/src/utils/agent/agent-loop.ts#L1189-L1198

codex-maintainers · 1 year ago

Thank you for the feedback! Please try using the latest version of Codex CLI, as we are actively working on improvements. If the issue persists, feel free to let us know.