Group recent sessions in sidebar by project / working directory
Status Fixed / completed
Maintainer reply ✓ Yes — amorriscode
Activity 3 comments · opened May 4, 2026 · closed May 20, 2026
💡 Likely answer: A maintainer (amorriscode, contributor)
responded on this thread — see the highlighted reply below.
Problem
When working on multiple projects at the same time, the Recent Sessions list in the left sidebar mixes sessions from all working directories together, sorted only by recency. It's easy to resume the wrong session and start editing in the wrong repo, or to lose track of which in-flight session belongs to which project.
Requested behavior
Add a way to organize recent sessions in the sidebar by project (cwd / git repo root):
- Group sessions under collapsible project headers (path or repo name), with sessions inside each group sorted by recency.
- Or a toggle/setting to switch between "Sort by recency" (current) and "Group by project".
- Optional: filter to show only the current project's sessions, or pin a project to the top.
- Show the project name/path on each session row regardless of grouping mode, so the active project is always unambiguous.
Why it matters
- Prevents cross-project mistakes (editing/committing in the wrong repo).
- Makes parallel work across repos viable without constantly re-reading paths.
- Matches how IDEs (VS Code, JetBrains) already organize recent workspaces.
Environment
- Claude Code CLI on macOS (Darwin 25.4.0)
3 Comments
Good news, this feature exists!
https://github.com/user-attachments/assets/484692c5-a451-4914-913e-821785632e09
+1 to this, and I'd like to add a refinement based on how the current behavior feels in practice.
Grouping sessions by project already works well, including collapsing/expanding the groups. My actual pain point is that the sort option is applied at both levels at once: it governs how sessions are ordered inside a project group and how the project groups themselves are ordered relative to each other. Those two are coupled, and I'd love to see them decoupled.
Concretely, I'd want to control them independently:
Right now I can't have "projects alphabetical/manual" and "sessions by recency" at the same time — picking one sort affects both.
On top of that, an option to pin a project to the top would be great. That would basically cover every layout I'd realistically want: a couple of pinned projects up top, the rest ordered however I choose, and sessions inside each always sorted by recency.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.