claude-code - 💡(How to fix) Fix Bulk-manage Recents in Claude Code sidebar (clear / archive / filter by age) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54044Fetched 2026-04-28 06:40:45
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×2commented ×1cross-referenced ×1

Fix Action

Fix / Workaround

Current workaround

Code Example

find ~/.claude/projects/<slug> -maxdepth 1 -name "*.jsonl" -mtime +0 -delete
find ~/.claude/projects/<slug> -mindepth 1 -maxdepth 1 -type d \
  -name "????????-????-????-????-????????????" -mtime +0 -exec rm -rf {} +
RAW_BUFFERClick to expand / collapse

Problem

The Recents list in the Claude desktop app (Code mode) sidebar accumulates indefinitely. There is no UI control to clear stale sessions in bulk, hide the Recents section, filter by age, or delete individual items via right-click / hover. Today my Recents list has 768 sessions in a single project and the only way to prune it is to manually rm session .jsonl files under ~/.claude/projects/<slug>/ and relaunch the app.

Requested

  • "Clear all" or "Clear sessions older than [7d / 30d / custom]" action in the Recents section header
  • Per-item delete via right-click context menu or hover affordance on each Recents row
  • Optional: pin protection (don't delete pinned sessions), archive vs. hard delete, and a sidebar toggle to hide the Recents section entirely

Current workaround

find ~/.claude/projects/<slug> -maxdepth 1 -name "*.jsonl" -mtime +0 -delete
find ~/.claude/projects/<slug> -mindepth 1 -maxdepth 1 -type d \
  -name "????????-????-????-????-????????????" -mtime +0 -exec rm -rf {} +

Then Cmd+Q and relaunch. This works but bypasses the UI, is destructive, and is not discoverable for non-CLI users.

extent analysis

TL;DR

Implement a "Clear all" or "Clear sessions older than" feature in the Recents section header to provide users with a UI control to manage stale sessions.

Guidance

  • Add a "Clear all" button to the Recents section header to allow users to remove all sessions at once.
  • Introduce a "Clear sessions older than" feature with customizable time ranges (e.g., 7d, 30d) to enable users to delete older sessions.
  • Consider implementing per-item delete via right-click context menu or hover affordance on each Recents row for more granular control.
  • To mitigate the current issue, users can use the provided find commands to manually remove stale sessions, but this should be replaced with a UI-based solution.

Example

No code snippet is provided as the issue does not contain sufficient information about the codebase.

Notes

The current workaround using find commands is destructive and not user-friendly, highlighting the need for a UI-based solution. The implementation of the requested features should consider user experience and discoverability.

Recommendation

Apply a workaround by implementing the "Clear all" or "Clear sessions older than" feature to provide users with a UI control to manage stale sessions, as this addresses the primary concern and improves user experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Bulk-manage Recents in Claude Code sidebar (clear / archive / filter by age) [1 comments, 2 participants]