diff --git a/webui/src/components/ChatList.tsx b/webui/src/components/ChatList.tsx index 2ace0e617..2f09bbb51 100644 --- a/webui/src/components/ChatList.tsx +++ b/webui/src/components/ChatList.tsx @@ -993,7 +993,7 @@ export const ChatList = memo(function ChatList({ ) : null} {projectMode ? ( - + {title} diff --git a/webui/src/tests/chat-list.test.tsx b/webui/src/tests/chat-list.test.tsx index 0d4b95589..5b60db791 100644 --- a/webui/src/tests/chat-list.test.tsx +++ b/webui/src/tests/chat-list.test.tsx @@ -983,6 +983,7 @@ describe("ChatList", () => { session({ chatId: "alpha", title: "Alpha task", + handle: { id: "handle_alpha", name: "mira" }, updatedAt: "2026-05-20T11:00:00Z", workspaceScope: { project_path: "/Users/me/nanobot", @@ -1030,6 +1031,12 @@ describe("ChatList", () => { "border-sidebar-foreground/10", ); expect(within(nanobotSection).getByText("Alpha task")).toBeInTheDocument(); + expect( + within(nanobotSection) + .getByText("@mira") + .closest("[data-sidebar-session-handle]") + ?.parentElement, + ).toHaveClass("items-center"); expect(within(nanobotSection).getByText("Zeta task")).toBeInTheDocument(); expect(nanobotText.indexOf("Alpha task")).toBeLessThan(nanobotText.indexOf("Zeta task")); expect(within(nanobotSection).getByLabelText("Agent running")).toBeInTheDocument();