Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Feb 2, 2026

Similar to what @sayan-oai did in #8956 for config.schema.json, this PR updates the repo so that it includes the output of codex app-server generate-json-schema and codex app-server generate-ts and adds a test to verify it is in sync with the current code.

Motivation:

  • This makes any schema changes introduced by a PR transparent during code review.
  • In particular, this should help us catch PRs that would introduce a non-backwards-compatible change to the app schema (eventually, this should also be enforced by tooling).
  • Once feat: experimental flags #10231 is in to formalize the notion of "experimental" fields, we can work on ensuring the non-experimental bits are backwards-compatible.

codex-rs/app-server-protocol/tests/schema_fixtures.rs was added as the test and just write-app-server-schema can be use to generate the vendored schema files.

Incidentally, when I run:

rg _ codex-rs/app-server-protocol/schema/typescript/v2

I see a number of snake_case names that should be camelCase.

@bolinfest bolinfest changed the title Vendor app-server protocol schema fixtures feat: vendor app-server protocol schema fixtures Feb 2, 2026
@bolinfest bolinfest force-pushed the pr10371 branch 3 times, most recently from dfdf5e9 to 5be57b4 Compare February 2, 2026 07:05
Motivation:
- `codex-app-server-protocol` schema fixtures are not insta snapshots.
- Filtering `*.snap.new` is confusing and risks hiding real files.

What changed:
- Remove the `.snap.new` filename special case in `read_schema_fixture_tree`.

Refs: macOS Bazel schema fixture mismatch investigation
@bolinfest bolinfest merged commit 974355c into main Feb 2, 2026
30 of 31 checks passed
@bolinfest bolinfest deleted the pr10371 branch February 2, 2026 07:38
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants