Repository navigation
Description
Summary
When keyboard focus is inside the thread's right panel and you press Ctrl+J to close it, focus falls to <body>. Pressing Ctrl+J again reopens the panel but focus stays on <body>, so a keyboard user has to Tab back in from the top. Expected: closing returns focus to where it was before the panel opened (or the composer), and opening moves focus into the panel.
Versions and environment
- bb desktop 0.50.1 (latest release), Linux (CachyOS, kernel 7.3.5)
- Code cited below is unchanged on
mainatb0ddaad731565d7e4de68d824120d802fc78f7d5 - No provider involved; built-in panel tabs only
Steps to reproduce
- Open any thread. Open the right panel (Ctrl+J) so the Thread info tab is showing.
- Focus the "Show thread info panel" tab button in the panel (Tab to it, or click it).
- Press Ctrl+J. The panel closes.
- In DevTools, check
document.activeElement. - Press Ctrl+J again. The panel opens. Check
document.activeElementagain.
Expected vs actual
1 panel open, activeElement: BUTTON[aria-label="Show thread info panel"]
2 Ctrl+J -> closed, activeElement: BODY
3 Ctrl+J -> open, activeElement: BODY
Expected after step 3: focus returns to the element that had it before the panel was opened (here, the composer or the thread view), not <body>. Expected after step 5: focus moves into the panel (for example the active tab button), or back to the control that had focus when the panel closed.
Evidence
panel.toggleonly flips the open state:ThreadDetailView.tsx#L918-L922andSplitWorkspaceSecondaryPanelHost.tsx#L166-L170.- The closed panel becomes
inert, which removes focus from any element inside it, and nothing moves focus elsewhere:ThreadSecondaryPanel.tsx#L949-L953. - The only programmatic focus in that component is for tab navigation (
#L870-L878), not for open and close. - Measured with a headless Chromium (agent-browser) against the running bb web UI, reading
document.activeElementafter each key press.
What you ruled out
- Not plugin-caused: reproduced with only bb's built-in Thread info tab focused.
- Not Focus is not returned to the composer after the rename dialog closes #3217 (focus not returned to the composer after the rename dialog closes): different surface, and that one is closed.
- Searched open and closed issues for focus, Ctrl+J, panel toggle, inert and secondary panel: no match.
- A plugin tab cannot fix this on its own: it does not know which element had focus before the panel opened. (A plugin can refocus its own content when its tab becomes visible, which only covers reopening.)
Suggested priority and effort
Low to medium: affects keyboard-only users on every panel toggle, workaround is Tab or clicking. Effort: low (remember the focused element on open, restore it on close, focus the active tab on open).
Checks
- I reproduced this on the latest release (0.50.1); the cited code is unchanged on
mainatb0ddaad731565d7e4de68d824120d802fc78f7d5. - I searched open and closed issues for the same problem.
- If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
Found during keyboard accessibility testing of a bb plugin side panel (local bb thread, not public).
AGENT GENERATED
Activity
bb-slop-cop commentedon Nov 26, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui.confirmed-repro.