HydraIssues

A Linux head never picks up a stream it did not start itself: nothing polls at the grid, so the cluster's own stream-start route parks at ready forever
open bug Project: experiencenet Parent: #534 Reporter: 14 Nov 2026 20:28

Description

What happens

On a Linux flatscreen head, POST /api/v1/heads/{id}/stream on hydracluster returns success and no stream ever starts. The agent reaches ready and stops there. Only a human clicking a tile on the kiosk grid moves it.

Measured on cranky-toaster-86 (node-5e0ea2c8, Omarchy, bxl1-test-2) on 2026-11-14 by a peer session: a prepared stream sat at ready while GET /api/v1/stream/params returned a healthy 200 with the correct host and app. Nothing was asking for it.

Why

app/gui/KioskView.qml in hydra-experiencenet has exactly ONE Timer. It is created inside pollStreamStatus() (around line 360), and pollStreamStatus() is called from exactly one place: the response handler of the stream-start that the kiosk itself POSTed. While the grid is showing, nothing polls at all.

So the pickup path exists and is correct, but it is only ever armed by a tap. Any stream prepared by something else is invisible to the kiosk:

  • POST /api/v1/heads/{id}/stream (hydracluster pkg/api/server.go:492, RequireAuth, emits an EventStreamStart record, shells out to hydraheadflatscreen stream-start <experience> over the exec channel)
  • hydraheadflatscreen stream-start run by hand
  • POST 127.0.0.1:9740/api/v1/stream/start directly

All three complete discovery and pairing, set status ready, and stall.

This is Linux only, because scene mode is Linux only. On macOS and Windows the agent spawns a subprocess and never emits ready on that path.

The comment that makes it expensive to find

hydraheadflatscreen pkg/client/localapi.go states, in the in-process branch of startStream:

the kiosk's 2 s status poll sees it, fetches the parameters via GET /api/v1/stream/params, launches the stream inside its own process

That describes an intent the QML never implemented. The peer session that hit this lost about an hour to believing the kiosk was broken rather than the comment. Fix the comment in the same change.

Fix

Run a status poll while the grid is showing, acting only on ready on Linux, and leave the existing stream-time poll alone. The stream-time poll also handles idle and ready as terminal back-to-grid for the legacy platforms, so a grid-time poll must not reuse it or macOS refetches its experience list every two seconds.

Why this matters beyond convenience

Without it there is no authorised way to start an experience on a Linux head from the cluster, and the gap invites a synthetic input device on the head to click the grid instead. That is worse than it sounds: during a scene-mode stream, pointer input is forwarded to the BODY as touch, not consumed locally (app/streaming/input/quickinput.cpp:292, :350, :376 send LiSendTouchEvent with k_MousePointerId; mouse is only the fallback for a host that cannot take touch, an owner decision under #507 with #504 context). So any pointer injector on a head is also a remote touch injector into whichever body the cluster assigned, with none of the controls that the head input queue carries.

Fixing the poll removes the reason to build one.

Second trap found alongside it, for the testbook

A SINGLE click on a tile does not fire onClicked. It hovers the tile and draws its focus outline, which looks exactly like a click that worked. TWO clicks start the stream. This reads as wrong coordinates and is not.

Related

  • #1184 remote input, the lane this protects: steering a LIVE stream through the cluster step model, released as hydra-experiencenet v6.2.0, hydraheadflatscreen v2.8.0, hydracluster v2.4.0.
  • #534 the omarchy single-app kiosk follow-up. Its highest-priority item, validating the VDS_AUTO scene-mode fix on the Air, is now satisfied in substance: WoW: Forever streamed for six minutes on cranky-toaster-86 from a GCP L4 cloud body, h264 via VAAPI, no windowless decoder failure.

Sub-issues (3)

open #1195 An in-process stream cannot be stopped: the agent goes idle, the Qt session stays live, and the kiosk's 15s reassert puts the head back to streaming
open #1194 A body's lane outlives the stream: stream_count stays 1 after CLIENT DISCONNECTED, so the next head is told no body has the experience
open #1193 The cluster cannot start or stop a stream on any head: both routes call the agent through ~ and the exec channel runs as root

Comments (1)

api 14 Nov 2026 20:47

RELEASED as hydra-experiencenet v6.2.1, not yet device verified.

What shipped

Repo Ref Contents
hydra-experiencenet v6.2.1 (master de1af614, PR #12) startGridPoll in KioskView.qml, plus a runbook section with the before/after route table
hydraheadflatscreen main a6024b1, no tag The corrected comment, testbook step 10, the two-clicks trap, and a route table in the remote-input runbook section

hydraheadflatscreen is deliberately untagged. Nothing functional changed there, so there is nothing to deploy and no reason to push a release to every venue kiosk for a comment and two documents.

Gates

All three PR checks passed, including the qml job, which is the one that exercises the change: 58 seconds, green. build and build-macos also passed, and build-macos did not hit the arm64 runner starvation this time.

The change was confirmed present on master before the tag was cut, rather than trusting the merge:

git show origin/master:app/gui/KioskView.qml | grep -n startGridPoll
62:        startGridPoll()
301:    function startGridPoll() {

Release runs 43638645967 (release.yml) and 43638645915 (appimage.yml) both completed successfully. Both artifacts verified serving from the release server, 206 on a range request:

HydraExperienceNet-v6.2.1-linux-x86_64.AppImage  206
HydraExperienceNet-v6.2.1.dmg                    206

The AppImage is the one that matters here, since scene mode is Linux only.

What this does NOT prove

Nothing has run on a head. A green build and a served artifact are not a working kiosk. The proof is testbook step 10 in hydraheadflatscreen docs/testbooks/omarchy-head-e2e.md: leave the grid untouched, POST the cluster route, and the stream must appear within about two seconds with nobody at the machine.

One qualification worth stating for whoever runs it: cranky-toaster-86 currently carries a development agent build with an added pointer endpoint, kept beside its stock v2.8.0 binary. Step 10 should be run on the stock agent, so the result cannot be attributed to that endpoint. If the cluster route starts a stream on a stock agent with an untouched kiosk, that is the claim this issue makes, with nothing to qualify.

Leaving this open until that passes.