Feature area
Request forwarding / API compatibility
Problem
Problem
When Codex Desktop calls grok-4.5 through CliRelay xAI OAuth, it posts to /v1/responses with tools[].type = "namespace".
Grok Build rejects the request with HTTP 422:
Failed to deserialize the JSON body into the target type: unknown variant `namespace`
Claude Code works with the same xAI credentials because it uses the Anthropic Messages route instead. The failure reproduces across two xAI OAuth accounts, so it is not tied to a single account or model availability.
Proposed solution
Please add xAI-specific Responses compatibility for Codex namespace tools:
- Flatten namespace child tools into qualified top-level function names before forwarding to Grok.
- Restore the original namespace/name when converting Grok function calls back to Codex Responses output.
- Keep the existing Codex/OpenAI GPT path unchanged.
This should be a provider-boundary adaptation rather than removing namespace tools globally.
Use case
Codex Desktop users who route Grok Build through CliRelay need normal coding tools and MCP/connectors. Without this compatibility, every Codex request containing a namespace tool is rejected before the model runs.
Are alternatives acceptable?
Yes, a simpler alternative is fine
Panel version
v0.4.11
Backend version
v0.4.11
Extra context
Upstream reference implementations:
No credentials, tokens, cookies, or private request payloads are included in this report.
Safety check
Feature area
Request forwarding / API compatibility
Problem
Problem
When Codex Desktop calls
grok-4.5through CliRelay xAI OAuth, it posts to/v1/responseswithtools[].type = "namespace".Grok Build rejects the request with HTTP 422:
Claude Code works with the same xAI credentials because it uses the Anthropic Messages route instead. The failure reproduces across two xAI OAuth accounts, so it is not tied to a single account or model availability.
Proposed solution
Please add xAI-specific Responses compatibility for Codex namespace tools:
This should be a provider-boundary adaptation rather than removing namespace tools globally.
Use case
Codex Desktop users who route Grok Build through CliRelay need normal coding tools and MCP/connectors. Without this compatibility, every Codex request containing a namespace tool is rejected before the model runs.
Are alternatives acceptable?
Yes, a simpler alternative is fine
Panel version
v0.4.11
Backend version
v0.4.11
Extra context
Upstream reference implementations:
No credentials, tokens, cookies, or private request payloads are included in this report.
Safety check