DashboardcliAPI_MAX_PER_PAGE pagination

API_MAX_PER_PAGE pagination

Category: pattern
Confidence: 1.00
ID: 01a082ab-fc59-7915-a82e-a8db97e240d9
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 0iRbOD1VHj1PKYbvU
Created: 2026-09-08 20:18:24
Updated: 2026-09-08 20:18:24

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 2d ago

Content

List commands with --limit > API_MAX_PER_PAGE must transparently fetch multiple pages following listIssuesAllPages. Set perPage = Math.min(flags.limit, API_MAX_PER_PAGE) where the maximum is 100, then continue until results.length >= limit or pages end; sending the requested limit directly looks simpler but exceeds the API page cap.

Move to: