diff --git a/web/src/App.jsx b/web/src/App.jsx index 0dfb4af3..7aafb6b0 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -515,8 +515,8 @@ export function App() { setActiveRef(next); }, [resetSidebarSessionLoading]); - const navigateToRef = useCallback((nextRefOrUpdater) => { - resetSidebarSessionLoading(); + const navigateToRef = useCallback((nextRefOrUpdater, options = {}) => { + if (!options.preserveSidebarSessionLoading) resetSidebarSessionLoading(); const current = activeRefRef.current; const next = typeof nextRefOrUpdater === 'function' ? nextRefOrUpdater(current) diff --git a/web/src/components/Sidebar.jsx b/web/src/components/Sidebar.jsx index 3590df6c..61cc18f1 100644 --- a/web/src/components/Sidebar.jsx +++ b/web/src/components/Sidebar.jsx @@ -688,8 +688,22 @@ function SidebarSectionHeader({ sectionId, count, expanded, onToggle, actions = } function SessionAttentionIndicator({ attention, meta }) { + if (attention !== 'in_progress' && attention !== 'unread') return null; + return attention === 'in_progress' ? ( - + +