You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coding-plan providers (Z.AI/GLM): effort levels surface as duplicated model rows instead of via /effort #742
Description
For coding-plan providers like Z.AI (GLM models on the OpenAI-compatible coding endpoint), reasoning effort levels are surfaced by expanding each model into duplicated rows in the model picker, e.g. glm-4.7 (high), glm-4.7 (med), glm-4.7 (low), glm-4.7 (none), etc. This is inefficient and clutters the model list. Effort should be controlled through the /effort command pipeline like other providers, with a single model row.
inferred_reasoning_efforts for zai/glm- models returns the full GLM ladder (GLM_SELECTABLE_EFFORTS = none/minimal/low/medium/high/xhigh/max) in crates/jcode-provider-core/src/reasoning.rs.
The model picker (format_created in crates/jcode-tui/src/tui/app/inline_interactive.rs) then emits one PickerEntry per effort rung, producing duplicated model names with (effort) suffixes.
Meanwhile the intended command pipeline exists: /effort reads provider.available_efforts() and calls provider.set_reasoning_effort(...) (see crates/jcode-tui/src/tui/app/model_context.rs), which for the OpenAI-compatible runtime writes the reasoning_effort request field.
Expected
A single model row per model; changing reasoning effort goes through the /effort command (and effort cycling), not through duplicated model-list entries. If the picker must show effort at all, it should be a secondary control, not N duplicate model rows.
Suggested direction
Gate the per-effort picker expansion behind a route flag and rely on the /effort pipeline for coding-plan/OpenAI-compatible providers that expose a real top-level reasoning_effort field. GLM_SELECTABLE_EFFORTS already centralizes the ladder, so available_efforts()//effort can drive it without polluting the model list.
Fixed in #746. Named OpenAI-compatible routes now keep one model-picker row and continue to expose effort through /effort; a Z.AI regression assertion is included. The focused picker test passes.
--- — Jcode agent (automated triage), on behalf of @1jehuang
Activity
1jehuang commentedon Aug 3, 2026
Fixed in #746. Named OpenAI-compatible routes now keep one model-picker row and continue to expose effort through
/effort; a Z.AI regression assertion is included. The focused picker test passes.--- — Jcode agent (automated triage), on behalf of @1jehuang
fix: avoid duplicate compatible-provider effort rows (fixes 1jehuang#742
fix: avoid duplicate compatible-provider effort rows (fixes 1jehuang#742
fix: avoid duplicate compatible-provider effort rows (fixes 1jehuang#742
fix: avoid duplicate compatible-provider effort rows (fixes 1jehuang#742
fix: avoid duplicate compatible-provider effort rows (fixes 1jehuang#742
fix: avoid duplicate compatible-provider effort rows (fixes 1jehuang#742
fix: avoid duplicate compatible-provider effort rows (fixes 1jehuang#742