Skip to content

Paginate chat threads - #23

Merged
NHagar merged 1 commit into
NHagar:masterfrom
adaitche:fix/chat-thread-pagination
Sep 15, 2026
Merged

NHagar merged 1 commit into
NHagar:masterfrom
adaitche:fix/chat-thread-pagination

Conversation

@adaitche

Copy link
Copy Markdown
Contributor

Previously, get_threads() returned only the first page. Now, we fetch older pages with the before cursor and stop once the requested limit is reached.

Added test case and also tested against the live Substack API with single-page and multi-page limits.

Previously, get_threads() returned only the first page. Fetch older pages with the before cursor and stop once the requested limit is reached.

Tested against the live Substack API with single-page and multi-page limits.
@adaitche adaitche changed the title Paginate publication chat threads Paginate chat threads Sep 14, 2026
@NHagar

NHagar commented Sep 15, 2026

Copy link
Copy Markdown
Owner

looks good! thanks for this contribution

@NHagar
NHagar merged commit 37b5dfd into NHagar:master Sep 15, 2026
2 checks passed
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.

2 participants