Skip to content

feat(provider): probe Responses support without generating tokens - #89

Merged
cursor[bot] merged 4 commits into
devfrom
cursor/responses-probe-a72a
Aug 28, 2026
Merged

cursor[bot] merged 4 commits into
devfrom
cursor/responses-probe-a72a

Conversation

@xjoker

@xjoker xjoker commented Aug 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Same New API host can list a slug and serve Chat Completions while Codex’s POST /v1/responses 404s (bad_response_status_code). GET /models cannot tell those apart.

This adds a zero-token probe: POST {base_url}/responses with only {"model":"<slug>"} (no input).

  • HTTP 400 at validation → Responses handler ran → Codex can use it
  • HTTP 404 bad_response_status_code / Not Found → Chat Completions only → Codex cannot
  • Auth / timeout → unknown; launch warns and continues

codex-switch provider probe <alias> [--model <id>] prints the verdict. Provider launch (CLI and TUI) refuses an unsupported slug instead of opening Codex onto that 404.

Merged current dev (skip leftover thinking level + form scroll). Version is 20260828.2.0 because 20260828.1.0 already shipped on dev.

Test plan

  • cargo test --lib probe classifiers + axum probe tests + provider_probe_subcommand_parses
  • cargo test --all
  • cargo clippy --all-targets -- -D warnings
  • After self-update --dev: codex-switch provider probe AI-KR then try launch on deepseek-v4-flash (should refuse) vs glm-5.3-flash (should start)
Open in Web Open in Cursor 

cursoragent and others added 4 commits August 28, 2026 03:53
POST {base}/responses with only model (no input). A 400 at validation
means Codex can use the slug; a 404 bad_response_status_code means
Chat Completions only. launch refuses the latter; provider probe
prints the verdict for saved models.

Co-authored-by: lolitaupdate <[email protected]>
Keep origin/dev's skip-thinking and form-scroll notes as v20260828.1.0.
Record the Responses probe under v20260828.2.0.

Co-authored-by: lolitaupdate <[email protected]>
origin/dev already shipped 20260828.1.0. Allocate today's second
candidate for the Responses probe.

Co-authored-by: lolitaupdate <[email protected]>
@cursor
cursor Bot merged commit 7c142bc into dev Aug 28, 2026
4 checks passed
@xjoker
xjoker deleted the cursor/responses-probe-a72a branch September 9, 2026 01:32
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.

2 participants