[FEATURE] Keyboard shortcut to archive the current session in the desktop app

Status Fixed / completed
Maintainer reply None cached
Activity 0 comments · opened Jul 23, 2026 · closed Aug 25, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

In the Claude Code desktop app, archiving a session is mouse-only: you have to hover over the session in the sidebar and click the archive icon. There is no keyboard shortcut for it, no "Archive" item in the native macOS menus (so it can't be bound via System Settings → Keyboard → App Shortcuts), and ~/.claude/keybindings.json only applies to the terminal CLI.

For heavy users who spin up many sessions per day, cleaning up the sidebar means repeatedly reaching for the mouse and hunting for a small hover-only icon. Every other common session action (new session, close session, next/previous session) already has a shortcut — archive is the odd one out.

Cmd+W is not a substitute: it only closes the session view, the session stays in the sidebar list.

Proposed Solution

Add a keyboard shortcut to archive the currently active session in the desktop app, e.g. Cmd+A (or Cmd+Shift+A to avoid conflicting with Select All in text inputs). Ideally:

  • Pressing it archives the current session and moves focus to the next session in the list
  • It appears in the Cmd+/ keyboard shortcuts panel
  • Bonus: expose it as a native menu item (e.g. under a Session/File menu) so users can rebind it via macOS App Shortcuts

Alternative Solutions

  • "Auto-archive after PR merge or close" setting helps, but only covers sessions that produced a PR
  • Cmd+W closes the view but doesn't archive
  • No keybindings.json workaround exists since it's CLI-only

Priority

Medium - Would be very helpful

Feature Category

Other

Use Case Example

  1. Finish a quick investigation or one-off task in a session
  2. Want to archive it and move on without touching the mouse
  3. Press the shortcut → session is archived, focus moves to the next session
  4. Sidebar stays clean without hover-and-click on each session

Additional Context

The archive icon is only visible on hover, which makes the current flow slower — you have to locate the row, hover, then hit a small target. A shortcut would make session hygiene effortless.

View original on GitHub ↗