Repository navigation
fix(chat): drop the Set up badge and its key check with the new Chat on - #1998
Merged
Merged
Conversation
With CHAT_AGENTIC on, Chat runs on the plan's AI limit and an own key is Enterprise only, so the sidebar's and mobile menu's "Set up" badge asked every customer without a key to set up something there is nothing to set up. The menus no longer ask /api/settings/ai-providers for the key status with the new Chat on, and dashboardNavBadge never shows Set up then. The words move to en.json (nav.chatSetUp). With the new Chat off, nothing changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 of 13 tasks
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
Chat's "Set up" menu badge is for the old Agent Chat. With the new Chat on (
CHAT_AGENTIC), the sidebar and the mobile menu stop showing it and stop checking for a key.The problem
/api/settings/ai-providers(configured).lib/chat/key.ts). So every customer without a key saw "Set up", with nothing to set up.What changes
isCloud && !chatAgentictouseAgentKeyStatus. With the new Chat on, the key status request is never sent.dashboardNavBadgetakeschatAgenticand the badge's words (chatSetUp). It never shows Set up with the new Chat on.nav.chatSetUpinen.json.The flag reaches the menus the way it already does for Agent Center and the
/dashboard/chatlink:useChatAgentic(), which the dashboard layout fills on the server.The demo brand's "Soon (next week)" badge is left as it is; it goes in the next PR, together with the rest of the demo's Chat preview.
No Help article describes this badge, so none changes.
Related issue
None. Chat launch check (2026-11-03).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Tests
dashboard-navigation.test.ts: no Set up withchatAgentic, and the words come fromen.json.sidebar.test.tsxandmobile-nav.test.tsx, on the cloud with no key:useAgentKeyStatusprobes;useAgentKeyStatusis never asked to probe.Run:
yarn vitest run src/lib/dashboard-navigation.test.ts src/components/layout/sidebar.test.tsx src/components/layout/mobile-nav.test.tsx src/hooks src/lib/subscription-guard-coverage.test.ts: 11 files, 100 tests pass.By hand (
web/.env.local:NEXT_PUBLIC_IS_CLOUD=true, a workspace with no AI provider key)CHAT_AGENTICunset: the sidebar's Chat says Set up.CHAT_AGENTIC=trueand restart the web server./api/settings/ai-providers.Checklist
yarn lintpasses (0 errors; 7 old warnings in files this PR doesn't touch)yarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)CI passed on this branch (aa46655), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41414413339): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code