HydraIssues

hydraheadquest: pass body host and PIN to the WiVRn client launch
open unclassified Priority: high Project: hydraheadquest Parent: #781 Reporter: 14 Oct 2026 20:47

Description

WivrnLauncher.launchXrClient(bodyHost, pin) is written, correct, and called by nobody. WivrnLauncher.kt:106 builds an ACTION_VIEW intent with a wivrn:// URI carrying the host and the PIN in the password position, which is exactly what WiVRn wants. But both launch sites, HydraState.kt:1026 and HydraState.kt:1135, call the parameterless override (WivrnLauncher.kt:100), which passes null and null.

So WiVRn opens on a blank server list and the user types the body address by hand in VR. That is the single most visible roughness in the lane.

Fix

Make XrHooks.launchXrClient(bodyHost: String?, pin: String?) the only signature (HydraState.kt:196) and delete the parameterless override. AlvrLauncher ignores both arguments, which is honest: ALVR's body dials the client, so the client has nothing to dial.

bodyHost is already in hand. XrSessionState carries bodyHost (model/HydraModels.kt:311) and the cluster fills it from the body's WireGuard IP, falling back to the LAN IP (handlers_xr.go, xrSessionToResponse). The PIN arrives with the cluster child.

Care

Do not log the URI. It contains the PIN.

Done when

Selecting an xr experience on a Quest opens WiVRn already pointed at the assigned body and pairs without typing.

Session Context

Venue
mobile-kit