Skip to content

fix(models): use models.dev as metadata authority - #1315

Merged
vastsa merged 5 commits into
mainfrom
fix/codex-context-models-dev
Oct 2, 2026
Merged

vastsa merged 5 commits into
mainfrom
fix/codex-context-models-dev

Conversation

@vastsa

@vastsa vastsa commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Restore models.dev as the source of chat model limits and capabilities.
  • Keep pi-ai responsible for provider transport identities and OAuth discovery, not chat limits.
  • Preserve explicit account-level context and output overrides across catalog refreshes.
  • Update architecture decisions, runtime specs, and model catalog scenarios.

Validation

  • node --test apps/desktop/test/model-binding-catalog-source.test.mjs apps/desktop/test/model-discovery-precedence.test.mjs apps/desktop/test/models-dev-catalog.test.mjs apps/desktop/test/provider-catalog-runtime.test.mjs apps/desktop/test/provider-endpoint-metadata.test.mjs apps/desktop/test/vendor-oauth-login.test.mjs — 118 passed.
  • node_modules/.bin/tsc -p apps/desktop/tsconfig.json --noEmit — passed.
  • node scripts/check-agent-policy-sync.mjs — passed.
  • node scripts/check-pr-base-main.mjs — passed.

Closes #1304

vastsa added 4 commits October 2, 2026 22:52
Use the published catalog for chat model limits and capabilities so
provider model lists no longer inherit one repeated pi-ai context value.
Keep endpoint discovery and explicit per-account user overrides intact. Add
regression coverage and update the catalog decision and runtime specs.

Fixes #1304
Pin the issue's one-million-token Astra configuration through live
model discovery, metadata caching, settings selection, and runtime budget
resolution. This locks down the distinction between published catalog data
and an account's explicit context window.
Keep the Chinese decisions log aligned with the new models.dev chat
metadata authority and preserve the superseded catalog decisions as
historical context. Match the source decision table and timeline.
Update source-contract and lookup fixtures that still encode the former
Pi metadata authority. Keep the assertions focused on bundled models.dev
metadata and explicit provider-binding resolution.
@vastsa
vastsa merged commit fd66bd7 into main Oct 2, 2026
4 checks passed
@vastsa
vastsa deleted the fix/codex-context-models-dev branch October 6, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] v0.16.0 模型自动刷新后上下文显示 272K,与用户 100 万覆盖设置不一致

1 participant