Repository navigation
Description
Client or integration
Codex App
Provider or upstream service
Azure OpenAI, configured through the openai-responses adapter with an Azure resource URL.
OpenCodex version
Observed on installed 2.93.0. The missing Azure normalization was also reproduced with adapter regression tests against dev commit 095ddf6. No live request against a newer release was performed.
Endpoint or capability
POST /openai/v1/responses; request include normalization.
Current behaviour
Codex Desktop requests output.encrypted_content in include. The proxy forwards that entry to Azure, which rejects the request with HTTP 400 invalid_value. The existing xAI-specific normalization does not cover Azure resource URLs or the Azure adapter.
Expected behaviour
Omit only the known rejected output.encrypted_content entry on Azure destinations. Preserve reasoning.encrypted_content, other include entries, caller-owned input, and unrelated destination behavior. Omit include when removing the rejected entry leaves no entries.
Minimal redacted request or reproduction
Configure an openai-responses provider with baseUrl https://example.openai.azure.com/openai/v1 and send a Responses request with:
{"model":"YOUR_DEPLOYMENT","input":[],"include":["reasoning.encrypted_content","output.encrypted_content"]}
This is a minimal request-shape illustration, not a captured complete outbound payload. The same missing normalization is reproducible through the Azure adapter's request builder without network access.
Actual response or error
HTTP 400:
{"error":{"message":"Invalid value: 'output.encrypted_content'. Supported values are: 'file_search_call.results', 'web_search_call.results', 'web_search_call.action.sources', 'message.input_image.image_url', 'computer_call_output.output.image_url', 'code_interpreter_call.outputs', 'reasoning.encrypted_content', and 'message.output_text.logprobs'.","type":"invalid_request_error","param":"include[1]","code":"invalid_value"}}
Upstream documentation
The concrete compatibility contract is the Azure validation response reproduced above: reasoning.encrypted_content is accepted, while output.encrypted_content is rejected. The expected behavior is based on this observed service response and the Codex App request requirement.
Suggested mapping or implementation notes
Reuse the existing exact-entry xAI normalization for Azure adapters and Azure OpenAI resource hosts. Do not apply an include allowlist to arbitrary gateways.
Regression plan: first reproduce the rejected entry in serialized Azure requests, then verify removal through both Azure and plain Responses adapters, preservation of supported entries and caller-owned input, omission of an emptied include, and unchanged unrelated/lookalike hosts.
Additional context and attachments
Related but distinct: #7878 and #7911 addressed xAI destinations. This report concerns Azure OpenAI. No credentials, private resource names, or conversation content are included. The installed proxy has not been modified.
Checks
- I searched existing provider and compatibility issues.
- The request and response were redacted.
- The expected behaviour is based on an upstream specification or a concrete client requirement.
Activity
coderabbitai commentedon Oct 29, 2026
🔗 Related PRs
#7911 - fix(openai-responses): drop the include entry xAI rejects [open]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
fix(azure): omit unsupported Responses encrypted output include (#7988)
lidge-jun commentedon Oct 30, 2026
Fixed on dev by #7988 (squash merge d389699, carrying #7953): Azure adapters and Azure OpenAI resource hosts configured through openai-responses now omit only the unsupported output.encrypted_content include entry, keeping reasoning.encrypted_content and other entries. It will ship in the next release.