DashboardcliCursor stack pagination

Cursor stack pagination

Category: architecture
Confidence: 1.00
ID: 01a082c2-7164-74da-a829-78fa0f2da277
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0iRbOD1VHj1PKYbvU
Created: 2026-09-08 20:18:24
Updated: 2026-09-08 20:42:56

Content

Chose a persisted JSON stack of opaque page-start cursors over recomputing cursors because APIs expose forward-only tokens while the CLI supports -c next and -c prev. Use paginationHint() with prebuilt previous/next hints, expose hasPrev and nextCursor in JSON, truncate stale later cursors after backtracking, and stop auto-pagination at the requested limit, cursor exhaustion, or MAX_PAGINATION_PAGES.

Move to: