3e9859beca
The webview always runs on the user's machine, never on the gateway host. Against a remote gateway an agent's http://localhost:5173 resolves here — where that port is usually nothing, or somebody else's service — and the pane just said 'Server not found'. The load error now names the mismatch when the address is loopback and the gateway is remote. It stays quiet on a local gateway and for non-loopback hosts, which fail for ordinary reasons. This explains the limitation rather than lifting it; forwarding the port is a separate, larger job (see #87243 for the SSH case).