Skip to content

fix(cli): report unsupported model listing in json#29

Draft
heimanba wants to merge 2 commits into
mainfrom
codex/models-json-unsupported-provider
Draft

fix(cli): report unsupported model listing in json#29
heimanba wants to merge 2 commits into
mainfrom
codex/models-json-unsupported-provider

Conversation

@heimanba

Copy link
Copy Markdown
Contributor

Summary

  • Make agents models list --json emit a structured result for providers that do not support dynamic model listing.
  • Preserve the existing human-readable warning path for non-JSON output.
  • Add a CLI contract test for the unsupported-provider JSON shape.

Validation

  • bun test packages/cli/tests/unit/cli-contracts.test.ts -t "models"
  • bun run --cwd packages/cli typecheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant