Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions extensions/cli/src/ui/ConfigSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,15 @@ const ConfigSelector: React.FC<ConfigSelectorProps> = ({
}
}

// 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);
Expand Down
Loading