Merge pull request #72912 from NousResearch/bb/desktop-project-count

Drop the leftover session counts inside an entered project
This commit is contained in:
brooklyn! 2026-07-27 17:12:39 -05:00 committed by GitHub
commit 14cb0507a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 10 deletions

View file

@ -139,8 +139,6 @@ function RepoFlatSection({
group.isMain || !dismissedWorktrees.includes(group.id) || (group.path && discoveredWorktreePaths.has(group.path))
)
const repoCount = ordered.reduce((sum, group) => sum + group.sessions.length, 0)
// Removal asks how: actually `git worktree remove` it, or just hide the lane
// and leave the worktree on disk. A dirty worktree escalates to a force prompt
// instead of erroring (those changes are usually throwaway).
@ -274,7 +272,6 @@ function RepoFlatSection({
/>
)
}
count={repoCount}
emphasis
icon={<Codicon className="shrink-0 text-(--ui-text-tertiary)" name="repo" size="0.75rem" />}
label={repo.label}

View file

@ -121,7 +121,6 @@ export function SidebarWorkspaceGroup({ group, renderRows, onNewSession, onRemov
</div>
)
}
count={visibleSessions.length}
icon={leadingIcon}
label={group.label}
onToggle={toggleOpen}

View file

@ -15,7 +15,7 @@ import { useI18n } from '@/i18n'
import { cn } from '@/lib/utils'
import { copyPath, revealPath } from '@/store/projects'
import { SidebarCount, SidebarRowLead } from '../chrome'
import { SidebarRowLead } from '../chrome'
import { WorktreeDialog } from './worktree-dialog'
@ -151,7 +151,6 @@ export function StartWorkButton({ repoPath, onStarted }: { repoPath: string; onS
// button with a leading glyph, plus an optional trailing action (the +).
export function WorkspaceHeader({
action,
count,
emphasis = false,
icon,
label,
@ -160,7 +159,6 @@ export function WorkspaceHeader({
title
}: {
action?: React.ReactNode
count: React.ReactNode
emphasis?: boolean
icon: React.ReactNode
label: string
@ -186,9 +184,6 @@ export function WorkspaceHeader({
>
<SidebarRowLead>{icon}</SidebarRowLead>
<LaneLabel label={label} title={title ? `${label}\n${title}` : label} />
<span className="shrink-0">
<SidebarCount>{count}</SidebarCount>
</span>
<DisclosureCaret
className="shrink-0 text-(--ui-text-tertiary) opacity-0 transition group-hover/workspace:opacity-100"
open={open}