Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Sidebar: icon-only row's name says when its last turn failed (#6105)
Bugfixer 2ee9af8631009
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsxindex c6126aae21..96e07e41f2 100644--- a/src/components/Sidebar.tsx+++ b/src/components/Sidebar.tsx@@ -863,7 +863,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {!renaming && iconOnly? deleting? t("sidebar.bot.deletingAria", { name: bot.name })- : `${bot.name}${bot.title?.trim() ? ` · ${bot.title.trim()}` : ""}${bot.chiefOfStaff ? ` · ${t("sidebar.bot.chiefOfStaff")}` : ""}${onLiveCall ? ` · ${t("call.live.badge")}` : ""}${waiting ? ` · ${t("sidebar.preview.waiting")}` : working ? ` · ${t("chat.activity.working")}` : teammateWait ? ` · ${t("sidebar.preview.waitingOnTeammate")}` : queued ? ` · ${t("task.queued")}` : ""}${unread ? ` · ${t("task.unread")}` : ""}`+ : `${bot.name}${bot.title?.trim() ? ` · ${bot.title.trim()}` : ""}${bot.chiefOfStaff ? ` · ${t("sidebar.bot.chiefOfStaff")}` : ""}${onLiveCall ? ` · ${t("call.live.badge")}` : ""}${waiting ? ` · ${t("sidebar.preview.waiting")}` : working ? ` · ${t("chat.activity.working")}` : failed ? ` · ${t("sidebar.preview.failed")}` : teammateWait ? ` · ${t("sidebar.preview.waitingOnTeammate")}` : queued ? ` · ${t("task.queued")}` : ""}${unread ? ` · ${t("task.unread")}` : ""}`: undefined}aria-busy={deleting || undefined} aria-keyshortcuts={drag ? "Alt+ArrowUp Alt+ArrowDown" : undefined}diff --git a/src/components/SidebarBotListItem.test.ts b/src/components/SidebarBotListItem.test.tsindex 9112b9f4bd..1706db49c5 100644--- a/src/components/SidebarBotListItem.test.ts+++ b/src/components/SidebarBotListItem.test.ts@@ -365,7 +365,9 @@ describe("BotListItem", () => {expect(dot).toContain("size-2.5");expect(failed).not.toContain('data-testid="waiting-dot"');expect(failed).not.toContain("bg-warning");- expect(opening(renderRow(bot({ messages: failedTurn }), "icons"), "failed-dot")).toContain("size-3");+ const icons = renderRow(bot({ messages: failedTurn }), "icons");+ expect(opening(icons, "failed-dot")).toContain("size-3");+ expect(icons).toContain('aria-label="Atlas · Ran into a problem"');// An engine that could not start writes the same row in its own thread; another thread's state alone paints nothing.expect(renderRow(bot({ activity: "dead" }))).not.toContain('data-testid="failed-dot"');// A failure outranks a teammate wait, but a question for you or a new turn already running wins.