Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge #7608 into train/nov27-u2

milind-soni882a304bf5cb
diff --cc src/components/ChatMoreMenu.tsx
index 9c642c7ea0,17ba53ab38..1f693a0374
--- a/src/components/ChatMoreMenu.tsx
+++ b/src/components/ChatMoreMenu.tsx
@@@ -133,18 -127,11 +133,19 @@@ export function useChatMoreItems(profil
key: "start-fresh",
label: t("chat.startFresh"),
icon: <RotateCcw size={16} />,
- disabled: bot.busy || contextAction.pending || !hasMessages || atFreshStart,
+ disabled: bot.busy || contextAction.pending || !hasMessages || atFreshStart || Boolean(bot.switchingTo),
title: t(bot.busy ? "contextWarning.busy" : "chat.startFresh.hint"),
+ trailing: <ShortcutHint id="start-fresh" />,
onSelect: () => contextAction.run(`/api/bots/${profile.id}/start-fresh`, { threadId: bot.threadId }),
},
+ ...(canSetMain ? [{
+ key: "set-main",
+ label: t("sidebar.bot.simple.setMainThread"),
+ icon: <Star size={16} />,
+ disabled: isMain,
+ title: isMain ? t("sidebar.bot.simple.isMainThread") : undefined,
+ onSelect: () => threadRowActions(profile.id, dispatch).onSetMain({ threadId: bot.threadId }),
+ } satisfies SidebarMenuItem] : []),
...shareItems,
{
key: "copy",