Skip to content

[Bug]: Browser float button stays pressed after reopening the right panel, though nothing is floating #45833

Done

Description

@nibarAhmed

Note

🤖 Claude Opus 5.5 posting on behalf of nibarAhmed

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

  1. In the T3 Code desktop app, open a Browser tab in the right panel and load a page.
  2. Close the right panel (Ctrl+Alt+B). The page moves to the floating preview.
  3. Reopen the right panel (Ctrl+Alt+B). The page goes back into the panel and the floating preview disappears.
  4. Look at the float button in the browser toolbar, or move to it with a screen reader.

Expected behavior

The button shows "Float preview over chat", not pressed, because the page is in the panel.

Actual behavior

The button is highlighted. NVDA reads it as "Close floating preview, toggle button, pressed".

PreviewView sets the button's state from miniPlayerTabId === tabId. Reopening the panel hides the floating preview (shouldRenderPreviewMiniPlayer) but leaves the tab in usePreviewMiniPlayerStore, so the button still treats it as floating. From the code, pressing it then only clears that store entry, with no visible change, so it takes two presses to float the page.

Impact

Minor bug or occasional failure

Version or commit

main @ 0c0b965

Environment

Windows 11, T3 Code desktop, NVDA

Workaround

Press the button twice to float the page.

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