Repository navigation
Conversation
Ingwannu
marked this pull request as ready for review
July 9, 2026 09:53
lidge-jun
added a commit
that referenced
this pull request
Jul 9, 2026
Cherry-pick of dae62a9 from ingw/fix-anthropic-tool-schema with review fixes: - Translate Korean Decision Log comment to English - Add known-limitation comment for oneOf/anyOf property collision Co-authored-by: Ingwannu <[email protected]>
Owner
|
Cherry-picked into
All 1794 tests pass. Closing. |
Closed
2 tasks done
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…n#76) Cherry-pick of dae62a9 from ingw/fix-anthropic-tool-schema with review fixes: - Translate Korean Decision Log comment to English - Add known-limitation comment for oneOf/anyOf property collision Co-authored-by: Ingwannu <[email protected]>
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
Fixes #75.
Anthropic tool conversion now normalizes tool
input_schemabefore sending requests upstream. This prevents Claude/Anthropic 400s when Codex attaches tools whose parameter schema omits a roottypeor contains root-leveloneOf/anyOf/allOf.Root Cause
toolsToAnthropicFormatpassedt.parametersdirectly into Anthropicinput_schema. Some Codex/MCP/sub-agent/browser tools can produce schemas that OpenAI-compatible wires tolerate but Anthropic rejects:typeoneOf,anyOf, orallOfChanges
type: "object"and always includeproperties.oneOf/anyOf/allOfwhile preserving nested property schemas.requiredonly forallOfto avoid over-constrainingoneOf/anyOfschemas.Validation
bun test tests/anthropic-tool-schema.test.ts tests/anthropic-empty-content.test.ts tests/kiro-adapter.test.ts-> 38 passbun run typecheck-> passbun test ./tests/-> 1677 pass, 0 fail