Skip to content

Your lightweight open-source personal agent.

fix(webui): center project session labels

Xubin Ren5ec4b16863a8
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}
<span className="min-w-0 flex-1 overflow-hidden">
{projectMode ? (
- <span className="relative flex w-full min-w-0 items-baseline gap-2">
+ <span className="relative flex w-full min-w-0 items-center gap-2">
<SidebarSessionHandle handle={s.handle} />
<span className="min-w-0 flex-1 truncate font-medium leading-5">
{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();