Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Run the desktop app on machine A. Its server is the environment.
- On machine B, connect a second client to A, either another desktop app or a browser.
- On B, open a thread and open a page in its Browser panel. A must not be showing that tab. A page that prints
innerWidth x innerHeightand countsresizeevents makes the result easy to read. - On B, keep the viewport on fill, and take control if the panel does not already say "You have control".
- On B, resize the Browser panel, for example from about 500 px to about 1200 px wide.
Expected behavior
In fill mode the page follows the panel of the client watching it, the way it does when the server runs the tab itself.
Actual behavior
The page keeps a size that no client is displaying. It is A's last Browser panel size, or 1280x800 if A never showed one. B sees the page with bands around it, and the page gets no resize event when B's panel changes.
On my setup the page opened at 1280x800, moved to 1402x876, and stayed there while B's panel went from about 500 px to about 1200 px wide. The page's counter stayed at "resizes seen: 2". An agent preview_resize to 1200x1060 did resize it, so the tab can change size. Only the viewer's panel size is dropped. An agent had opened that tab, so the control gate described below may have applied as well. The dev desktop run in the screenshots isolates this bug: the client held control and the page stayed at 1280x800.
Cause, on main c00a373491:
apps/server/src/preview/ServerBrowser.ts, the viewer inputresizecase, storesviewer.requestedSizeand then returns for desktop tabs:if (tab.setting._tag !== "fill" || tab.desktop) return;.applySettingreturns early fortab.desktoptoo.- A desktop tab's page size is the box of the host's
<webview>. While the host is not showing the tab,apps/web/src/browser/HostedBrowserWebview.tsxsizes that box from the last presented content, then the last panel rect, then 1280x800. - Nothing carries the viewer's size from the server to the host.
A separate gate sits in front of this one. The server takes a resize only from the viewer that controls the tab, so a client that is only watching an agent's tab is stopped earlier. #26768 covers that for tabs the server runs itself and keeps the early return for desktop tabs. This report is about the viewer that does hold control, which is the usual case when a person opens the tab from the second client.
Impact
Major degradation or frequent failure
Version or commit
0.1.8-nightly.20261109.4433, and main @ c00a373 by reading the code and by a run of the dev desktop app
Environment
Host: macOS 15.7.9, T3 Code Nightly desktop app. Watching client: the T3 Code desktop app on another Mac, connected over Tailscale. Also reproduced with the dev desktop app on Electron 44.10.1 and a headless Chromium as the second client.
Logs or stack traces
None. Nothing fails. The size is dropped without a message.
Screenshots, recordings, or supporting files
Installed Nightly, narrow panel and wide panel. Both report 1402 x 876:
Dev desktop app on main c00a373491, second client's panel at 500 px and 1200 px. Both report 1280 x 800:
Workaround
Set a fixed viewport size for the tab, or have an agent call preview_resize. Showing the tab on the host also sizes it, to the host's panel.




Activity