Skip to content

[Bug] ocx claude times out loading model context with a large disabled model list #8945

Closed

Description

@oliver-mee

Client or integration

Claude Code

Area

Catalog / models

Summary

ocx claude frequently skips automatic [1m] marking on a hub with a large model roster and exclusion list. The launcher gives the local Claude settings request 3 seconds. The request returns valid context metadata when given more time. The same catalogue work also slows gateway picker refreshes.

This looks like #606 from stderr, but the bottleneck is different. The settings route scans disabledModels per routed row twice, copying the set into an array each time. The shared visibility filter scans it again. The catalogue and exclusion list each had about 2,400 entries. An isolated measurement of those three checks took about 2.2 s; equivalent set lookups took under 10 ms and returned the same rows. The proxy process spent about 3.2 s of CPU on the full context request, with negligible child-process CPU.

Reproduction

  1. Use an OpenCodex hub with about 2,400 routed models and 2,400 entries in disabledModels. No particular provider is required. Namespaced model IDs with an inner slash match the observed catalogue shape; either raw or encoded exclusions are supported.
  2. With the hub already healthy, run ocx claude --version to exercise the launcher without sending a prompt.
  3. On v2.100.5, time the authenticated local GET /api/claude-code on the management ingress. Several repeat calls took 3.1 to 3.2 s and returned HTTP 200 with a longer client deadline. The 3 s startup deadline drops the result. On current dev the launcher requests ?view=launch, but the same preview scans still run before that early return.
  4. The picker route is GET /v1/models?limit=1000&ids=cli with an anthropic-version: 2023-06-01 header. It took 1.4 to 1.9 s on its own and 4.9 s when it overlapped the context request in one check.

Expected: startup reads complete within the existing deadline under the same conditions. If the context request times out, the warning should say so in English.

Version

2.100.5; the same scans and warning are present on dev at ca96ead01.

Operating system

Ubuntu 24.04 LTS (arm64)

Provider and model

Not provider-specific. The slow work is local catalogue filtering.

Logs or error output

⚠ 모델 컨텍스트 정보를 불러오지 못했습니다 — 1M 자동 표시는 이번 실행에서 생략됩니다.
⚠ Gateway model cache could not be refreshed; the model picker may be stale.

Checks

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

Activity

  1. added
    bug
    catalog
    cli
    on Nov 19, 2026
  2. lidge-jun commented on Nov 20, 2026

    @lidge-jun
    Owner

    Fixed by #8946, squash-merged into dev as 5c008e0.

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

    bugcatalogcli

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions