Skip to content

Commit 0fe9a75

Browse files
t3dotggclaude
andcommitted
fix(web): boring folders show when the scope has no threads
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 1fa17a7 commit 0fe9a75

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/web/src/components/Sidebar.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,7 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
17761776
event.activatorEvent instanceof PointerEvent ? event.activatorEvent.clientY : null,
17771777
});
17781778
};
1779+
const hasProjectFolders = projectFolders !== null && projectFolders.length > 0;
17791780
const sidebarListItemsFresh = ((): readonly SidebarListItem[] => {
17801781
const rowsOf = (
17811782
list: readonly EnvironmentThreadShell[],
@@ -1785,13 +1786,15 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
17851786
const key = scopedThreadKey(scopeThreadRef(thread.environmentId, thread.id));
17861787
return { kind: "thread", key, section };
17871788
});
1789+
// Boring mode keeps empty project folders, so each can start a thread.
17881790
if (
1791+
!hasProjectFolders &&
17891792
pinnedThreads.length +
17901793
activeThreads.length +
17911794
workingThreads.length +
17921795
snoozedThreads.length +
17931796
settledCount ===
1794-
0
1797+
0
17951798
) {
17961799
return [];
17971800
}
@@ -3333,6 +3336,7 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
33333336
</TooltipProvider>
33343337
) : null}
33353338
{!isSearchingThreads &&
3339+
!hasProjectFolders &&
33363340
visibleDraftSessionCount === 0 &&
33373341
pinnedThreads.length +
33383342
activeThreads.length +

0 commit comments

Comments
 (0)