@devries-cameron20 / t3code-1 / commits / fc2b5de20c
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): a project filter that hides every active thread says so and offers Show all projects (#35426)

Julius Marminge committed Nov 12, 2026 at 10:23 UTC fc2b5de20cb572d2333e03284466e3c804d25c84
1 file changed +45 -31
apps/web/src/components/Sidebar.tsx
+45 -31
@@ -3285,6 +3285,51 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
3285 </p>
3286 )
3287 ) : null}
3288 + {/* A scope can hide every active thread; say so even when its project still has settled ones. */}
3289 + {!isSearchingThreads &&
3290 + !hasProjectFolders &&
3291 + visibleDraftSessionCount === 0 &&
3292 + pinnedThreads.length +
3293 + activeThreads.length +
3294 + workingThreads.length +
3295 + snoozedThreads.length ===
3296 + 0 &&
3297 + (settledCount === 0 || scopedProjectGroups.length > 0) ? (
3298 + <div className="flex flex-col items-center gap-2 px-2 py-6 text-center text-xs text-muted-foreground/60">
3299 + {projects.length === 0 ? (
3300 + <>
3301 + <span>No projects yet</span>
3302 + <button
3303 + type="button"
3304 + onClick={openAddProjectCommandPalette}
3305 + className="inline-flex cursor-pointer items-center gap-1.5 rounded-md border border-sidebar-border px-2.5 py-1 text-2xs font-medium text-sidebar-muted-foreground transition-colors hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
3306 + >
3307 + <PlusIcon className="-mx-0.5 size-3" />
3308 + Add project
3309 + </button>
3310 + </>
3311 + ) : scopedProjectGroups.length > 0 ? (
3312 + <>
3313 + <span>
3314 + {`No ${settledCount > 0 ? "active threads" : "threads"} in ${
3315 + scopedProjectGroups.length > 1
3316 + ? "these projects"
3317 + : scopedProjectGroups[0]!.displayName
3318 + }${settledCount > 0 ? "" : " yet"}`}
3319 + </span>
3320 + <button
3321 + type="button"
3322 + onClick={() => setProjectScopeKeys([])}
3323 + className="inline-flex cursor-pointer items-center gap-1.5 rounded-md border border-sidebar-border px-2.5 py-1 text-2xs font-medium text-sidebar-muted-foreground transition-colors hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
3324 + >
3325 + Show all projects
3326 + </button>
3327 + </>
3328 + ) : (
3329 + "No threads yet"
3330 + )}
3331 + </div>
3332 + ) : null}
3333 {!isSearchingThreads ? (
3334 <TooltipProvider
3335 key="sidebar-thread-tooltips-150"
@@ -3621,37 +3666,6 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
3666 </DndContext>
3667 </TooltipProvider>
3668 ) : null}
3624 - {!isSearchingThreads &&
3625 - !hasProjectFolders &&
3626 - visibleDraftSessionCount === 0 &&
3627 - pinnedThreads.length +
3628 - activeThreads.length +
3629 - workingThreads.length +
3630 - snoozedThreads.length +
3631 - settledCount ===
3632 - 0 ? (
3633 - <div className="flex flex-col items-center gap-2 px-2 py-6 text-center text-xs text-muted-foreground/60">
3634 - {projects.length === 0 ? (
3635 - <>
3636 - <span>No projects yet</span>
3637 - <button
3638 - type="button"
3639 - onClick={openAddProjectCommandPalette}
3640 - className="inline-flex cursor-pointer items-center gap-1.5 rounded-md border border-sidebar-border px-2.5 py-1 text-2xs font-medium text-sidebar-muted-foreground transition-colors hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
3641 - >
3642 - <PlusIcon className="-mx-0.5 size-3" />
3643 - Add project
3644 - </button>
3645 - </>
3646 - ) : scopedProjectGroups.length > 1 ? (
3647 - "No threads in these projects yet"
3648 - ) : scopedProjectGroups[0] ? (
3649 - `No threads in ${scopedProjectGroups[0].displayName} yet`
3650 - ) : (
3651 - "No threads yet"
3652 - )}
3653 - </div>
3654 - ) : null}
3669 </SidebarGroup>
3670 </SidebarContent>
3671 <SidebarChromeFooter />