Skip to content

Repository view: open a repo's session list to manage them #148

Open
0 of 4 issues completed
Open

Description

@bastien-gallay

What

A dedicated surface to browse and manage all Claude sessions of one git
repository
— rename, archive, launch, compare — instead of only the flat
per-project sidebar grouping.

Design-first. Filed to shape, not yet to build.

Current state

  • Sessions group by real project_path (crates/core/src/browser.rs:86).
  • Git awareness exists only to normalize paths: worktrees are collapsed onto
    their repo root during scan (resolve_worktree / repo_root,
    crates/scan/src/lib.rs:352,350) — there is no repository entity or view.

To shape

  • Grouping key: real path vs detected git repo-root (add a repo-root field to
    SessionRecord? a second grouping mode in group_projects?).
  • What actions the view exposes (archive / rename / launch / bulk ops).
  • Where it lives: a pane, a full-window overlay, a right panel?
  • Relationship to the existing sidebar project groups.

Run /feature-torture before filing implementation issues.

Sub-issues

Sub-issues

0 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added
    needs-design
    on Jul 5, 2026
  2. bastien-gallay commented on Jul 11, 2026

    @bastien-gallay
    CollaboratorAuthor

    Refactor prerequisites: #168 (C2 view/sidebar.rs) and #169 (A3 Sessions registry) — a repo-scoped session view reads through the registry.

  3. added
    area:sidebar
    on Jul 26, 2026
  4. bastien-gallay commented on Aug 18, 2026

    @bastien-gallay
    CollaboratorAuthor

    Note from the F-repo-add wrap pass (#281, merged as ef16e04): the code
    citation in this issue no longer resolves.

    Git awareness exists only to normalize paths: worktrees are collapsed onto
    their repo root during scan (resolve_worktree / repo_root,
    crates/scan/src/lib.rs:352,350)

    Three things drifted:

    • resolve_worktree no longer exists. The grouping rule is now
      scan::sidebar_key (crates/scan/src/repo.rs), and it is called by the walk
      and by a hand-added repository alike — one function, because two rules
      meant two sidebar rows for one repository.
    • It does not collapse onto a repo root. It collapses a worktree onto its
      main checkout and does nothing else: no climb to the repository root, no
      canonicalize. Both were tried and removed, because the scan cannot apply
      either and a key it cannot produce is a second row. repo_root survives, for
      the "new session in the same repo" shortcut, which is a different question.
    • crates/scan/src/lib.rs is 112 lines; those symbols moved to repo.rs.

    The claim this citation supports — that there is no repository entity, only
    path normalisation — still holds, so the issue’s premise is intact. Only the
    pointer is stale.

  5. bastien-gallay commented on Nov 11, 2026

    @bastien-gallay
    CollaboratorAuthor

    Split into sub-issues: #557 (design spike: the repository as an entity, with #265) → #558 (repository root on SessionRecord) → #559 (repository view) → #560 (bulk operations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sidebarneeds-design

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions