HydraIssues

Head-led body: one Windows machine serves its own kiosk grid and its remote slots at the same time (zappy + crispy-badger-25)
open feature Project: hydraheadflatscreen Reporter: 22 Oct 2026 16:29

Description

Make a gaming PC a kiosk in its own right while it keeps serving other heads as a body. Both crispy-badger-25 (node-1eb186e9) and zappy-cactus-6 (node-ff913390) already carry both roles, hydraheadflatscreen and hydrabody. The target is the same shape on both, with content limited per machine through the head's allowed_experiences: Lunar Strike on crispy, Rupelmonde Castle Viewer on zappy.

Acceptance is three clicks on the HydraGrid: Lunar Strike on crispy, Rupelmonde on zappy (launched locally, no Moonlight), and Rupelmonde on android-head-bff1e021c46f1dc6 (streamed from zappy's body at the same time).

Three gaps block it today.

  1. Per-head delivery. stream_mode is one global value on the library entry. rupelmonde-castle-viewer must stay streamed, because the android head streams it from zappy's own body, so it cannot be flipped to local. A head that declares a valid local_apps entry for an experience should run that experience locally and skip body discovery. Backwards compatible: no local_apps entry, no change. Avoids a duplicate library record.

  2. Windows heads have no kiosk UI support. startKiosk returns 'kiosk mode not supported on Windows', isKioskRunning and isHydraExperienceNetInstalled are hardcoded false (pkg/client/moonlight_windows.go). The grid on crispy therefore runs from a machine-specific HydraHeadKiosk task, and crispy reports status idle instead of self-service. Zappy has no kiosk app at all: its head logs 'failed to show overlay window: dial tcp 127.0.0.1:9741 connectex: actively refused'. The agent should install, launch and supervise the native ExperienceNet UI on Windows as it does on macOS and Linux, from its own path (C:\HydraExperienceNet), so that stopping a stream (taskkill /F /IM Moonlight.exe) cannot kill the grid.

  3. Process ownership by name. The body's orphan reaper takes the installed exe base name, prefix-matches it over tasklist and kills every PID no Sunshine session owns (pkg/provider/orphan_select.go). Zappy's .hydrabody experiences.yaml registers rupelmonde-castle-viewer at C:\experiences\rupelmonde-castle-viewer\Windows\Rupelmonde.exe, so a head-launched local Castle is an orphan by definition and dies within a few reaper ticks. In the other direction the head's match and stop_command are image names (pkg/client/localapp_windows.go), so they see and can kill the body's remote instance. Until matching is path or ownership based, the local seat needs a build copy whose exe name does not start with the body's exe base.

Already true and in favour: zappy's slot plan puts both slot origins at x=5760, so the physical 3840x2160 panel at x=0 is free for a local seat; origin/main of hydraheadflatscreen is 10 commits ahead of integrate/zappy-owned-slots with nothing unmerged, so zappy can take a stock release instead of its v2.4.1-zappy.4 build; C: has 1816 GB free against a 3.59 GB build.

Out of scope here, tracked separately: per-session input routing. Sunshine injects with SendInput, so pointer events follow coordinates onto the VDD but keyboard and held modifiers follow desktop foreground, which is the local seat. Two simultaneous interactive visitors are not qualified; pointer-only experiences such as Castle are the case being accepted.

Related: #845 (same name-matching defect across four Lunar Strike tiles), #833 and #848 (local tiles offered to heads that cannot launch them), #844 (shared audio mix), and docs/runbooks/zappy/local-seat-and-remote-slots.md in hydrabody, which this implements a first slice of.

Session Context

Venue
mobile-kit

Comments (1)

api 22 Oct 2026 17:53

Live on zappy (node-ff913390), 2026-10-22 19:52 local. Both agents now run stock releases: hydrahead v2.7.0 and hydrabody v2.0.90, replacing the branch builds v2.4.1-zappy.4 and v2.0.85-zappy.2. Both zappy branches were already fully merged, so nothing was lost.

What is verified on the machine:

  • The agent launches the menu itself through the new Windows path: HydraExperienceNet.exe kiosk --district bxl1-test-4 --venue mobile-kit, started by the agent in the interactive session, and relaunched by the agent after a deliberate kill. The payload is v6.1.46 from the release server, digest checked against SHA256SUMS.
  • The grid renders on the physical 3840x2160 panel with exactly one tile, Rupelmonde Castle Viewer, from allowed_experiences on the head record.
  • The tile launches LOCALLY although the catalog entry is streamed: status app=rupelmonde-castle-viewer host=local, process C:\experiences\castle-local\Windows\Rupelmonde\Binaries\Win64\Rupelmonde-Win64-Shipping.exe Rupelmonde -fullscreen -ResX=3840 -ResY=2160 -nosound. No Moonlight process, both Sunshine slots idle, Castle rendering directly on the panel with its yellow marker.
  • The path-scoped stop ends only that copy and the grid returns: status idle, zero Rupelmonde processes.
  • The HydraZappyCastleStartup logon task is Disabled. It is no longer the route to a working screen.

Two things measured along the way, both now in the docs:

  • Renaming the local copy's shipping binary does NOT separate the two copies. CastleLocal-Win64-Shipping.exe starts, opens no window and writes no log, with and without -userdir. A packaged Unreal build resolves its project folder from the executable name. The local copy keeps the original name and is separated by path only.
  • -userdir did not move this build's writable state, so local and streamed instances still share %LOCALAPPDATA%\Rupelmonde\Saved.

Open, and worth its own fix: the menu window opens on a virtual display (5760,0) rather than the physical primary, because the Qt app restores a saved geometry. It had to be moved by hand once. The agent should place the kiosk window on the physical primary when it starts it, or the saved geometry should be reset at install. Until then a menu restart can land on the wrong display.

Also still open from the analysis: per-session input routing (Sunshine injects with SendInput, so keyboard and held modifiers follow desktop foreground), audio (#844), and the kiosk guard, which is installed on crispy-badger-25 and not on zappy, so zappy still shows the Windows taskbar under the grid.

crispy-badger-25 keeps its four Lunar Strike tiles by owner ruling on 2026-10-22: four entry points into one game. With v2.7.0 those four can be separated in config alone by giving each a path match and a path-scoped stop, which closes the random-build naming in stopOrphanLocalApp described in #845.