Deferred review findings from PR #11959: feat(core): resolve model limits and modalities from a models.dev catalog
Verified review findings from PR #11959 by yiliang114 whose fixes lie outside that PR's footprint, deferred by the autofix loop for follow-up. cc @yiliang114. Each rc: item links back to its original review comment. A maintainer or the PR author can turn any item into its own issue/PR and apply the ready-for-agent flow to that issue — nothing here is scheduled automatically.
rc:4112019766
docs/verification/models-dev-catalog/README.md: Verification README delegates evidence to a gitignored .qwen/e2e-tests/ path reviewers cannot inspect; real docs-process fix belongs outside this critical-only round. — commentrc:4112019769
integration-tests/test-helper.ts: Kill-switch stub lives in only one integration helper; other setups lack it. Real test-infra gap, not blocking: env-only guard with test-dir-scoped writes. — commentrc:4112019770
packages/core/src/models/model-catalog.ts: Mid-session invalidateModelCatalog splits clamp inputs (contextWindowSize resolved pre-refresh, output post). Real; needs snapshot-commit or session-pin design beyond this round. — commentrc:4112019775
packages/cli/src/utils/sandbox.ts: Sandbox passthrough lacks QWEN_CODE_MODELS_DEV_URL / *_REFRESH; only affects mirror users behind sandbox config. — commentrc:4112019777
packages/core/src/config/config.ts: refreshModelCatalog caller at Config.initialize has no direct test witness; falsification probe suggested. — commentrc:4112019778
packages/core/src/models/model-catalog-refresh.ts: 10s fetch timeout unpinned by tests; fake-timers test suggested. — commentrc:4112019780
packages/core/src/models/model-catalog.ts: Stale-window lookup after invalidateModelCatalog unwitnessed. — commentrc:4112019781
packages/core/src/models/model-catalog.ts: Served-source flip after mid-session refresh unwitnessed. — commentrc:4112019782
packages/core/src/models/model-catalog-refresh.ts: REFRESH_INTERVAL_MS magnitude unpinned (boundary-relative tests only). — commentrc:4112019784
packages/core/src/models/model-catalog-refresh.ts: sortedModels ordering unwitnessed. — commentrc:4112019785
packages/core/src/models/model-catalog-refresh.ts: Unparseable-cache-vs-absent path unwitnessed. — commentrc:4112019788
packages/core/src/core/tokenLimits.test.ts: Misleading test name/fixture: mock catalog makes 'gpt-5' hit the catalog; bundled-snapshot sweep is the suggested replacement. — commentrc:4112019789
packages/core/src/core/tokenLimits.ts: knownTokenLimit contract silently changed from undefined-on-miss to catalog-shaped; rename + fallback-chain restoration suggested as follow-up. — commentrc:4112019790
packages/core/src/models/model-catalog-refresh.test.ts: 'serves it immediately' can pass before the cache write lands (wall-clock assertion); tighten by capturing after await. — commentrc:4112019797
packages/core/src/models/model-catalog-refresh.ts: MODELS_DEV_PROVIDERS admits mirror/hub providers (modelscope, volcengine) with silent override potential (gpt-5.4 example). — commentrc:4112019801
scripts/generate-model-catalog.ts: Six keys sourced only from host-qualified ids act as hidden fallbacks; generation should fail when a pinned id disappears upstream. — commentrc:4112019806
packages/core/src/models/model-catalog.ts: Single global cache keyed by fetchedAt: one user's mirror refresh rewrites another's pinned-URL values. Per-source cache keying is the fix. — commentrc:4112019811
packages/core/src/models/model-catalog-refresh.ts: Clock skew after a 304 can suppress refresh for a full extra day; revalidate when ETag predates interval. — commentrc:4112019816
packages/core/src/models/model-catalog-refresh.ts: Live fetch has no byte cap while the generator budgets 200 KiB; add a cap at the read site. — commentrc:4112019820
packages/core/src/models/model-catalog-refresh.ts: Addressed in 5559c2d374. Cache lookup and ETag reuse require the current projection version; shared generation/refresh stamp that version. The matched tmux upgrade run and six red mutation cases verify the fix. — original commentR4-2 (
packages/vscode-ide-companion/src/utils/acpModelInfo.test.ts): Add a catalog-sensitive derivedcontextLimitassertion to the existing isolated-profile tests. Explicit legacy/meta limits are already asserted; the remaining gap concerns inferred catalog defaults, not an observed runtime defect. Classified as a non-blocking test-coverage Suggestion under AGENTS.md and deferred after review convergence. See the terminal verification report.
Source: QwenLM/qwen-code