mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 20:53:06 +00:00
32f1fd4132
The audit log, ops events, rule submissions and session reports each carried a copy of the same paging state. Next bumped the page number and cursor stack before the request and kept them when it failed, so a failed request showed "Page 3" over the rows of page 1. useCursorPager (pure transitions in lib/cursorPager) owns rows, cursors and the stack; the page number is derived from the stack. A move commits only after its page loaded, and only the latest move commits. The fetch is read through useLatest, which retires the per-page workarounds for the token getter's changing identity. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>