fix(cli): show create new assistant option when logged in (#11004)
This commit is contained in:
parent
3ac32020b8
commit
db916e0cff
1 changed files with 9 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue