Skip to content

fix(chat): list only models the agent supports in Composer - #66

Merged
NeilJo-GY merged 1 commit into
mainfrom
fix/composer-supported-models-only
Aug 31, 2026
Merged

fix(chat): list only models the agent supports in Composer#66
NeilJo-GY merged 1 commit into
mainfrom
fix/composer-supported-models-only

Conversation

@NeilJo-GY

Copy link
Copy Markdown
Contributor

Summary

  • Composer dropdown is supported models ∪ listing, not the Host Catalog dump and not last session’s pick.
  • If the stored model is no longer supported, snap to the listing. Stops 400 unsupported_model after an agent drops a SKU (e.g. CN Credits Desk dropping gpt-4o-mini).

Test plan

  • Direct chat: agent reports only openai/gpt-4o — Composer shows that (挂牌), not a leftover mini.
  • Send succeeds without 「该智能体不支持所选模型」.
  • Agent with several supported_models: can still switch among them.
  • Official / OpenRouter BYO: Composer no longer lists the full catalog; Settings remains the catalog surface.

Drop catalog dumps and session leftover picks from the dropdown. If the
stored model is gone, snap to the listing instead of sending an unsupported id.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
interfaze Ready Ready Preview Aug 31, 2026 3:06pm

@NeilJo-GY
NeilJo-GY merged commit 7290871 into main Aug 31, 2026
3 checks passed
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.

1 participant