Repository navigation
Pair remote Quest relays with a code shown in the viewer - #795
Open
jmccaffrey-nv wants to merge 4 commits into
Open
jmccaffrey-nv wants to merge 4 commits into
jmccaffrey-nv wants to merge 4 commits into
Conversation
A V2 WebRTC server accepted a new or replacement viewer from any client that could reach its port. Viewer admission and file uploads now require an owner credential, a strict Host/Origin policy and an HTTPS origin outside loopback. Authorization runs before offer parsing and upload reads, and generation checks fence requests that were in flight when the viewer changed. By default the serving rank creates a private credential once (~/.config/flashdreams/webrtc-token) and reuses it. On an interactive terminal the runner prints a one-click link that carries the code in the URL fragment, which is never sent to the server; logs get only the URL and the credential path. --no-login keeps tokenless loopback for a trusted single-user machine and is refused anywhere else. The credential is also read on Windows, where profile ACLs protect it. Replacing a viewer releases its held keyboard, mouse, gamepad, wheel and native UI input through a focus-loss boundary that leaves model history and reset generations unchanged. Retired callbacks, frames, uploads and deferred input are dropped. Walkthroughs and the HandDreams launcher open the viewer on loopback with an SSH forward instead of --host 0.0.0.0. Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
/ok to test 492c9ef |
Contributor
[High impact] The reviewed changes appear safe to merge; all three previous findings are addressed. SummaryThis PR pairs remote Quest relays with a short code shown in the viewer.
No new actionable issues were found in the changes since the previous review. This review used code and test inspection; no runtime or headset checks were run. Reviews (2) · Last reviewed commit: "Pause Quest input with the viewer and fe..." · Reviewed by Greptile |
HandDreams created the WebRTC viewer without running the WebRTC mode's argument checks, so --no-login with FLASHDREAMS_WEBRTC_TOKEN_FILE set loaded the credential instead of refusing the conflicting options. Creating the WebRTC window now runs those checks, and the Isaac Teleop and remote Quest modes apply them before anything is built. The HandDreams launcher also printed the LAN address for the viewer, which now listens on loopback. It prints the loopback URL and the SSH forward to reach it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
A remote Quest relay authenticated with a shared token that stayed valid across viewer and session changes. The laptop relay now pairs with a 6-symbol code that the operator shows in the authenticated viewer (P). Entering it in remote-vr returns a reconnect key over the pinned TLS channel, held only in the laptop's memory. A code is single-use, expires after 5 minutes and is voided after 5 wrong entries. SSH still delivers the TLS pin and the static token that decides who may try a code; it no longer delivers control authority, so the pairing file and FLASHDREAMS_CONTROLLER_PAIRING are removed. The laptop stays paired across scene changes, viewer reloads in a paired browser and network drops. R, a new code, a different viewer or shutdown ends the pairing; one relay is served at a time and an old key is refused. Epoch checks fence receiver and window queues, retained input and model action preparation, so queued poses from a revoked pairing or a previous scene are dropped. Revocation completes even when a viewer callback raises. While no viewer is connected, input pauses without revoking. Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The retained authority check the model loop runs before generating now also requires the paired viewer to be connected, like the observation check. Poses buffered before a viewer disconnect no longer reach the model; the reconnect key stays valid. - The receiver records the scene epoch when it sends a pull and drops the reply if the scene changed while the pull was in flight, so old-scene poses are not stamped with the new epoch. - A paired relay whose reconnect closes before the server answers now retries with its key instead of exiting. An unpaired relay still reports the authentication failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
jmccaffrey-nv
force-pushed
the
dev/jmccaffrey/quest-remote-pairing
branch
from
November 26, 2026 01:54
492c9ef to
8425eab
Compare
Collaborator
Author
|
/ok to test 8425eab |
jmccaffrey-nv
enabled auto-merge
November 26, 2026 06:25
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A remote Quest relay authenticated with a shared token, and that token stayed valid across viewer and session changes. With this PR, the laptop relay pairs with a short code that the operator shows in the paired viewer.
K7M-4QX) on its HUD. The code is never written to a file or printed on the server console.remote-vr(or passing--code) returns a reconnect key over the pinned TLS channel. The key lives only in the laptop's memory.FLASHDREAMS_CONTROLLER_PAIRINGare removed.remote-vrasks for the next code instead of exiting.remote-vr, type the code.Pairing decides which laptop may drive the session. It does not verify that a paired laptop's poses are genuine, and the guide says so.
Validation
All checks ran on CPU, at this branch's head.
pytest -m ci_cpu:flashdreams/test_v2: 466 passed.mainin this environment,test_mode_is_registered_as_a_v2_client_window_pluginfails because the controller-input entry point isn't installed.ty checkreports no new diagnostics.zensical buildpasses.Not exercised: a real headset, a real browser, or GPU rendering.
🤖 Generated with Claude Code