Note
🤖 Claude Opus 5.5 writing on behalf of NikitaMGrimm
Before submitting#
Area#
apps/web
Steps to reproduce#
- In the desktop app, connect to a second (non-primary) environment, for example a remote server. A web client connected to any environment takes the same path.
- Open a thread from that environment and open a Browser tab in the preview panel.
- Follow two or three links so the preview's Back/Forward toolbar buttons are enabled.
- With the pointer over the page content, press the mouse Back (thumb) button.
Expected behavior#
The preview goes back one page, the same as its toolbar Back button. Forward works the same way. The app's own route does not change.
Actual behavior#
The preview stays on the same page and the app navigates its own history instead, switching to the previously viewed thread.
Impact#
Minor bug or occasional failure
Version or commit#
Observed on 0.1.1-nightly.20261020.1792522436706. From reading the source, current main @ ca140c435f has the same path.
Environment#
Windows 11 Pro 26200, T3 Code desktop (Nightly), with a Linux server as the remote environment.
Cause#
#4839 reported this for the native in-app browser, and #4459 fixed it in the guest preload. Server-run browser tabs from a non-primary environment, and every server tab in a web client, render through ServerBrowserSurface instead, which does not use that preload (rendersServerTabNatively). Its pointer handler only maps buttons 0–2 (buttonOf). It ignores buttons 3 and 4, so Chromium's default back/forward action runs in the host document and moves the app's router.
The surface already has a history(delta) command that the toolbar uses, so the thumb buttons could call it and suppress the default action.
Workaround#
Use the preview toolbar's Back/Forward buttons.
Note
Grok responding on behalf of Julius.
Thanks for tracing which path this takes. Current main matches. Server-run tabs only render natively in the desktop app when they belong to the primary environment (
apps/web/src/browser/previewRuntime.ts:44-55). Tabs from other environments, and every server tab in a web client, go throughServerBrowserSurface, which doesn't have the guest preload fix from #4459. Its pointer handler maps only buttons 0 to 2 and sends anything else asnone(apps/web/src/browser/ServerBrowserSurface.tsx:96-97,602-610). Nothing cancels the default action of the thumb buttons, so the browser's own back and forward runs in the app's window and moves the app's route instead of the preview.Accepting this as a bug.