Repository navigation
fix(frontend): disable New chat when the workspace has no providers - #1431
Merged
Merged
Conversation
The sidebar button and the command menu item now stay disabled once the Providers read resolves empty, with a tooltip on the sidebar saying who can add one. Loading or errored reads leave New chat enabled. Closes #1428 Co-Authored-By: Claude Opus 5.5 <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.
Summary
Loading or errored Providers read →
dataundefined → New chat stays enabled. The Chat docs page now says New chat is unavailable until the Workspace has a Provider.Closes #1428
Evidence
AppSidebar New chat > disables New chat once the workspace is known to have no providersfails (link to/chatrendered);CommandMenu > disables New chat…fails (item navigates).After: both pass, plus tooltip wording for org admin / delegated Workspace Owner / non-delegated Workspace Owner, and loading / errored / has-providers still navigating.
pnpm lint,typecheck,format:check,testall green.Merge Danger
Door: two-way
Blast Radius: small
One extra Providers read (SWR-deduped) in the sidebar and command menu. Worst case a stale empty cache briefly disables New chat until revalidation.
🤖 Generated with Claude Code