Repository navigation
Description
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
- 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. - With the hub already healthy, run
ocx claude --versionto exercise the launcher without sending a prompt. - On v2.100.5, time the authenticated local
GET /api/claude-codeon 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 currentdevthe launcher requests?view=launch, but the same preview scans still run before that early return. - The picker route is
GET /v1/models?limit=1000&ids=cliwith ananthropic-version: 2023-06-01header. 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
test(claude): prove the launcher view skips alias previews (lidge-jun…
fix(claude): avoid repeated disabled model scans at launch (#8946)
lidge-jun commentedon Nov 20, 2026
Fixed by #8946, squash-merged into dev as 5c008e0.