Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Sidebar: hide a conversation's link chip in Simple mode
luishron123a408c877c6c8
diff --git a/src/components/SidebarThreadRow.test.ts b/src/components/SidebarThreadRow.test.tsindex e125be17bd..8f3650a57b 100644--- a/src/components/SidebarThreadRow.test.ts+++ b/src/components/SidebarThreadRow.test.ts@@ -721,6 +721,20 @@ describe("Thread link", () => {expect(chipClass(render(true))).toContain("mt-2.5");expect(chipClass(render(false))).not.toContain("mt-2.5");});++ it("hides the chip in Simple mode, in the sidebar and the bot panel", () => {+ interfaceMode.advanced = false;+ const now = Date.UTC(2026, 8, 25, 12, 0, 0);+ for (const panel of [false, true]) {+ const markup = renderToStaticMarkup(createElement(SidebarThreadRow, {+ task: { threadId: "t", title: "Fix", updatedAt: now - 3_600_000, link: "https://github.com/o/r/pull/42" },+ ownerId: "b", current: false, now, panel, preview: "Last line", onSelect: vi.fn(), onRename: vi.fn(), onDelete: vi.fn(), locale: "en",+ }));+ expect(markup).toContain("Fix");+ expect(markup).not.toContain("#42");+ expect(markup).not.toContain("<a ");+ }+ });});describe("helper threads a bot opened", () => {diff --git a/src/components/SidebarThreadRow.tsx b/src/components/SidebarThreadRow.tsxindex 3477159e74..bf48648246 100644--- a/src/components/SidebarThreadRow.tsx+++ b/src/components/SidebarThreadRow.tsx@@ -378,7 +378,7 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,</span>}</span> : heading}</button>}- {task.link && <a href={task.link} target="_blank" rel="noreferrer" dir="ltr" title={task.link} aria-label={t("task.openLink", { link: threadLinkLabel(task.link) ?? task.link })}+ {advanced && task.link && <a href={task.link} target="_blank" rel="noreferrer" dir="ltr" title={task.link} aria-label={t("task.openLink", { link: threadLinkLabel(task.link) ?? task.link })}className={cn("shrink-0 rounded px-1 font-mono text-[12px] text-ink-secondary hover:bg-raised hover:text-ink outline-none focus-visible:ring-1 focus-visible:ring-accent/60 [unicode-bidi:isolate]", panel && "mt-2.5")}>{threadLinkLabel(task.link) ?? t("task.link")}</a>}{!renaming && <span className={cn("flex shrink-0 items-center gap-2 px-1", panel && "pt-2.5 empty:hidden")} onClick={choose} onContextMenu={contextMenu}>{updatedLabel && !panel && <time dateTime={new Date(updatedAt).toISOString()} className="shrink-0 tabular-nums text-[12px] font-medium leading-4 text-ink-secondary">{updatedLabel}</time>}