Skip to content

[Bug]: Closing the Browser right panel with no navigation leaves a blank floating preview #41675

Done

Description

@DaveB302

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. Open T3 Code Desktop on macOS and open any thread.
  2. Open the right panel and select the Browser tab.
  3. Do not type a URL and do not pick a local server. Leave the tab on its initial page. The address bar still shows the "Search or enter URL" placeholder.
  4. Close the right panel without navigating anywhere.
  5. Look at the bottom right corner of the window.
  6. Hover the small circle at the top right of the panel that appears, then click the "Pop into separate window" control.

Expected behavior

Closing the right panel should just close it when the Browser tab has never been navigated.

No floating preview should appear for an empty tab. The picture-in-picture return on panel close makes sense for a page the user was viewing. It does not help for about:blank, because there is nothing to keep watching and nothing to navigate with once the panel is gone.

If a preview does appear, it should show what it is and give the user a way to navigate or dismiss it without guessing. Its background should also match between the in-window panel and the popped-out window under the same theme.

Actual behavior

Step 5 leaves a floating preview in the bottom right corner of the window. It is a blank white rectangle with rounded corners. It has no title, no URL bar, and no text that says what it is. The only mark is a small circle at the top right. Hovering reveals controls, including "Pop into separate window".

Step 6 opens a separate native window titled "Preview - about:blank". That window is a blank black rectangle. It also has no URL bar and no way to navigate.

So the same empty tab renders white inside the main window and black in the popped-out window, even though the app theme is set to System and macOS is in dark mode. One of the two surfaces is picking up a different default background for about:blank.

This looks related to the closed report in #7212, where a failed navigation also left a blank white floating panel. The trigger here is different. No navigation was attempted and no navigation failed. The user only selected the Browser tab and then closed the panel.

Impact

Minor bug or occasional failure

The blank panel covers part of the window and gives the user no clue what opened it or how to use it. The fix can be narrow. Do not return an empty or never-navigated Browser tab to picture-in-picture when the right panel closes.

Version or commit

T3 Code Nightly 0.1.12-nightly.20261123.5151 (856b105), fully updated

Environment

macOS on Apple Silicon, T3 Code Desktop Nightly, theme set to System with dark mode active

Logs or stack traces

No error or stack trace. The popped-out window title reads "Preview - about:blank", which confirms the tab never navigated.

Screenshots, recordings, or supporting files

Browser tab in the right panel before closing. The address bar shows "Search or enter URL" and the page lists "Local servers" with adb at localhost:5037.

Browser tab in the right panel with an empty address bar and the Local servers list

Floating preview after closing the right panel. A blank white rectangle with a small circle at the top right and no other chrome.

Blank white floating preview with a small circle at the top right

Hover state on that rectangle. A tooltip reads "Pop into separate window" above three small controls.

Floating preview hover state showing the Pop into separate window tooltip

Popped-out window. The title bar reads "Preview - about:blank" and the content area is solid black.

Popped-out Preview window for about:blank with a solid black content area

Workaround

Close the floating preview with its hover controls. Do not select the Browser tab if you do not plan to navigate.

Activity

  1. 2SinceJuly commented on Nov 23, 2026

    @2SinceJuly
    Contributor

    Reproduced from the source: closePanel in apps/web/src/components/chat/useRightPanelActions.ts floats the active preview tab unconditionally, and a never-navigated tab reports an Idle nav status (it is still on about:blank), so the floating preview has nothing to render. Opening a PR that floats the tab only once it has a 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