Skip to content

Hide sessions or projects in the sidebar, without archiving them #265

Description

@bastien-gallay

Today the sidebar lists everything the scan finds under
~/.claude/projects, and the only way to take a row out of view is to
archive it (⊟) — a durable gesture meaning "this work is finished", not
"don't show me this right now".

The need surfaced while preparing the documentation screenshots: for a capture
to be publishable, the sidebar had to show termherd's sessions only. The one
manoeuvre available was typing termherd into the search box before every
capture — that is, driving the app's keyboard, which was precisely what was
blocked. Hiding would have been enough.

What is missing, and what already exists

Gesture Exists? Meaning
Archive a session (⊟) ✅ durable, "this is done"; recoverable via Show archived
Collapse a project ✅ persisted in collapsed.json; the group header stays visible
Cap the list per project ✅ sidebar.session_limit, truncates the tail
Hide a session / a project ❌ —

Collapsing leaves the project header on screen, and therefore its name.
Archiving carries a meaning we do not want to give a live session. Neither
answers.

To design

The open question is scope, and it decides the rest:

  • hide a session or a whole project (the screenshot case wanted the
    second);
  • durable (one more entry in the ~/.termherd/metadata.json overlay,
    alongside stars and archives) or per-run (a presentation mode you leave
    by closing the app);
  • how you get back to it — a Show hidden checkbox as for archives, or a
    global toggle.

A temporary presentation mode would be the most useful for captures and the
cheapest to undo; durable hiding would be the most useful day to day. The two
do not ask for the same thing, hence needs-design.

Adjacent: F-session-metadata (the overlay already exists and can carry one
more field) and F-repo-view ("show me this repo", taken from the other end).

Activity

  1. added
    needs-design
    area:sidebar
    area:sessions
    on Aug 3, 2026
  2. bastien-gallay commented on Aug 3, 2026

    @bastien-gallay
    CollaboratorAuthor

    Surfaced while preparing #266 (documentation screenshots); the capture blocker itself is #264.

  3. changed the title [-]Masquer des sessions ou des projets dans la barre latérale, sans les archiver[/-] [+]Hide sessions or projects in the sidebar, without archiving them[/+] on Aug 3, 2026
  4. bastien-gallay commented on Aug 7, 2026

    @bastien-gallay
    CollaboratorAuthor

    Scope decision, from the #279 design pass

    Designing "add a repository to the sidebar" (#279) put four gestures on one
    axis — what composes the sidebar — and settled the question that blocked this
    issue. The sidebar becomes:

    visible = (discovered ∪ declared) − removed − presentation
    

    The two needs this issue weighed against each other are answered by two
    different features
    , so neither has to compromise:

    Need stated here Answered by
    A publishable screenshot: reduce the sidebar for the duration of a capture this issue, narrowed to an ephemeral presentation mode
    "I do not want to see this project any more", day to day a sibling, remove a project/repo — durable, removed in the overlay

    So the persistence question is settled: this stays ephemeral. A
    Sidebar::presentation set, not persisted, reset each launch — the same
    standing as Sidebar::expanded today. That is the cheapest thing that fixes
    the capture case, and it is no longer competing with the durable need.

    The durable half moves out because it is not the same gesture. Removing a
    declared repository (#279) clears its declaration and it genuinely
    disappears; removing a discovered project cannot delete anything under
    ~/.claude, so it is a durable hide. One field, removed, covers both — and
    if it were also this issue's mechanism, hidden and removed would be two
    names for one invariant.

    The scope question stays open: session, project, or both. The screenshot
    case wanted projects; the model above is written per project path, so extending
    it to sessions is a second decision, not a consequence.

  5. bastien-gallay commented on Aug 18, 2026

    @bastien-gallay
    CollaboratorAuthor

    Note from the F-repo-add wrap pass (#281, merged as ef16e04): the opening
    premise of this issue is now out of date, and in a way that matters for how
    this gets designed.

    Today the sidebar lists everything the scan finds under
    ~/.claude/projects, and the only way to take a row out of view is to
    archive it (⊟) […]

    Two halves of that have changed:

    • The sidebar is no longer a pure function of the scan. Membership is
      visible = (discovered ∪ declared) − removed − presentation, and the
      predicate is written once (App::sidebar_row_shown) precisely so the
      remaining terms can drop into it rather than growing a second visibility
      rule. The insertion point for whatever this issue decides already exists.
    • For a declared row there is now a way out that is not archiving: the ✕
      drops the declaration, and it appears only on rows you added.

    What has not changed is this issue’s actual subject. A discovered
    project still has only ⊟, so the row in the table here —
    | Hide a session / a project | ❌ | — | — remains accurate, and both design
    axes are untouched: session-vs-project scope, and ephemeral-vs-durable.

    One correction to the record: #279 described this issue as "narrowed to an
    ephemeral presentation mode". That was a decision taken while scoping
    F-repo-add and it is not written here; the body still weighs both, which is
    why it carries needs-design. Worth settling explicitly before anyone builds
    from either reading.

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:sessionsarea:sidebarneeds-design

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions