Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Sidebar: failed row preview shows the failed turn over a teammate wait (#6105)
Bugfixer 24383625f4b68
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsxindex ada40c33fc..80bcf3fcfd 100644--- a/src/components/Sidebar.tsx+++ b/src/components/Sidebar.tsx@@ -17,7 +17,7 @@ import { cn } from "@/lib/cn";import { searchMatchesThreads, useSearchDisclosure } from "@/lib/search-disclosure";import { useHeldMenuMotion, useMenuMotion } from "./MenuMotion";import { lastNonReceipt } from "@/lib/receipts";-import { botPreview, groupPreview } from "./sidebar-preview";+import { botPreview, groupPreview, lastLine } from "./sidebar-preview";import { activeLocale, t } from "@/lib/i18n"; import { isBotHeld } from "@/lib/bot-pause";import { copyText } from "@/lib/copy-text";import type { LocaleKey } from "@/locales";@@ -829,7 +829,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {{working ? (<SidebarWorkingStep bot={bot} last={last} />) : (- <FadeLine>{waiting ? t("sidebar.preview.waiting") : teammateWait ? t("sidebar.preview.waitingOnTeammate") : queued && !failed ? t("task.queued") : botPreview(bot, visible, instances, advanced)}</FadeLine>+ <FadeLine>{waiting ? t("sidebar.preview.waiting") : teammateWait ? t("sidebar.preview.waitingOnTeammate") : queued && !failed ? t("task.queued") : failed ? lastLine(bot, visible, instances, advanced) : botPreview(bot, visible, instances, advanced)}</FadeLine>)}</span>)}diff --git a/src/components/SidebarBotListItem.test.ts b/src/components/SidebarBotListItem.test.tsindex d47561bc58..9431baa5e6 100644--- a/src/components/SidebarBotListItem.test.ts+++ b/src/components/SidebarBotListItem.test.ts@@ -374,6 +374,9 @@ describe("BotListItem", () => {const teammate = renderRow(bot({ messages: failedTurn, waitingForTeammates: true }));expect(teammate).toContain('data-testid="failed-dot"');expect(teammate).not.toContain('data-testid="teammate-wait-dot"');+ // The preview follows the dot: the failed turn's line, not the teammate wait.+ expect(teammate).not.toContain("Waiting on a teammate");+ expect(teammate).toContain("The site did not answer.");const waiting = renderRow(bot({ messages: failedTurn, activity: "waiting-on-you" }));expect(waiting).toContain('data-testid="waiting-dot"');expect(waiting).not.toContain('data-testid="failed-dot"');