Reproduced on current main (70e5e384da) in the real web dev app on Linux with a 639 × 800 CSS px viewport and three seeded thread fixtures. With the composer blurred and sidebar sheet closed, Ctrl+Shift+] leaves the active thread unchanged. Explicitly configured Ctrl+number thread bindings fail in the same state, then navigate after Ctrl+B opens the sheet. At 1440 px, both navigation paths work with the sidebar expanded or collapsed. Default number bindings are desktop-only, so this browser check used explicit bindings; Electron itself is not verified here.
[Bug]: Cmd+1 to Cmd+9 thread shortcuts do nothing in narrow windows while the sidebar is closed#21789
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Open the desktop app with at least three threads in the sidebar.
- Make the page narrower than 768 CSS px. One way: snap the window to a third of a 2560 px wide display with the app zoomed in to 131% (three Cmd+= presses). The sidebar turns into a slide-over sheet, and the sheet starts closed.
- Click the conversation so the composer does not have focus.
- Press Cmd+2 (Ctrl+2 on Linux and Windows).
Expected behavior
The second thread in the sidebar opens. This is what happens in a wider window, also when the wide sidebar is collapsed.
Actual behavior
Nothing happens. Cmd+1 to Cmd+9 and Cmd+Shift+[ and ] all do nothing while the sheet is closed. If you open the sheet first with Cmd+B, they work and close the sheet.
The cause is in Sidebar in apps/web/src/components/ui/sidebar.tsx. In the narrow layout it renders its content inside a sheet that unmounts its children when closed. The thread list registers the window keydown handler for thread.jump.*, thread.previous, and thread.next, so the handler exists only while the sheet is open.
Cmd+B itself toggles the sheet in this layout. It does nothing when the composer has focus, which is already tracked in #17021.
Impact
Minor bug or occasional failure
Version or commit
Reported on 0.1.1-nightly.20261018.3335. Reproduced on main @ 34c5a6d446.
Environment
macOS desktop app (Nightly) on a 2560x1080 display at zoom level 1.5. Reproduced in the Linux desktop dev build (Ubuntu 24.04) with real key presses, an 848 px wide window, and the same zoom level, which gives a 639 CSS px page.
Screenshots, recordings, or supporting files
In this recording, Ctrl+3 and Ctrl+2 leave the same thread open. Ctrl+B opens and closes the sheet.
https://github.com/user-attachments/assets/aef5aff4-90bb-4ed1-b459-d4f3c6895103
Workaround
Open the sheet with Cmd+B before you press Cmd+number. You can also zoom out until the page is at least 768 px wide.