Skip to content

feat: rework sidebar — flat session list, no groups, worktree-first #818

@PureWeen

Description

@PureWeen

Summary

Rework the left sidebar to be a simple flat list instead of the current group-based organization.

Changes

1. Remove all grouping

  • Remove the concept of custom groups entirely
  • Remove "Add Group", "Move to Group", group headers, group collapse/expand
  • Remove the group picker, group presets, and group management UI
  • Remove Organization.Groups usage from the sidebar (keep the data model for now if needed by multi-agent orchestration, but the sidebar should not render groups)

2. Flat session list sorted by recency

  • Show all sessions in a single flat list
  • Sort by most recent user message (last time the user sent a prompt into the session), newest at top
  • Sessions with no messages yet sort by creation time
  • No sections, no headers, no separators — just a clean list

3. Show all worktrees

  • Always show all managed worktrees in the sidebar, even if they have no active session
  • Worktrees without sessions show the worktree name (branch name or repo name)
  • Clicking a worktree without a session creates a new session in that worktree
  • Worktrees with active sessions show the session as normal
  • This gives users a persistent view of all their working contexts

What to keep

  • Session context menu (close, rename, etc.)
  • Multi-agent team indicators (if a session is part of a team, show the indicator but don't group it)
  • Search/filter functionality
  • Pin functionality (pinned sessions always at top, above the recency sort)

What to remove

  • Group headers and group collapse/expand
  • "Add Group" button
  • "Move to Group" in context menus
  • Group presets picker (📂 From Repo, ⚙️ Built-in, 👤 My Presets sections)
  • Any group-related settings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions