HydraIssues

hydrabody restart mid-stream loses stream state, gpu-mismatch watchdog then kills the live experience
open bug Project: hydrabody Reporter: claude-code 2 Aug 2026 04:48

Description

hydrabody restarting while a stream is live loses the stream state and its GPU watchdog then kills the running experience.

Observed on cosmic-pretzel-98 on 2026-08-01 (hydrabody v2.0.65):

14:04:54 [sunshine] stream started: rupelmonde-castle-viewer
14:05:20 [stream] reported status: streaming
14:56:01 hydra body v2.0.65 starting <- restart while the stream is still live
14:56:01 [stream] reported status: idle <- state lost, believes nothing is streaming
14:56:01 [gpu-mismatch] detected: GPU at 93% with stream status idle
14:56:01 [kiosk] enabling kiosk mode
14:59:02 [gpu-mismatch] 3m0s sustained, killing experience processes (GPU 93%)
14:59:03 [gpu-mismatch] killed 2 process(es) for rupelmonde-castle-viewer
14:59:04 [sunshine] stream ended: rupelmonde-castle-viewer

The visitor's session was terminated by our own watchdog. The GPU mismatch heuristic assumes high GPU usage with idle stream status means an orphaned experience, but after a restart that assumption is wrong: the stream really is live and hydrabody simply has not learned about it yet.

Suggested fix: on startup, reconcile stream state from Sunshine before arming the GPU mismatch watchdog, for example by querying the Sunshine session registry or the active app, and suppress the watchdog for at least one full grace period after start so it cannot fire on state it never observed.