This is a question, not a defect claim. Nobody has traced who provisions relay user records, so nothing here asserts the relay is broken. It is filed because it is the same collision class as #549 displaced onto a different component, and it costs one grep to settle.
Sunshine keys its single pending-pair session by the GameStream uniqueid. Every Moonlight-based Hydra head hardcoded the same one, 0123456789ABCDEF, plus the same devicename roth, so the heads are indistinguishable to Sunshine and they collide.
On Sunshine 2025.924 the collision is silent and destructive. insert is a no-overwrite emplace (nvhttp.cpp:579): when a pending session already exists for that uniqueid the new session is discarded and the OLD one returned, so the second client's certificate is thrown away, while the next two lines DO write the new salt (581) and deferred response (593). The session is left with a new salt and an old cert. Phases 2 and 3 still pass, because they only exercise the AES key derived from SHA256(salt||PIN), and phase 4 fails, because it is the only step verifying a signature against the stored client cert. The symptom is clientpairingsecret rejected (paired=0) and it points at nothing useful.
On Sunshine 2026.914 the same collision is a hard refusal instead: status_code 409, "A pairing session with this uniqueid already exists" (nvhttp.cpp:994).
Sessions also never expire on 2025.924, so a client that abandons a handshake leaves its certificate behind to poison the next client indefinitely.
On the WebRTC path the browser is NOT a GameStream client. Credentials go cluster to relay and the device receives only a stream_url, so a browser head never talks to Sunshine. The actual GameStream client is the relay (hydra-moonlight-web-stream src/app/mod.rs:132, pub type MoonlightClient = TokioHyperClient).
That moves the pairing identity onto the relay, where it is stored per user as client_unique_id:
hydra-moonlight-web-stream src/app/user.rs:121hydra-moonlight-web-stream src/app/user.rs:253-256hydra-moonlight-web-stream src/app/storage/json/mod.rs:236These lines are on origin/master, not only on a branch.
So: if two heads ever stream through one relay USER, they present one GameStream identity to Sunshine, and they collide exactly as the heads did. The failure would surface as a relay or body fault with nothing in the logs pointing at identity, which is what made #549 take a full day to find.
One grep by whoever owns relay user provisioning:
client_unique_id generated per user record, and can two heads ever resolve to the same record?If it is strictly per head, this is a non-issue and the ticket closes. If users can be shared, it needs the same fix the heads are getting: a per-head identity derived deterministically so two clients never share a pairing slot.
The head-side fix is gamestreamIdentity in hydraheadflatscreen d485de1: uniqueid is the first 8 bytes of SHA-256 over the head id rendered as 16 uppercase hex (the shape Sunshine validates), devicename is the head id. It is a pure function of the head id specifically so other client implementations mirror it rather than inventing a second scheme. The Quest and Android head sessions are mirroring it. If the relay needs one, it should use the same function rather than a third.
Raised by the #770 Samsung Tizen session, which found the relay lines while answering whether a browser-class head pairs at all. Cross-referenced from #770 and #549.