HydraIssues

Serve a locally installed experience from the kiosk grid (stream_mode: local) [macOS/Linux only, see #845]
closed feature Project: hydraheadflatscreen Reporter: 18 Oct 2026 18:15

Description

Delivered and verified on cheeky-cactus, 2026-10-19

A kiosk tile that launches an experience installed on the head. No body, no pairing. Owner confirmed it works from the tile.

kiosk window hidden
launching local experience: mendelcraft-kiosk
local experience started
overlay window shown
-> Minecraft 1.18.2 fullscreen, Forge 40.1.51, 23 mods, arm64 throughout

stream stopped via API
kiosk window shown
local experience exited, kiosk window restored
-> status idle, zero leftover processes, grid back

KNOWN LIMITATION: macOS and Linux only (#845)

This does not work on a Windows head, and the failure is silent. The Windows agent installs as scheduled task HydraHeadWindows running as LocalSystem (UserId S-1-5-18), so startLocalApp's plain exec.Command starts the experience in session 0, which has no desktop. It runs invisibly while the status, the log and the agent API all report a healthy streaming.

macOS escapes it only because the agent is a per-user LaunchAgent already inside the GUI session.

The fix is known and the pieces exist: route the Windows launch through startInInteractiveSessionWithArgs (pkg/client/session_windows.go), which moonlight_windows.go and pairing.go already use, with buildCmdLine turning the configured argv into a Windows command line. Tracked in #845, the Lunar Strike setup that needs it.

Noted in the code, the runbook and the testbook so nobody runs Phase 2 against a Windows head and reads the green status as a pass.

Shipped

  • hydraheadflatscreen v2.3.0: startStream branches before discovery and pairing; local_apps per machine; watcher with a start grace because the process we spawn is rarely the one the visitor sees.
  • hydraexperiencelibrary v0.22.0: a local experience goes live with production_build: 0. Before this the live catalog dropped it and the tile could not exist. The exemption is narrow: a STREAMED experience with no build is still dropped.
  • Experience record mendelcraft-kiosk, live, scoped to bxl1-test-2/mobile-kit. Deliberately separate from the older mendelcraft draft, which is the FTI two-iPad plan and was left untouched.
  • Runbook: full procedure, verification, troubleshooting, platform limitation. Testbook: docs/testbooks/local-experience.md.

Deferred, on purpose

  • hydracluster head-type filter sits unmerged on branch 833-local-experiences, NOT tagged. It keeps the tile off the seven non-flatscreen heads in that venue, but it does not solve the second FLATSCREEN head in the same venue, so it is superseded by the capability filter in #835. Restarting the fleet control plane was not worth cosmetics in a test district.
  • #836 (overlay collection-behaviour) is unrelated and low.

What the build got wrong, both caught by looking at the screen

  1. stop_command killed only the game JVM. Prism Launcher survived, decided the game had crashed because we killed it, and put its window and a crash console on the kiosk. The agent reported a clean idle throughout. Fixed by CloseAfterLaunch/QuitAfterGameStop plus a stop command that takes both processes down.
  2. A LOCKED screen is indistinguishable from a crashed kiosk through every remote probe, and a kiosk launched while locked never draws and never retries. Both are now the first two checks in the testbook.

Follow-ups worth filing if they recur

  • POST /stream/stop answers {"status":"idle"} without clearing an error state, so it persists until the next successful start.
  • hydraheadflatscreen update reports "Restarting service" on macOS and leaves the OLD binary running.

Sub-issues (1)

open #835 Offer a local experience only to heads that declare they can launch it

Session Context

Venue
mobile-kit