OptionalforkOptionalhistoryCap history.length. When exceeded, oldest entries are dropped
(FIFO). With a limit set, replay() to indices below the surviving
window is undefined — don't set this if you need unlimited
scrubback.
OptionalsnapshotCapture an appState snapshot every K recorded entries so
replay() costs O(K) instead of O(n). Snapshots are dropped
alongside the entries they cover when historyLimit trims.
Cap the number of preserved fork tails on
forks. Defaults to 50; oldest are evicted on overflow. SetInfinityto disable trimming. Set0to discard forks immediately (theonForkhook still fires, butforksstays empty).