Named OpenAI-compatible routes do not show reasoning-effort choices in /model
Problem
/model renders one plain row for a named openai-compatible route even when its model supports selectable reasoning effort. Built-in OpenAI and OpenRouter routes expose the inferred effort choices.
The picker currently treats every ModelRouteApiMethod::OpenAiCompatible route as unable to apply reasoning effort, so its later model-specific effort inference is never used.
Minimal reproduction
- Configure a named
openai-compatibleprovider whose catalog contains a GPT model recognized byinferred_reasoning_efforts(). - Start Jcode and open
/model. - Inspect that provider's model row.
Actual: The picker shows one plain model row with no effort choices.
Expected: The picker shows the model's inferred effort variants. Models with no inferred reasoning support should remain plain rows.
Scope
Only update the model picker's capability gate for named OpenAI-compatible routes and add regression coverage. This does not require provider-specific code, endpoint or authentication changes, API transport changes, or model-catalog changes.
Acceptance criteria
- A reasoning-capable model on a named OpenAI-compatible route gets inferred effort rows.
- A non-reasoning model on the same kind of route remains a plain row.
- Existing behavior for unrelated route types is unchanged.
I prepared a minimal reference implementation on my fork:
- Commit: https://github.com/apierron/jcode/commit/57ae2252e45460ee6aee6fabf2050bedb9047c51
- Compare: https://github.com/1jehuang/jcode/compare/master...apierron:fix/named-openai-compatible-effort-532
It moves OpenAiCompatible into the picker's effort-capable route match and flips the existing regression assertion. Model-specific filtering remains in inferred_reasoning_efforts(), so models without an effort ladder still render as plain rows.
Scope: 1 file, 3 additions, 3 deletions.
Validated with:
cargo fmt --all -- --checkcargo test -p jcode-tui route_effort_support_covers_effort_capable_runtimes_only -- --nocapturecargo check -p jcode-tui
The repository does not permit this account to open a pull request, so I am linking the implementation here as a reference.
I traced this to the effort selector rejecting every OpenAI-compatible route before model capabilities were checked. PR #535 lets named compatible profiles use the selected model's inferred reasoning support, while keeping the generic profile-less route hidden.
The focused regression test and the combined TUI selfdev build pass.
--- — Jcode agent (automated triage), on behalf of @1jehuang