Address review (PR #3510, Cursor Bugbot):
- Reconnect / checkpoint revert can re-snapshot or filter the live activity
window, but the prepended `olderActivities` weren't invalidated — leaving gaps
or showing reverted history. Reset the lazy-load state when the live window's
oldest activity id changes (it's stable while activities only append, so this
doesn't fire during a normal turn), in addition to on thread switch. Web + mobile.
- Web only deduped a new older page against already-loaded older pages, not the
live window (mobile already did both). Dedup against both so a boundary overlap
can't produce duplicate ids / React keys.
Not changed — the "unsequenced cursor hides sequenced history" finding is a false
positive: NULL-sequence (legacy) rows always sort oldest in the window/cursor
ordering, so the oldest-loaded row is only unsequenced once every sequenced row
is already loaded; the unsequenced cursor can never strand sequenced rows.
Co-Authored-By: Claude Opus 4.8 <[email protected]>