fix(cli): show create new assistant option when logged in (#11004)

This commit is contained in:
Aditya Mitra 2026-03-10 12:46:38 +05:30 • committed by GitHub
parent 3ac32020b8
commit db916e0cff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);