A person had to turn recording on before a problem for its report to say what led up to it, and nobody does that before a problem. Recording is now passive and always on: the page and the App keep a bounded history in memory (8,192 events or 8 MiB), and a report is exported on demand. There is no recording switch for a person any more. The page's diagnostic control is one button that downloads the report, and the App launcher's is one button that downloads the App report. The launcher state no longer carries a debug field, the route that enabled App recording is gone, and the App no longer adds a debug flag to the pages it opens. The App installs its recorder at its start, before anything can log; the Server binary does not, so it is unchanged. Every guard that kept an event from being recorded is removed, and audio capture and capture frame counters always count. What stays off by default is the work that costs something of its own: the page's per-frame gap loop and console echo, which `?debug=1` starts, and the App's window-loop lateness probe and shutdown progress lines, which `PIIK_DIAGNOSTIC_PROBES=1` starts. Reports say whether probes ran instead of whether recording was on. The copy describes the report in all five languages, and keys and the visual kind that lost their last user are removed. Tests now assert that history is recorded with nothing switched on, that the probes run only with the developer's flag, and keep every assertion on bounds, secret filtering and report contents.
c3c1e532fe
·
2026-11-29 13:10:13 +08:00
History