[FEATURE] Desktop Code tab: visit-history Back/Forward session navigation + remappable shortcuts
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 Desktop app's Code tab, the session shortcuts Ctrl+Tab / Ctrl+Shift+Tab and Cmd+Shift+[ / Cmd+Shift+] only move to the adjacent session in sidebar order. There is no way to jump back to the session I was just viewing.
When I bounce between many sessions — open one to check something, then want to return to where I was — I have to hunt for the previous session in the sidebar. A visit-order history (like a browser's Back/Forward, or an IDE's "Navigate Back/Forward") is missing. The current shortcuts also can't be remapped to keys or mouse buttons that fit my hands.
Proposed Solution
- Maintain a per-window visit-history stack of sessions, and add Go Back / Go Forward commands that traverse it (return to the previously-viewed session, then forward again) — independent of sidebar order.
- Let those commands be bound to comfortable keys and to mouse Back/Forward (X1/X2) buttons.
- Expose Code-tab shortcut remapping (keybindings.json parity with the VS Code extension) so users can rebind session navigation in general.
Alternative Solutions
Today I rely on Ctrl+Tab / Cmd+Shift+[ ], but those select sidebar-order neighbours, not visit history, so they don't return me to where I actually was.
Related existing request: #38447 (a shortcut to switch between conversations) — related but distinct: that is adjacent / sidebar-order switching, whereas this asks for a visit-order Back/Forward stack plus remapping. Browsers (Cmd+[ / Cmd+]) and IDEs (Navigate Back / Forward) already solve exactly this.
Priority
Medium - Would be very helpful
Feature Category
Other
Use Case Example
- I'm working in session A.
- I click session F in the sidebar to check an unrelated detail.
- I press Back (one key, or the mouse Back button) and land straight back in A — no scanning the sidebar to remember which one was A.
- Forward returns me to F.
This mirrors browser/IDE navigation and removes the constant sidebar hunting when working across many sessions.
Additional Context
Platform: macOS (Apple Silicon), Claude Desktop, Code tab. Current Code-tab shortcut list: https://code.claude.com/docs/en/desktop#keyboard-shortcuts
(Feature Category is set to "Other" because the form has no Desktop-app / UI category; this is a Desktop Code-tab UI request.)