fix: use worktree grouping for homepage project count

This commit is contained in:
weishu
2026-01-12 18:35:44 +08:00
parent 9f2da5f8ae
commit 83664a7fc9
+1 -1
View File
@@ -78,7 +78,7 @@ function SessionsPage() {
void refetch()
}, [refetch])
const projectCount = new Set(sessions.map(s => s.metadata?.path ?? 'Other')).size
const projectCount = new Set(sessions.map(s => s.metadata?.worktree?.basePath ?? s.metadata?.path ?? 'Other')).size
return (
<div className="flex h-full flex-col">