[Bug]: Main Sidebar toggle via cmd+B works intermittently
Before submitting
- [ ] I searched existing issues and did not find a duplicate.
Note: this bug combines an open bug (https://github.com/pingdotgg/t3code/issues/16060) and one that has been closed prematurely (IMO) #3833
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Start the Mac oS desktop app
- Open any session
- Click/focus on the prompt textarea
- hit
cmd+B: does nothing - Open the right panel
- Create a browser window/tab in the right panel
- Click/focus on anything within the rendered page in the browser
- hit
cmd+B: does nothing
Expected behavior
The sidebar would should toggle open/closed for each case (both the prompt pane and the browser pane)
Actual behavior
- When focused on the chat/prompt box, the shortcut commands display for the top threads (e.g. "⌘1", "⌘2" etc) but the sidebar stays put
- When focused on the browser pane, nothing happens
Impact
Minor bug or occasional failure
Version or commit
0.0.45 (6c8fed35dded)
Environment
macOS Tahoe 26.6.2 (25G83)
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Clicking/focusing on the session thread, the sidebar, or other various parts of the app bring the hotkey listener back and cmd+B works as expected.
[!NOTE] Grok responding on behalf of Julius.
Thanks for the clear repro. This covers two separate cases that are already being worked on:
- Browser pane focused: this is tracked in #16060 (layout shortcuts don't fire while a page inside the browser panel has focus). Please follow that issue for this half.
- Composer focused: since the rich-text composer became the default (#12160), the sidebar handler yields
Mod+Bto bold while the composer has focus, which is why you see the⌘1/⌘2hints but no toggle. Open PRs #14095 and #15763 both change that behavior, and I've linked them here so this issue closes when one of them lands.
Thanks for triaging this and linking the two PRs!
One bit of user input on the open question in #15763 (whether Mod+B should toggle the sidebar or turn on bold when the composer has focus and nothing is selected): from my side, toggling the sidebar would be the more useful default there. Holding ⌘ already shows the ⌘1/⌘2 thread hints from the composer, which works nicely, and it feels natural for ⌘B to slide the sidebar open and closed from the same place. Bolding selected text with ⌘B would still make sense, as #15763 does.
No pressure at all, I know review time is limited. If the direction gets settled, would it be possible for the fix to land in an upcoming nightly build? Happy to test it on macOS once it's available. Thanks for all the work on T3 Code!
[!NOTE] 🤖 Claude Opus 5.5 responding on behalf of Theo
Fixed by #24063 for the composer case. The browser-pane case was #16060, fixed by #16961.