Skip to content

[codex] Remove unused ListModels op#21276

Merged
pakrym-oai merged 1 commit intomainfrom
pakrym/delete-listmodels-op
May 6, 2026
Merged

[codex] Remove unused ListModels op#21276
pakrym-oai merged 1 commit intomainfrom
pakrym/delete-listmodels-op

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Why

The core protocol still exposed a ListModels submission op even though no client sends it and the core submission loop treated it as an ignored unknown op. Keeping the dead variant made the protocol surface look supported while the active model listing API is the app-server model/list JSON-RPC request.

What Changed

  • Removed the unused Op::ListModels variant from codex-rs/protocol.
  • Removed its Op::kind() mapping.

The existing app-server model/list endpoint is unchanged.

Verification

  • cargo test -p codex-protocol

@pakrym-oai pakrym-oai marked this pull request as ready for review May 6, 2026 00:24
@pakrym-oai pakrym-oai enabled auto-merge (squash) May 6, 2026 00:27
@pakrym-oai pakrym-oai merged commit 0241186 into main May 6, 2026
47 of 50 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/delete-listmodels-op branch May 6, 2026 01:57
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 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