Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Thread tabs: the side panel's pill keeps its thread name, as it has no strip
milind-soni741fb9e774bd
diff --git a/src/components/ChatHeadPill.tsx b/src/components/ChatHeadPill.tsxindex 60083ec0ee..43c0bba38a 100644--- a/src/components/ChatHeadPill.tsx+++ b/src/components/ChatHeadPill.tsx@@ -33,8 +33,9 @@ function privacyLabelOf(privacy: ChatHeadPrivacy): string | null {/** Simple mode's whole chat header: the bot's face and name in one pill, which opens and closes the bot panel. Away from* the bot's main conversation it also names the one on screen. A dot says another of the bot's conversations needs a* look; a team chat says who can read it with one quiet glyph. */-export function ChatHeadPill({ bot, avatar, privacy, onToggle }: {+export function ChatHeadPill({ bot, avatar, privacy, onToggle, tabsAbove = false }: {bot: Bot;+ tabsAbove?: boolean;avatar: Pick<ComponentProps<typeof BotAvatar>, "state" | "motion" | "motionKey" | "animated">;privacy: ChatHeadPrivacy;onToggle: () => void;@@ -48,7 +49,7 @@ export function ChatHeadPill({ bot, avatar, privacy, onToggle }: {const conversation = !awayFromMainThread(bot, false) ? (privacy?.kind === "shared" ? t("task.sharedChat") : null): !title || title === UNTITLED ? t("task.untitledChat") : localizedTaskTitle(title);const label = t("chat.openProfileAria", { name: bot.name });- const tabsName = useThreadTabsShown(bot.id);+ const tabsName = useThreadTabsShown(bot.id) && tabsAbove;return (<buttontype="button"diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsxindex d276958af5..71f53add06 100644--- a/src/components/ChatView.tsx+++ b/src/components/ChatView.tsx@@ -936,7 +936,7 @@ export const ChatView = memo(function ChatView({ bot: profile, inForkPanel = fal<div data-chathead-identity className={cn("flex min-w-0 items-center gap-2", phone ? "flex-1" : "@max-[30rem]/chathead:basis-full @min-[30rem]/chathead:col-start-2 @min-[30rem]/chathead:justify-self-center", simpleHead && phone && "justify-center")} style={headerNoDragStyle}>{simpleHead ? (<ChatHeadPill- bot={bot}+ bot={bot} tabsAbove={!inForkPanel}avatar={{ state: stateForBot({ ...bot, messages }), motion: headerMotion, motionKey: mascotMotion?.nonce ?? 0, animated: headerAnimated }}privacy={privateChat ? { kind: "private" } : ownHelper ? { kind: "ownHelper" } : sharedChat && team ? { kind: "shared", team: team.name, onlyPeopleAdded: bot.onlyPeopleAdded, sharedWith: currentTask?.sharedWith?.name } : null}onToggle={() => dispatch({ type: "toggleSettings", open: !state.settingsOpen })}