You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Browser float button stays pressed after reopening the right panel, though nothing is floating #45833
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
In the T3 Code desktop app, open a Browser tab in the right panel and load a page.
Close the right panel (Ctrl+Alt+B). The page moves to the floating preview.
Reopen the right panel (Ctrl+Alt+B). The page goes back into the panel and the floating preview disappears.
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.
Activity