diff --git a/web/src/components/SessionList.tsx b/web/src/components/SessionList.tsx index b0deca9f..47bd374d 100644 --- a/web/src/components/SessionList.tsx +++ b/web/src/components/SessionList.tsx @@ -1083,6 +1083,7 @@ export function SessionList(props: { const [collapseOverrides, setCollapseOverrides] = useState>( () => new Map() ) + const [runningSectionCollapsed, setRunningSectionCollapsed] = useState(false) const autoExpandedSelectedSessionKeyRef = useRef(null) const isGroupCollapsed = (group: SessionGroup): boolean => { if (isFiltering) return false @@ -1411,7 +1412,12 @@ export function SessionList(props: { {runningSessions.length > 0 ? (
-
+
setRunningSectionCollapsed((value) => !value)} + title={t('sessions.runningSection')} + > +
-
- {runningSessions.map((s) => ( - - ))} +
+
+
+ {runningSessions.map((s) => ( + + ))} +
+
) : null}