Skip to content

fix: scope pages/counts per pull instead of module globals - #131

Merged
andrew-polk merged 1 commit into
mainfrom
page_count_scope
Jun 16, 2026
Merged

fix: scope pages/counts per pull instead of module globals#131
andrew-polk merged 1 commit into
mainfrom
page_count_scope

Conversation

@andrew-polk

@andrew-polk andrew-polk commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Module-level pages array and counts object were never reset between
notionPull() calls, leaking pages and stats across runs. Make them
per-call locals threaded through getPagesRecursively/outputPages/writePage.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com


This change is Reviewable

Module-level pages array and counts object were never reset between
notionPull() calls, leaking pages and stats across runs. Make them
per-call locals threaded through getPagesRecursively/outputPages/writePage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@andrew-polk
andrew-polk merged commit b178ba7 into main Jun 16, 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.

1 participant