Skip to content

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

Merge origin/main into train L1b

milind-soni0d7efdbfbfab
diff --cc src/components/ChatMoreMenu.tsx
index 18bfc97d03,bc2dee4671..daed1e51ca
--- a/src/components/ChatMoreMenu.tsx
+++ b/src/components/ChatMoreMenu.tsx
@@@ -45,9 -44,9 +45,9 @@@ export function useChatMoreItems(profil
const hasMessages = messages.length > 0;
const contextAction = useContextAction();
const atFreshStart = messages.at(-1)?.compaction?.fresh === true;
- const transcript = () => formatTranscriptMarkdown({ title: bot.name, messages, botName: bot.name, isGroup: false });
+ const transcript = () => conversationTranscript({ threadId: bot.threadId, hasMore: bot.hasMore, activeLeafId: bot.activeLeafId, title: bot.name, messages, botName: bot.name, isGroup: false });
const side = useConversationSide(profile);
- const threads = showThreads ? [] : orderedThreadList((side ? tasksOfSide(profile, side) : profile.tasks ?? []).filter((task) => !task.routineRunId));
+ const threads = showThreads ? [] : mainThreadFirst(orderedThreadList((side ? tasksOfSide(profile, side) : profile.tasks ?? []).filter((task) => !task.routineRunId)), profile.mainThreadId);
const sharing = shareChoices(profile, profile.tasks?.find((task) => task.threadId === bot.threadId), Boolean(useTeamName()));
const shareItems: SidebarMenuItem[] = [
{ key: TEMPLATE_ITEM, label: t("template.shareAsTemplate"), icon: <LayoutTemplate size={16} />,