From ec638b020d884f84ebd8007a8f5e8d8134fdd8f2 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 3 Mar 2026 18:02:24 +0530 Subject: [PATCH] fix(cli): show create new assistant option when logged in --- 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 8c8d2ae550b..ea97a747674 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);