[Bug]: DevTools for an integrated browser tab opens as a separate window that T3 Code cannot close (Linux/Hyprland)#30475

opened27d agobyPpiotrnowakowski

Before submitting

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

Area

apps/desktop

Steps to reproduce

  1. Run T3 Code Desktop on Linux with a tiling Wayland compositor (Hyprland).
  2. Open the integrated browser in a thread. (In my case an agent opened it with preview_open, and the page failed to load, so the tab was on chrome-error://chromewebdata/.)
  3. Open DevTools for that browser tab.

Expected behavior

DevTools opens docked inside T3 Code, or as a window that T3 Code can close. Closing the browser tab, the preview panel, or the thread should also close its DevTools window.

Actual behavior

DevTools opens as a separate top-level window titled Developer Tools - chrome-error://chromewebdata/. Hyprland tiles it next to T3 Code and gives it half the screen. The window has an empty app class, so window rules do not match it.

There is nothing in T3 Code to close it. The window stays open after the preview stops working, and closing the preview from the thread does not close it. The only way I found was to close it from the compositor.

Impact

Minor bug or occasional failure

Version or commit

Desktop 0.1.2 (Electron 44.9.3, Chromium 152.0.7977.167)

Environment

Arch Linux (Omarchy), Hyprland 0.56.2, Wayland

Logs or stack traces

shell
1$ hyprctl clients -j | jq -r '.[] | "\(.class) | \(.title)"'
2 | Developer Tools - chrome-error://chromewebdata/
3com.t3tools.T3Code | T3 Code (Beta)

Workaround

Close the window from the compositor, for example:

shell
1hyprctl dispatch 'hl.dsp.window.close({ window = "address:<devtools window address>" })'

Related: #7212 (the failed preview stays as a blank floating panel; it is the same chrome-error://chromewebdata/ tab) and #26864 (preview tabs that nobody can close).

[GPT-6.1 Sol][Codex] on behalf of shivam.

Julius has taken this over in https://github.com/pingdotgg/t3code/pull/30504, so I am stopping the parallel issue-watch work. Source inspection confirms that the current preview manager opens detached DevTools and only focuses them on a second request. I did not run a desktop reproduction before finding the takeover. No code changes or competing PR were made.