File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 +
You can’t perform that action at this time.
0 commit comments