Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,13 @@ export class AgentSessionRenderer extends Disposable implements ICompressibleTre
// When grouped by repository, hide the badge only if the name it shows
// matches the section header (i.e. the repository name for this session).
// Badges with a different name (e.g. worktree name) are still shown.
// Archived sessions always keep their badge since they are grouped under
// the "Archived" section, not a repository section.
if (this.options.isGroupedByRepository?.() && !session.element.isArchived()) {
// Pinned and archived sessions always keep their badge since they are
// grouped under their own section, not a repository section.
if (
this.options.isGroupedByRepository?.() &&
!session.element.isArchived() &&
!session.element.isPinned()
) {
const raw = typeof badge === 'string' ? badge : badge.value;
const match = raw.match(/^\$\((?:repo|folder|worktree)\)\s*(.+)/);
if (match) {
Expand Down
Loading