Repository navigation
fix(claude): avoid repeated disabled model scans at launch - #8946
Conversation
Keep the authenticated launch view out of dashboard-only preview work and check raw and encoded exclusions through the existing set. Report a context read timeout explicitly without changing its deadline.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. Hygiene✅ Deterministic PR hygiene checks passed. |
|
I ran
On base, all three launches printed both warnings, passed an unmarked model to Claude Code, and left the picker cache unwritten. On the PR head, all three reached the real Claude Code binary without either warning, passed the selected model with A separate stress run with all 2,400 models declared directly in config still hit timeouts on the PR head. The separate static-catalogue bottleneck is addressed in #8952. These results establish the improvement for the discovered catalogue fixture, not a latency guarantee for every large config. No interactive session or inference request was used. |
codex-catalog.test.ts is capped at 7985 lines by the file-size ratchet; the added case grew it past the cap. Move the case byte for byte into the existing, already-registered codex-catalog-exclusions.test.ts.
…#8945) On the base, GET /api/claude-code?view=launch built every dashboard alias before its early return; the launcher never reads them. Spy the alias builders and require zero calls for the launch view.
|
Maintainer integration (lidge-jun, dev) on exact head
Verification
|
Summary
ocx claudecan skip automatic[1m]marking when a large model catalogue makes its startup read miss the 3-second deadline. The launch view now skips dashboard-only previews, and both the dashboard and shared picker filter use direct exclusion lookups instead of scanning the whole list for each row.Closes #8945
Verification
bun run test tests/claude-integration/claude-cli.test.ts tests/claude-integration/claude-management-api.test.ts tests/codex-integration/codex-catalog.test.ts tests/providers/provider-antigravity-family-catalog.test.ts: 529 passed. The warning assertions failed on unmodifieddev. The HTTP regression covers the authenticated launch response, dashboard previews and picker, including slash-bearing exclusions and[1m].bun run typecheck,bun run privacy:scan,bun run structure:check, andcd docs-site && bun install --frozen-lockfile && bun run build: passed.bun scripts/test.ts --changed=upstream/devon macOS: 58,538 passed, 297 skipped, 6 failed. A paired rerun of the five affected files on this head and pristineca96ead01reproduced the same six failures on both, with 84 passes and one skip on each. The failures cover npm update recovery, connected runtime fallback, the child binary prerequisite, native catalog omission, and two composed Codex-off cases.Checklist
Developed with AI agents, with a human in the loop. Model: gpt-6.2-sol.
Maintainer follow-up commits (lidge-jun)
1bf54d9f12moves the exclusion case byte for byte into the registered siblingtests/codex-integration/codex-catalog-exclusions.test.ts.codex-catalog.test.tshad grown past its file-size cap (7,985).ef9dcf04d1adds a behavioral fail-before. With the merge-baseagent-settings-routes.ts,GET /api/claude-code?view=launchcalls the alias builders 2 times; with this fix it calls them 0 times.ef9dcf04d1:claude-management-api,claude-cli,codex-catalog,codex-catalog-exclusionsand the file-size ratchet: 537 pass, 0 fail. The independent terra review re-ran 569 focused tests, typecheck and structure:check (all exit 0). Full local suite: NOT RUN (resource exception); CI covers it.Maintainer refresh (lidge-jun)
7fd83f6e74merges currentdev(28 commits behind) into the branch with a merge commit; the only auto-merge wasstructure/gui-and-management-api.md, with no conflicts. Validation on7fd83f6e74:claude-management-api,claude-cli,codex-catalog-exclusions, ratchet and layout guards: 228 pass, 0 fail. Typecheck and structure:check pass.Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
Bug Fixes
[1m]marking was skipped—not that the provider reduced the model’s context limit.Documentation