Skip to content

bb tasks list caps --limit at 500 with no cursor: 366 of 866 rows are unreachable #2700

Closed

Description

@MGrin

What happens

bb tasks list pages at 100 by default and silently truncates. The documented remedy is
--limit 500, but 500 is the maximum the flag accepts, and three projects on this machine now
hold more than 500 tasks. There is no cursor, no --offset, and no "showing 500 of N" marker, so
the rows past the ceiling are unreachable through the CLI at any permitted value — and the reader
cannot tell a complete listing from a truncated one.

Reproduction

Measured 2026-08-29 on bb 0.39.0.

$ bb tasks list --project SC --limit 500 | wc -l
503                       # 500 rows + 3 lines of header/formatting

$ bb tasks list --project SC --limit 501
--limit must be an integer from 1 to 500
# exit 1

Row counts read directly from the tasks plugin store
(~/.bb/plugins/tasks/data.db), same moment:

project tasks unreachable at --limit 500
SC 866 366
AB 696 196
MX 518 18

SC by status, for scale: done 742, backlog 98, canceled 19, in_progress 3, in_review 2, todo 2.

Why it costs something

The truncation is silent in both directions. An agent or a person auditing a board reads the rows
they were given and has no signal that more exist — this has already produced a wrong answer here,
where a thread read the default page and reported "only 2 open tasks" while 44 were invisible to
it. Raising the documented remedy from 100 to 500 moved the cliff without removing it; at 866 rows
the remedy fails exactly as the bare default did.

The workaround is to read the sqlite store directly, which is not something the CLI should be
pushing its users toward for a plain listing.

Suggested scope

Either would resolve it:

  • a cursor or --offset, so the full set is reachable in pages; or
  • raise or remove the ceiling for a filtered listing.

Independently of which: print a marker when the returned set is truncated. A count the reader
cannot distinguish from a complete one is the part that causes wrong conclusions, and that half is
useful even if the ceiling stays.

Related

Activity

  1. added theissue type on Aug 29, 2026
  2. added
    tasks
    cli
    no-repro
    on Aug 29, 2026
  3. bb-slop-cop commented on Aug 29, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Bug · Priority Medium · Effort Low · Labels tasks, cli, and no-repro.

    Report: Issue 2700 reproduction and root-cause report

    Verdict: NOT REPRODUCED · Root-cause confidence: medium · Reproduction label: no-repro.

    Root cause: The tested source already provides cursor pagination and a human continuation marker.

    Reproduction: An 866-task test returned 500 tasks, then 366 tasks through nextCursor. Human output also showed the continuation command.

    No pull request: trusted main and the 0.39.0 release source already contain the cursor and marker.

  4. SawyerHood commented on Sep 9, 2026

    @SawyerHood
    Collaborator

    Closing as already implemented following maintainer review.

    #780 added Tasks cursor pagination and a human-readable continuation marker. Current main supports --cursor with the same filters/sort, returns { tasks, nextCursor, limit } in JSON mode, and prints a continuation command when additional results exist.

    This functionality was already present in the reported 0.39.0 release. The linked investigation retrieved all 866 tasks as pages of 500 and 366 and verified the human continuation marker. The 500 limit is a page-size limit, not a limit on the total reachable task set.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clino-reprotasks

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions