Skip to content

Commit ec512b4

Browse files
authored
refactor(desktop): remove default branch tag chip from worktree sidebar (#53)
1 parent 0ae0d2a commit ec512b4

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

app/lib/desktop/chat/desktop_sidebar.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ class _WorktreeGroupState extends ConsumerState<_WorktreeGroup> {
258258
final worktree = widget.worktree;
259259
final sessions = widget.sessions;
260260
final branch = worktree.branch ?? 'detached';
261-
final isDefault = worktree.branch == repo.defaultBranch;
262261
final isCurrent =
263262
worktree.branch != null && worktree.branch == repo.currentBranch;
264263
// A worktree with no sessions is selectable: clicking it opens the harness
@@ -323,13 +322,6 @@ class _WorktreeGroupState extends ConsumerState<_WorktreeGroup> {
323322
color: theme.colorScheme.outline,
324323
),
325324
],
326-
if (isDefault) ...[
327-
const SizedBox(width: 6),
328-
TagChip(
329-
label: 'default',
330-
color: theme.colorScheme.outline,
331-
),
332-
],
333325
],
334326
),
335327
),

0 commit comments

Comments
 (0)