Skip to content

Conversation

@ChrisPenner
Copy link
Member

Overview

Seems like there are some (not fully explored) problems with oneOf/allOf in some Agent's validation of JSON Schemas.
This seemed to be confusing Codex, so I switched the typecheck tool to just take one of two optional params instead; which will hopefully be more portable across agents.

Implementation notes

  • Switch from a oneOf tagged union schema to just two optional keys with a requirement that at least one is provided.

Test coverage

Can't test it on codex, but the transcript still applies.

@ChrisPenner ChrisPenner added the ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved label Oct 22, 2025
@aryairani
Copy link
Contributor

I installed codex as a command-line tool and that worked better than as a vscode plugin.

Here's codex 0.47.0 with ucm 0.5.49':
image

and with this branch:
image

also worked with a file; ignore the red:
image

cc @ChrisPenner @oco-adam

@aryairani aryairani merged commit 274eb50 into trunk Oct 23, 2025
31 checks passed
@aryairani aryairani deleted the mcp/codex-fix branch October 23, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Apply this to a PR and it will get merged automatically once CI passes and 1 reviewer has approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants