feat: shared providers catalog and model config UX#1606
Draft
Douglasymlai wants to merge 5 commits into
Draft
Conversation
Introduce merge utilities for API/catalog form rows and a Zustand store so chat and Agents Models can share one source of truth for BYOK models. Co-authored-by: Cursor <cursoragent@cursor.com>
Update auth flows so the shared catalog store reflects login and model-type changes, with unit coverage for the new behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Mount a shared hook from Layout so home and history keep the BYOK catalog fresh without duplicate fetches from nested views. Co-authored-by: Cursor <cursoragent@cursor.com>
Rely on the catalog store for availability checks and tighten default-model selection so chat matches Agents → Models when switching in-app. Co-authored-by: Cursor <cursoragent@cursor.com>
Wire the model dropdown, workspace, home, and Agents Models page to the catalog store so lists and edits stay consistent across the app. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a shared Zustand-backed providers catalog (merge helpers + API sync) so the chat model dropdown and Agents → Models stay in step. Auth updates clear or refresh the catalog with session changes; Layout mounts a background sync hook for home/history.
Commits
feat(catalog): add providers merge helpers and shared catalog storefeat(auth): keep providers catalog in sync with session model configfeat(layout): background-sync providers catalog on auth routesfix(models): align model config gate with shared catalogfeat(ui): consume shared providers catalog in chat and modelsTesting
test/unit/store/authStore.test.tsMade with Cursor