Skip to content

fix(code): continue listings after skipped candidate-only pages #131

Closed

Description

@danny-avila

When list_files reaches its candidate scan cap but every candidate is skipped during canonical/symlink/file verification, it can return truncated: true with no paths and no nextAfterPath. The negotiated pagination validator rejects that result, so valid files after a leading run of skipped candidates cannot be reached.

Please make the scan continue until it produces a valid page/cursor, exhausts candidates, or hits the existing deadline, and add a regression test with more than one candidate window of skipped entries followed by a valid file.

Found while mirroring #106 into ClickHouse/ai.

Activity

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