t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Main Sidebar toggle via cmd+B works intermittently

Open madebycaliper opened this issue 1 month ago • 3 comments

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

  1. Start the Mac oS desktop app
  2. Open any session
  3. Click/focus on the prompt textarea
  4. hit cmd+B : does nothing
  5. Open the right panel
  6. Create a browser window/tab in the right panel
  7. Click/focus on anything within the rendered page in the browser
  8. 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

  1. 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
  2. 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.

madebycaliper avatar Oct 08 '26 00:10 madebycaliper

[!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+B to bold while the composer has focus, which is why you see the ⌘1/⌘2 hints 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.

juliusmarminge avatar Oct 08 '26 00:10 juliusmarminge

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!

Kameleon21 avatar Oct 11 '26 08:10 Kameleon21

[!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.

t3dotgg avatar Oct 25 '26 22:10 t3dotgg