Skip to content

Adding screenshot causes 400 error #6226

Closed

Description

@mattzh72

What version of Codex is running?

codex-cli 0.55.0

What subscription do you have?

API

Which model were you using?

gpt-5

What platform is your computer?

Darwin 23.6.0 arm64 arm

What issue are you seeing?

When attaching a screenshot, I get this error:


› [Screenshot 2025-11-04 at 2.07.59 PM.png 2568x1316]


■ unexpected status 400 Bad Request: {
  "error": {
    "message": "Invalid type for 'input'.",
    "type": "invalid_request_error",
    "param": "input",
    "code": "invalid_union"
  }
}

Screenshot:
Image

What steps can reproduce the bug?

Dragging in a screenshot like:

Image

and pressing enter causes this error.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Nov 4, 2025
  2. github-actions commented on Nov 4, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. zhao-oai commented on Nov 5, 2025

    @zhao-oai
    Contributor

    hey there! perchance did you run /feedback? if so, could you please provide a thread ID associated with /feedback?

  4. added
    CLI
    on Nov 16, 2025
  5. added
    agent
    on Dec 7, 2025
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

    CLIagentbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions