Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(chat): preserve idle footer spacing (MUL-5854)

iiwishdd14744051f1
diff --git a/packages/views/chat/components/chat-message-list.test.tsx b/packages/views/chat/components/chat-message-list.test.tsx
index 3d4aa3700a..134e903cab 100644
--- a/packages/views/chat/components/chat-message-list.test.tsx
+++ b/packages/views/chat/components/chat-message-list.test.tsx
@@ -191,6 +191,35 @@ describe("ChatMessageList live timeline (MUL-3960 regression)", () => {
});
});
+describe("ChatMessageList footer spacing", () => {
+ it("keeps the bottom inset when no task is pending", () => {
+ const { container } = render(
+ <I18nProvider locale="en" resources={TEST_RESOURCES}>
+ <QueryClientProvider client={new QueryClient()}>
+ <ChatMessageList
+ messages={[
+ {
+ id: "assistant-idle",
+ chat_session_id: "session-idle",
+ role: "assistant",
+ content: "Idle reply",
+ task_id: null,
+ created_at: "2026-08-12T00:00:00Z",
+ },
+ ]}
+ pendingTask={null}
+ availability="online"
+ />
+ </QueryClientProvider>
+ </I18nProvider>,
+ );
+
+ const list = container.querySelector("[data-row-key]")?.parentElement;
+ expect(list?.lastElementChild).toHaveClass("pb-4");
+ expect(screen.queryByText(/working|queued/i)).not.toBeInTheDocument();
+ });
+});
+
describe("ChatMessageList quick actions", () => {
it("renders up to three suggestions and sends the hidden prompt", async () => {
const qc = new QueryClient();
diff --git a/packages/views/chat/components/chat-message-list.tsx b/packages/views/chat/components/chat-message-list.tsx
index b83ae90dd4..c56414491d 100644
--- a/packages/views/chat/components/chat-message-list.tsx
+++ b/packages/views/chat/components/chat-message-list.tsx
@@ -151,15 +151,15 @@ function ChatListHeader({ context }: { context?: ChatListContext }) {
// constant bottom inset: without it the last row's own py-2 was the only gap
// between the final reply (and its follow-up pills) and the composer.
function ChatListFooter({ context }: { context?: ChatListContext }) {
- if (!context) return null;
- if (!context.showStatusPill || !context.pendingTask) return null;
return (
<div className={cn(CHAT_COLUMN, "pb-4 space-y-4")}>
- <TaskStatusPill
- pendingTask={context.pendingTask}
- taskMessages={context.liveTaskMessages ?? []}
- availability={context.availability}
- />
+ {context?.showStatusPill && context.pendingTask ? (
+ <TaskStatusPill
+ pendingTask={context.pendingTask}
+ taskMessages={context.liveTaskMessages ?? []}
+ availability={context.availability}
+ />
+ ) : null}
</div>
);
}