Skip to content

[Provider compatibility] zhipu-bigmodel-coding/glm-5.3-flash loses contextWindow in live catalog on v2.54.0 #4570

Closed

Description

@c3right

Client or integration

OpenCodex dashboard

Area

Catalog / models

Summary

On OpenCodex 2.54.0, zhipu-bigmodel-coding/glm-5.3-flash is discovered correctly and exposes native multimodal input metadata (text, image), but its contextWindow is missing from the live catalog.

This is not only a Dashboard tooltip/rendering issue: ocx models live --json also returns an empty contextWindow for glm-5.3-flash, while the sibling glm-5.3 on the same provider correctly reports 1000000.

Expected: glm-5.3-flash should retain/expose its configured 1M context-window metadata in the live catalog.

Reproduction

  1. Configure the built-in Zhipu BigModel Coding Plan provider with model discovery enabled.
  2. Start OpenCodex normally.
  3. Run:
$models = ocx models live --json | ConvertFrom-Json

$models |
Where-Object {
    $_.provider -eq "zhipu-bigmodel-coding" -and
    $_.id -in @("glm-5.3", "glm-5.3-flash")
} |
Select-Object provider,id,contextWindow,inputModalities |
Format-List
  1. Compare glm-5.3 and glm-5.3-flash in both the CLI output and Dashboard model tooltip.

Observed:

provider        : zhipu-bigmodel-coding
id              : glm-5.3
contextWindow   : 1000000
inputModalities : {text, image}

provider        : zhipu-bigmodel-coding
id              : glm-5.3-flash
contextWindow   :
inputModalities : {text, image}

The Dashboard shows the same split:

  • glm-5.3: Context 1M, Modalities text, image
  • glm-5.3-flash: Modalities text, image, but no Context field

Version

2.54.0

Operating system

Windows 10 Professional 22H2 (build 19045)

Provider and model

zhipu-bigmodel-coding / glm-5.3-flash

Control model on the same provider: zhipu-bigmodel-coding / glm-5.3

Logs or error output

provider        : zhipu-bigmodel-coding
id              : glm-5.3
contextWindow   : 1000000
inputModalities : {text, image}

provider        : zhipu-bigmodel-coding
id              : glm-5.3-flash
contextWindow   :
inputModalities : {text, image}

ocx doctor and ocx status are otherwise healthy on 2.54.0, and the running proxy matches the installed version.

Screenshots and supporting files

The Dashboard model tooltip reproduces the same metadata gap: glm-5.3-flash shows Modalities: text, image and Status: Active, but no Context field.

Related: #4296 fixed the separate glm-5.3-flash input-modality problem for the Chat-path providers. On 2.54.0 the modality side is now correct (text, image), but the context-window metadata is still missing.

glm-5.3-flash is a native VLM and should remain outside the vision-sidecar path; this report is only about the missing context-window metadata.

Redacted configuration

{
  "providers": {
    "zhipu-bigmodel-coding": {
      "adapter": "openai-chat",
      "baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4",
      "defaultModel": "glm-5.3",
      "discoverModels": true
    }
  }
}

Credentials are omitted.

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    catalog
    provider
    on Sep 14, 2026
  2. github-actions commented on Sep 14, 2026

    @github-actions
    Contributor

    Issue reopened

    The report now contains the information required by the automated check. Thanks for updating it.

  3. lidge-jun commented on Sep 14, 2026

    @lidge-jun
    Owner

    리뷰 · 우선순위 56 / 80

    이 이슈는 OpenCodex 2.54.0에서 내장 프로바이더 zhipu-bigmodel-coding의 glm-5.3-flash가 라이브 카탈로그에 나타나고 입력 모달리티(text, image)도 맞는데, contextWindow만 비어 있다는 보고다. 같은 프로바이더의 형제 glm-5.3는 1000000이 나오고, Dashboard 툴팁과 ocx models live --json이 둘 다 같은 불일치를 보여서 “UI만의 표시 버그”가 아니다. 재현 절차와 기대값이 분명하고, area도 Catalog / models로 잘 잡혀 있다.

    지금 체크아웃한 dev HEAD는 ae3cb2311(#4563 Codex forward identity sanitize + target-local failover)이고, 패키지는 여전히 2.55.0이다. 같은 시점의 정적 시드를 보면 src/providers/registry.ts의 zhipu-bigmodel-coding 행에 이미 modelContextWindows["glm-5.3-flash"] = 1_000_000이 들어 있다. 태그 v2.54.0 트리에서도 동일 시드가 보인다. 즉 “레지스트리에 Flash 창 값이 아예 없다”는 설명만으로는 2.54.0 재현을 덮지 못한다. Flash만 창이 빠지고 모달리티는 남는 asymmetry가 핵심이다.

    라이브 목록은 ocx models live → /api/models 경로다(src/cli/models-runtime.ts). 카탈로그 힌트는 src/codex/catalog/provider-fetch.ts의 configuredContextWindow / applyProviderConfigHints가 prov.modelContextWindows와 discovery 창을 합친다. 주석대로 discovery 창이 있으면 설정값으로만 낮출 수 있고, discovery 창이 없으면 configuredCap(또는 provider cap)이 실제 창이 된다. 모달리티는 ZAI_GLM_5X_INPUT_MODALITIES에서 Flash만 ["text","image"]로 명시되고(src/providers/registry.ts), 창은 modelContextWindows 맵에 있다. 그래서 “모달리티는 설정에서 오고, 창은 다른 출처(메타데이터·persist된 부분 맵·discovery)에서 오다가 비는” 쪽이 의심된다.

    추가로 src/providers/derive.ts는 시드 modelContextWindows를 prov.modelContextWindows가 통째로 없을 때만 복사한다. 예전에 저장된 프로바이더 객체에 부분 맵(예: glm-5.3만)이 남아 있으면 Flash 창 시드가 런타임에 안 채워질 수 있다. jawcodeBundle: "zai" 메타데이터 경로(src/generated/model-metadata.ts)와 사용자 config.json persist가 개입하는지도 같이 봐야 한다. 리포트에 로그·스크린 비교가 있어 재현 신뢰도는 높다. types.ts/config.ts 분할 캠페인과는 무관하고, 중복 오픈 PR은 현재 검색상 없다.

    경로 src/providers/registry.ts zhipu-bigmodel-coding.modelContextWindows - 정적 시드에는 이미 Flash 1M이 있다. “시드 누락”으로만 닫으면 2.54.0에서 본 증상을 설명·수정하지 못할 수 있다. 라이브 행이 시드를 실제로 읽는지부터 확인해야 한다.
    경로 src/codex/catalog/provider-fetch.ts configuredContextWindow / applyProviderConfigHints - Flash만 hintedWindow가 비고 모달리티는 configuredInputModalities로 남는 분기인지, discovery 행이 창 없이 들어오는지, persist된 modelContextWindows가 Flash 키를 잃었는지 구분하는 재현이 필요하다.
    경로 src/providers/derive.ts modelContextWindows 시드 병합 - 부분 맵이 있으면 시드가 합쳐지지 않는다. 업그레이드 후 기존 Coding Plan 프로바이더에 Flash 모델만 추가되고 창 맵은 옛값 그대로인 경우와 맞는지 확인이 필요하다.
    경로 리포트 Version 2.54.0 vs 현재 2.55.0/dev - 메인테이너 환경에서 ocx models live --json으로 Flash/5.3을 다시 찍어, 이미 고쳐졌는지(닫기) 아니면 여전히 재현되는지(버그 유지)부터 가르는 게 맞다.

    메인테이너의 판단이 필요한 지점

    • 2.55.0/dev에서 동일 재현이 나오는지. 안 나오면 “이미 시드·카탈로그 경로에서 해결”로 닫을지, 업그레이드 가이드만 남길지
    • 재현되면 수정 축을 derive 부분맵 머지 / live row 직렬화 / 메타데이터 fallback 중 어디로 둘지
    • help wanted로 열어 둘지, 카탈로그 레인에서 메인트 픽스로 바로 가져갈지

    너의 추천
    먼저 메인테이너가 현재 dev(또는 2.55.0 빌드)에서 이슈 본문과 같은 PowerShell/ocx models live --json 비교를 한 번 돌린다. Flash에 1M이 나오면 이슈를 completed로 닫고, 2.54.0→2.55.0에서 시드/카탈로그가 이미 갖춰졌다고 짧게 남긴다. 여전히 비면 need-repro-on-dev가 아니라 코드 버그로 두고, persist된 modelContextWindows 부분 맵과 applyProviderConfigHints가 Flash에 configuredCap을 못 심는 경로를 우선 조사하는 작은 픽스 PR을 받는다. 우선순위 56 — 카탈로그 UX 버그라 체감은 있지만, 현재 dev의 Codex forward/failover·미디어 가드 축보다는 한 단계 아래다.

    이 댓글은 grok-bot이 작성했습니다

  4. lidge-jun commented on Sep 14, 2026

    @lidge-jun
    Owner

    Fixed on dev by 1b6518f.

    The cause was an all-or-nothing copy in enrichProviderFromRegistry (src/providers/derive.ts): registry-supplied modelContextWindows were applied only when the operator map was absent entirely, so a provider that carried any hand-edited entry lost the registry context window for every other model, including zhipu-bigmodel-coding/glm-5.3-flash. Enrichment now fills per key beneath operator values, so an operator override keeps winning for the key it names while the rest still get their registry facts.

    A regression test pins the per-key fill, and hosted CI was green at the exact merged head.

  5. added a commit that references this issue on Sep 17, 2026
    8bdb8fa
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

    bugcatalogprovider

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions