From db916e0cfff4612afa9939573f347d6d11886d39 Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Tue, 10 Mar 2026 12:46:38 +0530 Subject: [PATCH] fix(cli): show create new assistant option when logged in (#11004) --- extensions/cli/src/ui/ConfigSelector.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/extensions/cli/src/ui/ConfigSelector.tsx b/extensions/cli/src/ui/ConfigSelector.tsx index 8c8d2ae55..ea97a7476 100644 --- a/extensions/cli/src/ui/ConfigSelector.tsx +++ b/extensions/cli/src/ui/ConfigSelector.tsx @@ -111,13 +111,15 @@ const ConfigSelector: React.FC = ({ } } - // Add "Create new assistant" option - options.push({ - id: "create", - name: "Create new assistant", - type: "create", - displaySuffix: " (opens web)", - }); + // Add "Create new assistant" option only when logged in + if (accessToken) { + options.push({ + id: "create", + name: "Create new assistant", + type: "create", + displaySuffix: " (opens web)", + }); + } // Determine current config by checking both auth config and service state const assistantSlug = getAssistantSlug(authConfig);