Upstream: crates/rune/README.md § Headless input and patch acknowledgement at
65f8eb43f710, MIT © Anomaly. Bundled by build-rune-apps; links point at this snapshot or at GitHub at that rev.
Headless input and patch acknowledgement
--snap-on-patch keeps one offscreen renderer alive. It publishes the initial PNG/tree
and another after each patch or control request, then flushes rune-hot-pixels with the
patch generation, PID, state address, scroll offsets and GPU-readback timestamp.
The PNG is the first patched frame; animated properties may still be near their old
values. The renderer continues advancing normal animation time between edits.
Replace the --hot-control JSON file atomically to send a request. Give each request
a new id; the matching tree includes that ID:
{"id":1,"tap":"login"}
{"id":2,"scroll":[800,400,180]}
{"id":3,"pause":true}
{"id":4,"step":0.05}
Each line above is a separate file replacement. pause freezes the virtual clock;
step advances it explicitly. This lets an agent inspect an in-flight animation across
patches. {"id":5} requests a fresh snapshot.
Over ten edits per example, spring positions and velocities stay exact. Median save-to-GPU time is about 8 s for Settings, short of the one-second target.