docs(cli): explain task list limits and pagination

VI
2h ago
+14-4

What & why

superset tasks list accepts 1–500 results per page and defaults to 50. Its help only said “Max results (default: 50)”, and the reference only listed the default. Users could request an invalid limit or miss the rest of a large task list without finding the pagination instructions.

Document the accepted range in the CLI help and reference, explain --offset, and show the first two 500-result pages.

Refs #4827 (the remaining undocumented limit/pagination point).

How I tested it

Ran the CLI through its dev runner with Bun 1.4.3:

Before:
--limit <number>  Max results (default: 50)

After:
--limit <number>  Results per page (1-500) (default: 50)

tasks list --limit 501 --tracker superset --json exits 1 with Error: --limit: value 501 is above maximum 500, confirming the documented upper bound.

  • bun run lint:fix, then clean bun run lint: pass.
  • bun run typecheck: 42/42 tasks pass.
  • bun run check:i18n: pass; no catalog changes.
  • bun run --cwd apps/docs typecheck: pass.
  • bun run test --continue: 28/30 tasks pass, including all 519 CLI tests. Remaining failures are the existing shared BYHOUR timezone-format test and two agent-setup system-CLI fallback tests; these packages are unchanged. The full suite is not reported as passing.

Codex assisted with the edits and automated verification. No human review or manual testing is claimed.

Checklist

  • PR title follows conventional commits (type(scope): subject)
  • bun run lint and bun run typecheck pass (CI fails on lint warnings too)
  • "Allow edits from maintainers" is checked on fork PRs
  • I have signed the CLA (the bot asks on your first PR)

Summary by cubic

Clarifies superset tasks list limit and pagination docs so users know the accepted range (1–500) and how to page through large task lists.

  • Updates the CLI --limit help from "Max results" to "Results per page (1-500)".
  • Explains that retrieving the next page requires keeping filters fixed and raising --offset by --limit, warns that changing requests between pages can cause missing or repeated tasks, and adds example commands for the first two 500-result pages.

Summary by CodeRabbit

  • Documentation
    • Clarified task-list pagination: --limit sets the page size (1–500, default 50), and --offset skips results (default 0).
    • Added guidance to keep filters unchanged and increase the offset by the page size to retrieve subsequent results.
    • Added examples showing how to retrieve two pages of 500 tasks and noted that changes to the task list between requests may cause results to be skipped or repeated.
  • CLI
    • Updated the --limit description to identify it as the number of results per page.

Latest review follow-up (2026-11-17)

Clarified that offset pages read the current result set, so concurrent task changes can cause missing or repeated tasks. Latest checks: lint:fix, clean repository lint, and docs typecheck pass. The full-suite results above are from the initial submission; no new full-suite or UI run is claimed for this wording change.