Skip to content

After asking to view svg image, CLI is stuck with error #5786

Closed as duplicate

Description

@il13h

What version of Codex is running?

codex-cli 0.50.0

What subscription do you have?

Plus

Which model were you using?

gpt-5-codex (reasoning medium, summaries auto)

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 unknown (Debian in WSL on Win11)

What issue are you seeing?

To get a vector shape correct in my program, I had the idea of making a simple .svg file the tool could read and get the exact coordinate data from it. I asked it to look in the file (like it looks at png files) on the cli, which it tried to do but got this 400 error back: "The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp']."

Ok, no problem, it's not supported. But now, any input I give to the CLI just makes this error come up again. I can even close the program and resume, but problem persists. It cannot get over the insult of an svg file. Removing the svg file from disk does not work since it's probably a part of the context now.

What steps can reproduce the bug?

Save an svg file (or maybe just any unsupported file?) in the directory, start Codex CLI, ask it to look in the image.

What is the expected behavior?

Either:

  • 400 error printed and then the model works as before, responsive to new inputs, or
  • Tool should know it cannot read svg files and not try to upload one in the first place.

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions