You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Responses combo aborts on Meta Muse mandatory tool_choice 400 instead of selecting compatible target #7964
Codex Responses API client routed through a failover combo.
Area
Proxy and routing; Tools / MCP.
Summary
On v2.93.0 a combo containing a Meta Muse Responses target can return HTTP 400 when tool_choice: "required" or a named client function is requested. The Meta adapter correctly rejects that selector with This tool_choice cannot be preserved for Meta Responses; use auto or none., but the combo stops without trying an eligible later destination. This is a target-local wire capability mismatch, not a request that must be invalid for all targets.
Reproduction
Use a synthetic two-target failover combo: Meta openai-responses at https://api.meta.ai/v1, then a compatible fixture provider. Send POST /v1/responses with model: "combo/safe", one inert function health_marker, and tool_choice:"required". When Meta is selected, the proxy returns 400. No real function is executed.
Expected behavior
Preflight eligibility should skip Meta for well-formed, definitely incompatible mandatory choices, preserving the original selector for other targets. auto/none stay eligible for Meta, malformed inputs remain input errors. Do not replay after any visible output or ambiguous effect. If all targets are ineligible, explain the unavailable capability rather than suggesting every 400 is exhausted credit.
Actual behavior
HTTP 400 invalid_request_error: This tool_choice cannot be preserved for Meta Responses; use auto or none.
Version
@bitkyc08/opencodex v2.93.0, public source tag commit 88aaa754566d119b6b8fc898f8fb47602387d82e.
Operating system
Linux.
Checks
Reproduced with an inert function through the real proxy.
Isolated candidate based on v2.93.0 validates pre-send eligibility; 46 focused and adjacent synthetic tests passed, typecheck passed.
No credentials, request contents, account identifiers or production configuration are attached.
Full-suite/CI/release validation is not claimed; candidate not deployed.
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
A v2.94.0-based corrective implementation is now published for code review in RHODIZ's draft PR #7 (exact tree f33483ec6435dfff636b642ef20e83a15f76ae5e). It excludes the Meta Responses destination before the physical send only when tool_choice is definitively mandatory (required, named, validated allowed_tools), preserves the original selector on an eligible alternate target, leaves auto/none and malformed choices unchanged, and adds regression tests for those contracts. Focused tests and TypeScript pass. The full upstream v2.94.0 suite and CI are still running; no production deployment/certification claim yet. This is a reviewable fix candidate, not a request for the maintainer to merge unverified code.
Fixed on dev by #7982 (squash merge 6218a9a): Responses combos now skip a Meta Muse target before sending when the request carries a well-formed mandatory tool_choice (required, a named function/custom tool, or allowed_tools in required mode), using the effective adapter and destination after wire overrides; the original selector reaches the next compatible target unchanged, and an all-Meta combo returns an error naming the constraint. Malformed selectors keep the existing 400. Related Meta catalog normalization landed in #7985. It will ship in the next release.
Activity
coderabbitai commentedon Oct 29, 2026
🔗 Related PRs
#7741 - fix(combo): reject buffered required-tool false successes [merged]
📝 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!
RHODIZSECURITY commentedon Oct 30, 2026
A v2.94.0-based corrective implementation is now published for code review in RHODIZ's draft PR #7 (exact tree
f33483ec6435dfff636b642ef20e83a15f76ae5e). It excludes the Meta Responses destination before the physical send only whentool_choiceis definitively mandatory (required, named, validatedallowed_tools), preserves the original selector on an eligible alternate target, leavesauto/noneand malformed choices unchanged, and adds regression tests for those contracts. Focused tests and TypeScript pass. The full upstream v2.94.0 suite and CI are still running; no production deployment/certification claim yet. This is a reviewable fix candidate, not a request for the maintainer to merge unverified code.lidge-jun commentedon Oct 30, 2026
Fixed on dev by #7982 (squash merge 6218a9a): Responses combos now skip a Meta Muse target before sending when the request carries a well-formed mandatory tool_choice (required, a named function/custom tool, or allowed_tools in required mode), using the effective adapter and destination after wire overrides; the original selector reaches the next compatible target unchanged, and an all-Meta combo returns an error naming the constraint. Malformed selectors keep the existing 400. Related Meta catalog normalization landed in #7985. It will ship in the next release.