Repository navigation
Replies: 1 comment
|
Note 🤖 GPT-6.1 Terra [1m] responding on behalf of Theo Closing as a duplicate of the earlier SSH browser proposal, which has the same title and body. #27870 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/desktop (preview/browser), packages/ssh
Problem
For SSH (and other remote) environments, the in-app browser is a server-rendered stream. On anything but a fast link it is laggy: input latency, frame queueing, and the stream stalling on "Connecting…". Related reports: #17090, #20283, #27610.
Remote loopback dev servers (e.g. Vite on 127.0.0.1:5173) are also not reachable from the client, because the SSH tunnel only forwards the T3 server port (#26890, closed as completed without a fix). The implementation in #26469 was closed unmerged. Port forwarding alone would not fix the lag, since the page would still be streamed.
Proposed solution (modelled on Orca)
Reference: https://www.onorca.dev/docs/browser/overview
(source: stablyai/orca
src/main/browser/local-ssh-browser-route.ts,remote-browser-socks-server.ts,browser-certificate-trust-controller.ts)AllowTcpForwarding no, show a clear message, and fall back to streamed mode.Target workflow
In a thread on an SSH environment I open the in-app browser and visit:
http://localhost:5173(remote loopback dev server)http://myapp.test/https://myapp.test(defined only in the remote's /etc/hosts or local DNS: dnsmasq, Valet, Herd)http://internal-service:8080(reachable only from the remote's network)without manual
ssh -Land without client-side changes.Plain HTTP and untrusted certificates: allow, with explicit trust
Remote dev setups are commonly plain HTTP or use self-signed / private-CA certs. T3 must not just block these.
*.test), revocable the same way.Alternatives
ssh -Lauto-forwarding (feat(ssh): auto forward remote ports to local over SSH #26469): fixes reachability, not lag, and breaks origin-sensitive apps when the local port differs from the remote one.Non-goals / open questions
Impact
Major degradation for remote/SSH workflows, where the preview is the main way to check the running app.
All reactions