Codex Desktop incorrectly sends Azure Image Generation request for normal text chat while Codex CLI works correctly

Open 💬 5 comments Opened Jul 9, 2026 by drczsr
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

版本 26.623.141536 • 发布于 Jul 7, 2026

What subscription do you have?

azure openai

What platform is your computer?

macos

What issue are you seeing?

imagegen deployment must be provided through header:
x-ms-oai-image-generation-deploym

<img width="3360" height="1860" alt="Image" src="https://github.com/user-attachments/assets/0f33c563-75d8-4c29-8a2b-5dd3db15ec1a" />

What steps can reproduce the bug?

对话就会出现

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 1 month ago

English translation:

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.623.141536 • Released on Jul 7, 2026

What subscription do you have?

azure openai

What platform is your computer?

macos

What issue are you seeing?

imagegen deployment must be provided through header:
x-ms-oai-image-generation-deploym

<img width="3360" height="1860" alt="Image" src="https://github.com/user-attachments/assets/0f33c563-75d8-4c29-8a2b-5dd3db15ec1a" />

What steps can reproduce the bug?

It appears whenever I chat.

What is the expected behavior?

_No response_

Additional information

_No response_

<!-- codex-issue-translator -->

github-actions[bot] contributor · 1 month ago

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

  • #31775

Powered by Codex Action

JanekRzodki · 1 month ago

I have the same issue both with codex app and vs code extension. it worked fine untill today

lianneli · 1 month ago

facing the same issue

bcorralesa · 1 month ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. * Codex requires imagegen deplyment when changing code #31775 _Powered by Codex Action_

Use the workaround indicated here.