From c976cb19149d64236cfb7f5a549fff8e3f3ea0a6 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Thu, 3 Sep 2026 17:47:17 -0700 Subject: [PATCH] fix(activity): wire onClearThread action to sidebar agents list The sidebar notification list was not receiving the onClearThread callback, so the clear button was never enabled. Wire the action from useActivityThreadActionBindings down to the ActivityThreadListPane in the sidebar. --- src/renderer/src/components/sidebar/SidebarAgentsList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/sidebar/SidebarAgentsList.tsx b/src/renderer/src/components/sidebar/SidebarAgentsList.tsx index 3a00b8ee079..763f6bcc745 100644 --- a/src/renderer/src/components/sidebar/SidebarAgentsList.tsx +++ b/src/renderer/src/components/sidebar/SidebarAgentsList.tsx @@ -82,7 +82,8 @@ export default function SidebarAgentsList({ markAllThreadsRead, hasUnreadThreads, hasCompletedThreads, - handleClearCompleted + handleClearCompleted, + handleClearThread } = useActivityThreadActionBindings({ visibleThreads, markAllReadThreads, @@ -157,6 +158,7 @@ export default function SidebarAgentsList({ onJumpToWorkspace={jumpToWorkspace} onMarkThreadRead={markThreadRead} onMarkThreadUnread={markThreadUnread} + onClearThread={handleClearThread} canJumpToWorkspace={canJumpToWorkspace} allowMarkUnreadWhenSelected showJumpAction={false}