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.
This commit is contained in:
Jinjing
2026-09-05 20:40:46 -07:00
parent ccbc4a55d7
commit c976cb1914
@@ -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}