Repository navigation
fix(responses): normalize Codex tool catalogs and include for Meta Muse - #7985
Merged
Merged
Conversation
Co-authored-by: nobrainer-tech <445466+nobrainer-tech@users.noreply.github.com>
Co-authored-by: nobrainer-tech <445466+nobrainer-tech@users.noreply.github.com>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
7 tasks done
Contributor
|
✅ Deterministic PR hygiene checks passed. |
Owner
Author
|
Maintainer integration into
|
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Carries #7969 by @nobrainer-tech (their commits are kept on this branch; credit in the trailer below), with a maintainer fix for the review blocker. Pushing that fix to the contributor branch would reset the author's readiness checklist and return the PR to draft, so it lands from a maintainer branch.
Codex Desktop continuations sent to Meta/Muse failed before inference because the client requests
output.encrypted_contentand carries privateadditional_toolsinput items. For the exactapi.meta.aidestination the request now omits only the unsupported include, keepsreasoning.encrypted_content, and moves current tool declarations into the publictoolsarray before history rewrites. The projection keeps the replay boundary, historical custom-call conversion, current declaration schemas over search discoveries, explicit bare-tool precedence, namespace/name restoration andtool_choice: nonehandling, normalizes nested function definitions, and rejects malformed or unrepresentable current catalogs before upstream dispatch. Other Responses destinations are unchanged; xAI keeps its exact-entry include normalization.Maintainer fix (
f7cfb01ed2): the catalog check validated everyadditional_toolswrapper before computing the replay boundary, so a malformed historical wrapper — which is removed and cannot authorize a current tool — still produced a local HTTP 400. The boundary is now computed first and only current declarations are validated; historical custom-call replay context is kept. Currentorigin/devis merged in with an ordinary merge commit.Known limit, left for follow-up: a current catalog that only Meta cannot represent still maps to the same 400 as malformed client input, so a combo does not fall through to another target for that case. #7982 handles the related mandatory
tool_choicepreflight separately; this PR does not touch combo selection.Verification
Bun 1.4.4; focused because the shared host is under load (AGENTS.md resource exception; breadth left to PR CI).
bun test tests/responses/responses-muse-tool-choice.test.ts -t 'ignores malformed historical catalogs while normalizing current declarations': before the fix 0 pass / 1 fail (MuseToolCatalogCompatibilityError: Malformed tool catalog for Meta Responses.); after 1 pass / 0 fail.bun test tests/responses/responses-muse-tool-choice.test.ts tests/providers/muse-spark-web-search-compat.test.ts tests/responses/responses-muse-tool-name-alias.test.ts tests/providers/muse-tool-name-alias.test.ts tests/responses/responses-undeclared-tool-guard.test.ts tests/responses/responses-undeclared-tool-guard-inbound.test.ts tests/responses/custom-tool-compat.test.ts tests/responses/responses-custom-tool-historical-replay.test.ts tests/responses/namespace-tool-compat.test.ts: 271 pass / 0 fail.bun run typecheck(2,244 files, 0 errors),bun run structure:check,bun run privacy:scan,git diff --check origin/dev...HEADpass; all 12 changed files are within their file-size limits.bun run test:changed, the full suite and the docs-site build (host at critical load); PR CI covers them. Live Meta session execution remains unverified, as on fix(responses): normalize Codex tool catalogs and include for Meta Muse #7969.Checklist
Co-authored-by: nobrainer-tech 445466+nobrainer-tech@users.noreply.github.com