mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 17:17:38 +00:00
The agent status recovery snapshot was rewritten whole, synchronously on the main thread, after a 250 ms trailing debounce on almost every hook event (about 53 new files a minute on the reporter's Windows machine). - Leading-edge throttle: the first change after idle is written on the next turn; a stream gets at most one write per 5 s and cannot postpone it. - Changes to persisted launch-token authority skip the window, since spool replay and restored-terminal attestation read them after a crash. - Writes run off the event loop through the stats snapshot writer, now generalized as AtomicSnapshotWriter. Quit and hook-disable still flush synchronously; the file format is unchanged. Fixes #26720