Skip to content

Coding-plan providers (Z.AI/GLM): effort levels surface as duplicated model rows instead of via /effort #742

Closed

Description

@1am2syman

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.

What happens

  • route_supports_reasoning_effort("openai-compatible:zai") returns true (OpenAiCompatible { profile_id } => profile_id.is_some() in crates/jcode-tui/src/tui/app/inline_interactive_placeholder_routes.rs).
  • 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.

Activity

  1. added
    bug
    priority: medium
    triage: reproducible
    autonomous: likely
    on Aug 3, 2026
  2. 1jehuang commented on Aug 3, 2026

    @1jehuang
    Owner

    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

  3. added
    triage: fixed-pending-release
    on Aug 3, 2026
  4. added a commit that references this issue on Aug 6, 2026
    dc19e47
  5. added 5 commits that reference this issue on Aug 30, 2026
    9eda6a5
    7bfd611
    43d8976
    415e0d9
    bfff463
  6. added a commit that references this issue on Sep 18, 2026
    cc99fc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    autonomous: likelybugpriority: mediumtriage: fixed-pending-releasetriage: reproducible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions