diff --git a/src/renderer/components/SessionList.tsx b/src/renderer/components/SessionList.tsx index 6add0987..2194c3bf 100644 --- a/src/renderer/components/SessionList.tsx +++ b/src/renderer/components/SessionList.tsx @@ -2640,12 +2640,29 @@ function SessionListInner(props: SessionListProps) { {/* SESSIONS - Flat list when no groups exist, otherwise show Ungrouped folder */} {sessions.length > 0 && groups.length === 0 ? ( - /* FLAT LIST - No groups exist yet, show sessions directly */ -
- {sortedFilteredSessions.map((session) => - renderSessionWithWorktrees(session, 'flat', { keyPrefix: 'flat' }) - )} -
+ /* FLAT LIST - No groups exist yet, show sessions directly with New Group button */ + <> +
+ {sortedFilteredSessions.map((session) => + renderSessionWithWorktrees(session, 'flat', { keyPrefix: 'flat' }) + )} +
+
+ +
+ ) : groups.length > 0 && ungroupedSessions.length > 0 ? ( /* UNGROUPED FOLDER - Groups exist and there are ungrouped agents */
@@ -2667,6 +2684,22 @@ function SessionListInner(props: SessionListProps) { Ungrouped Agents
+ {!ungroupedCollapsed ? ( @@ -2692,25 +2725,25 @@ function SessionListInner(props: SessionListProps) { )} + ) : groups.length > 0 ? ( + /* NO UNGROUPED AGENTS - Show standalone New Group button */ +
+ +
) : null} - {/* NEW GROUP BUTTON - Always visible */} -
- -
- {/* Flexible spacer to push group chats to bottom */}