Skip to content

fix: detect review pagination cycles to initial cursor - #128

Open
guptaakash67 wants to merge 1 commit into
prooflinedev:mainfrom
guptaakash67:fix/review-pagination-cursor
Open

guptaakash67 wants to merge 1 commit into
prooflinedev:mainfrom
guptaakash67:fix/review-pagination-cursor

Conversation

@guptaakash67

Copy link
Copy Markdown

Summary

  • Seed the review pagination cursor set with the caller's initial cursor.
  • Reject a continuation cursor that returns to the starting cursor.
  • Add a regression test proving the cycle is rejected after two requests.

Problem
When pagination starts with an existing cursor, the initial cursor was not included in the set of seen cursors. If the server later returned that starting cursor, the SDK did not detect the cycle immediately.

Verification

  • pnpm build — passed
  • pnpm typecheck — passed
  • Focused pagination test — passed
  • Biome check on changed files — passed
  • git diff --check — passed

Note: The full test suite ran 105 of 106 tests successfully. The remaining test encountered spawnSync pnpm ENOENT when trying to launch pnpm from a child process in this Windows environment.

@guptaakash67

Copy link
Copy Markdown
Author

@prooflinedev review

@prooflinedev

prooflinedev Bot commented Dec 4, 2026

Copy link
Copy Markdown

Proofline commands require write access to prooflinedev/sdk-typescript, which guptaakash67 does not hold, so nothing was changed.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant