Skip to content

CL-5775: Fix Agents model catalog fetch (paginated endpoint, isolated failure) - #12

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-5775-fix-agents-page-model-fetch-wrong-endpoint-shape-blanks-the
Aug 9, 2026
Merged

CL-5775: Fix Agents model catalog fetch (paginated endpoint, isolated failure)#12
TheGreatAxios merged 3 commits into
mainfrom
cl-5775-fix-agents-page-model-fetch-wrong-endpoint-shape-blanks-the

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Agents model catalog hits the paginated /catalog/models shape, not a bare-array /models endpoint.
  • Catalog failure is isolated so the Agents page still loads and the picker shows a soft note instead of blanking the page.

Test plan

  • bun test apps/web/test/agents-api.test.ts
  • Manual: open Agents with a broken catalog — page loads; create dialog shows soft failure, not a white screen

Closes CL-5775

The directory client called the bare-array /models discovery route with a
paginated ModelResponse schema, so the parse always failed and Promise.all
blanked the whole Agents page. Point it at /catalog/models, keep the real
disabled filter on catalog rows, and load models best-effort so a catalog
outage degrades only the create-agent picker.
@TheGreatAxios
TheGreatAxios merged commit 8c218e6 into main Aug 9, 2026
2 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-5775-fix-agents-page-model-fetch-wrong-endpoint-shape-blanks-the branch August 9, 2026 07:09
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