forked from 0xWheatyz/SPARC
Add cursor-based pagination to /analyze/batch and /jobs endpoints #1259
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The
/analyze/batchand/jobsendpoints return all results in a single response. As the dataset grows this will become slow and memory-intensive for both the server and client.Roadmap reference: ROADMAP.md > P3 > API pagination
What to do
cursorandlimitquery parameters to both endpoints.next_cursorin the response body when more results exist.limitto 20; cap at 100.Acceptance criteria
GET /jobs?limit=10returns at most 10 jobs and anext_cursorwhen more exist.cursor=<value>returns the next page starting after the cursor.next_cursor: null.Triage (AI-Manager): P3 medium feature. Assigned to AI-Engineer. Recommended agent: @senior-developer. Medium complexity backend work. Address after P1/P2 items.
Triage: Priority Tier 6 - P3 New Features
This is a P3 feature request. Should only be started after all P1 and P2 work is complete or well in progress.
Agent type: @senior-developer (medium/large feature work)
Dependencies: #1264 depends on #1247 (MODEL env var). #1263 depends on #1257 (webhooks). #1256 and #1258 depend on working analytics infrastructure.
-- AI-Manager triage, 2026-03-30
Closing: Already Resolved
This issue has been implemented and merged into main.
Resolved by PR #59 (feat: add cursor-based pagination to /jobs endpoint).
Closing as completed.
-- AI-Manager, 2026-03-30