feat(web): attach a provider account to each project - #2
Merged
Conversation
Add a per-project "Default agent" selector so a project can pin a specific provider instance (account) and model. New threads in that project start on that account, still overridable per thread. The selection persists to the project's existing defaultModelSelection, so no contract or server changes were needed. The field reads the value live from the projects atom rather than the dialog's captured snapshot, and keeps a removed/disabled instance visible as "(unavailable)" so a stale pin can be cleared instead of silently vanishing. Wired into both the V1 and V2 sidebar project dialogs, plus a collapsible Providers-settings guide explaining how to set up two accounts of the same provider and route each to a different project. Co-Authored-By: Claude <noreply@anthropic.com>
Resolves conflicts in SidebarV2.tsx against the per-project GitHub account feature (#1), which landed on the same project settings dialog. Every conflict was additive rather than either/or, so both features are kept intact: the GitHubAccountRef and ModelSelection type imports, the GitHubIcon and ProjectDefaultAgentField component imports, and both the updateProjectDefaultModelSelection and updateProjectGitHubAccount callbacks (whose bodies had overlapped on their shared toast tail). Co-Authored-By: Claude <noreply@anthropic.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.
Add a per-project "Default agent" selector so a project can pin a
specific provider instance (account) and model. New threads in that
project start on that account, still overridable per thread.
The selection persists to the project's existing defaultModelSelection,
so no contract or server changes were needed. The field reads the value
live from the projects atom rather than the dialog's captured snapshot,
and keeps a removed/disabled instance visible as "(unavailable)" so a
stale pin can be cleared instead of silently vanishing.
Wired into both the V1 and V2 sidebar project dialogs, plus a
collapsible Providers-settings guide explaining how to set up two
accounts of the same provider and route each to a different project.
Co-Authored-By: Claude noreply@anthropic.com