HydraIssues

The macOS flatscreen head cannot be steered from the cluster: it has no input collector and it streams with stock Moonlight
open unclassified Project: Reporter: 13 Nov 2026 16:57

Session Context

Venue
rupelmonde

Comments (2)

api 13 Nov 2026 17:08

Correction to the route in the description. We already own the fork.

pkg/client/moonlight_darwin.go:15 prefers /Applications/HydraExperienceNet.app over stock Moonlight, and the comment at line 26 states why: "proper .app bundle with TCC permissions, shared pairing identity with Moonlight". It is launched with --force-quit-app, a flag stock Moonlight does not carry.

That application is cederikdotcom/hydra-experiencenet, a moonlight-qt fork with its own moonlight-common-c subtree. It is live at v6.1.46 and its macOS build runs on cederikmini. The same fork serves the Linux head.

So this issue needs no new fork and no new build lane. The work is:

  1. Add a synthetic controller to hydra-experiencenet, calling LiSendMultiControllerEvent in the process that owns the stream connection. This mirrors HydraSyntheticController.m in hydra-moonlight-ios.
  2. Poll GET /api/v1/heads/{id}/input from that process.
  3. Have hydraheadflatscreen pass the cluster address and the head token at launch, next to the arguments it already passes.

A grep of origin/master finds no synthetic input in the fork today, so step 1 is new code.

This also removes the only argument against the operating system level route that was about cost. The argument that remains is the one that decides it: SDL enumerates HID devices, so posted events never become a gamepad. The fork route needs no Accessibility grant, which matters because TCC cannot be granted over a wire.

api 13 Nov 2026 18:49

Shipped. All three halves are released and verified live.

Repo Tag Verified
hydracluster v2.4.0 /health reports v2.4.0
hydraheadflatscreen v2.8.0 release published, 5 assets
hydra-experiencenet v6.2.0 DMG serves 206 from the bxl1 mirror

What was built

hydra-experiencenet. HydraRemoteInput polls GET /api/v1/heads/{id}/input on a thread of its own, starting only once the connection is up, because a script collected before then would be played into nothing and lost.

A gamepad step writes a virtual gamepad held at player index 0, kept outside m_GamepadState so the attach path can never hand its slot to a physical controller. sendGamepadStateLocked merges every source at index 0 whenever the virtual gamepad is live, in multi controller mode as well as single. Without that merge a script and a hand on a physical pad would sit on the same index and overwrite each other's event. That is the single reason this lives in the stream process and not above SDL.

A keyboard step goes straight to the host. A step may not mix the two: one hold cannot mean two things.

hydraheadflatscreen. Three environment variables on the stream and kiosk launches. The environment, never the command line: a command line is readable by every account on the machine through the process list and one of the three is a bearer token. With any of them missing the poller does not start and the stream behaves exactly as before.

hydracluster. handleHeadInputQueue refused every head type except iPad, Quest and Android. headType reports a macOS or Linux head as flatscreen, so a script for one came back 400 even though the collect route would have served it.

Correction to the first comment

The description proposed forking moonlight-qt. That was wrong: we already own the fork. /Applications/HydraExperienceNet.app IS cederikdotcom/hydra-experiencenet, and moonlight_darwin.go:15 already prefers it. No new fork, no new build lane.

Three things this does NOT do

  • Mouse. The step model has no mouse field, moonlight-common-c here is upstream and unforked, and absolute coordinates are broken on every multi-slot body (#1182). A mouse lane has to be relative only.
  • Windows heads. The interactive session launch carries no environment, so the three credentials never arrive. Recorded as a stub in docs/platform-parity.md.
  • Token scoping. requireAdminOrHeadResourceToken pins a token to its own head only for Android heads. Any node token can collect any head's input script, and a script can carry typed text. This predates this work and applies equally to the iPad lane today. Not widened here.

Release note: the arm64 runner pool

The v6.2.0 release failed three times before it landed, every time with The job was not acquired by Runner of type hosted even after multiple attempts on macos-15, with GitHub's own arm64 capacity notice attached. Zero steps started on any of them, so no code was ever involved.

What worked: macos-release-backfill.yml with runner: macos-15-intel. This is not a compromise build. scripts/generate-dmg.sh passes QMAKE_APPLE_DEVICE_ARCHS="arm64", so an intel host cross compiles arm64 and the workflow's own lipo -verify_arch arm64 check still proves it. Then publish-recovered-release.yml with the backfill run id and the original Release run id for the Windows half.

Try the intel runner before anything else the next time the arm64 pool starves. Three arm64 attempts cost about fifty minutes of queueing and produced nothing.

No tag was re-pointed at any point. v6.2.0 is the same commit it was when first pushed, and the backfill builds that tag rather than rebuilding from a branch.

Testing

docs/testbooks/remote-input.md in hydraheadflatscreen covers the lane end to end. The two steps that matter most are 5 and 6: a script holding B while a physical stick is held forward must not drop the stick to neutral, and a stream stopped mid hold must leave nothing pressed. A button left down on the host is the worst failure here, because nothing else will ever lift it.

None of this is device verified yet. cheeky-cactus-86 is the target.