Skip to content

Stop the sync page repeating account requests every five seconds - #1914

Closed
joepio wants to merge 2 commits into
developfrom
claude/project-thread-u8vgm0-sync-poll
Closed

joepio wants to merge 2 commits into
developfrom
claude/project-thread-u8vgm0-sync-poll

Conversation

@joepio

@joepio joepio commented Sep 29, 2026

Copy link
Copy Markdown
Member

What

Before: while the sync page was open, the browser kept calling /api/me and /api/sync-enrollments on the portal, roughly every five seconds.

After: those calls happen when something relevant changes (drive, server, account), not on a timer.

How

The page polls the connected node every five seconds and stored each answer as a new object. Effects that ask the portal about the account and this drive's enrollment depend on that object, so they re-ran every time. The poll now keeps the previous object when the answer is identical. Lint passes. Not measured in a browser. /api/drives/catalog (a 30 second timer plus focus) and the Cloud Vault state read were not changed here.


Generated by Claude Code

joepio commented Oct 5, 2026

Copy link
Copy Markdown
Member Author

Landed on develop in the combined batch #2060 (95707c0), tested together in one full run. Closing as included.


Generated by Claude Code

@joepio joepio closed this Oct 5, 2026
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