Skip to content

Bug: chat states a task total the tool result never carried #3043

Closed as not planned

Description

@Israeltheminer

Chat told a user there were 20 open tasks. Nothing in the tool result says 20.

Observed on a deployment. Asked to list open tasks, chat returned ten rows and captioned them 1-10 of 20, then offered to continue.

Why

The rag_search list envelope carries results, hasMore, continueCursor, message, and sources. It has no count of matches. The model saw ten rows and hasMore: true, so the total is its own arithmetic on a page it cannot see past.

The number may be right by luck. A user cannot tell which.

What a reader gets wrong

1-10 of 20 reads as a fact from the board. It is a guess with a page count's worth of evidence behind it. Anyone using chat to answer "how much is open" gets a figure no query produced.

Shape

An exact total is not free. Both listings bound rows examined, not just rows kept, so counting every match would undo that bound.

Two directions, and the choice is a product decision:

  • Give the envelope a bounded count with explicit semantics, so the model can say "at least 10".
  • Or steer the model to state no total while hasMore is true, and say "more available".

Either way the model must stop deriving a total the data never carried.

Scope

Not caused by #3037, which only changed how a date is written. Found while verifying it.

Related to #2992: chat's work legs are where a user asks quantity questions, so this shape recurs wherever a leg pages.

Activity

  1. Israeltheminer commented on Aug 22, 2026

    @Israeltheminer
    ContributorAuthor

    Invalid — my misreading. Not a defect.

    1-10 of 20 is the UI's own pagination, not the model's text. The markdown renderer maps GFM table to PaginatedMarkdownTable (app/features/shared/markdown/markdown-renderer.tsx:218), so any table a model writes is paginated at ten rows a page and labelled with pagination.showingRange. The 20 is the number of rows the model wrote, counted by the component.

    I read a pasted transcript where the pagination control had flattened into text, and attributed it to the model.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions