Skip to content

[Bug]: Closing the right panel by shortcut moves focus to the panel toggle instead of where it was before opening #32532

Closed as not planned

Description

@nicolegros

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Web app / right panel

Steps to reproduce

  1. Click into the prompt field of a thread.
  2. Press ⌘⌥B to open the right panel. Focus moves into the panel.
  3. Press ⌘⌥B again to close it.

Expected behavior

Focus goes back to the prompt field, where it was before the panel opened, so you can keep typing.

Actual behavior

Focus lands on the right panel's toggle button.
You have to click the prompt field or press F6 to get back to it.

Impact

It breaks the keyboard flow of opening the panel to glance at something and then continuing to type.
This happens on every open/close cycle.

Version or commit

T3 Code (Beta) 0.1.7

Environment

macOS 15.6, desktop app

Logs or stack traces

N/A

Screenshots, recordings, or supporting files

N/A

Notes

PanelLayoutControls.tsx focuses [data-right-panel-toggle] when the panel closes while it contains focus.
That's a sensible fallback, but if focus was somewhere else when the panel opened and that element still exists, returning focus there is the usual pattern for a panel or dialog.

Workaround

F6 / ⇧F6, or clicking the prompt field.

Activity

  1. nicolegros commented on Nov 7, 2026

    @nicolegros
    Author

    Duplicate of #32538, refiled through the bug report form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions