Update API Push search projects when a star changes. #240

Open
jose wants to merge 5 commits from api-notify-starred-projects-fix into master
Owner
No description provided.
jose added 1 commit 2026-12-02 06:59:58 +00:00
Starring only saved the list on the device, so the notification server kept searching the previous projects until the next full authorization upload.

Co-authored-by: Cursor <cursoragent@cursor.com>
jose added 1 commit 2026-12-02 07:32:05 +00:00
Re-check the active DID immediately before the native plugin update. Share one per-DID queue between full AlertSearch uploads and lightweight project-list updates, and re-read the saved list before a full upload is posted. Run on-device and API Push sync independently so one cannot block or hide the other.

Co-authored-by: Cursor <cursoragent@cursor.com>
jose added 1 commit 2026-12-02 08:00:13 +00:00
Account loading carries the DID from the settings snapshot through the native starred-project sync, and skips that sync when the account is no longer active. API Push revocation joins the same per-DID queue as authorization uploads, and refuses to sign after the active account changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
jose added 1 commit 2026-12-02 08:40:47 +00:00
The fetcher rechecks the active DID and schedule owner immediately before the plugin call. A full upload reserves its per-DID queue turn before it mints JWTs. A later revocation waits until that POST settles.

Co-authored-by: Cursor <cursoragent@cursor.com>
jose added 1 commit 2026-12-02 10:39:13 +00:00
The account switch queues the native pool clear before it awaits, so an older
plugin configuration cannot finish afterward and leave the previous account's
credentials installed. AlertSearch uploads and revocations take a ticket before
the active-DID lookup, so a slower lookup cannot reserve that DID's queue first.

Co-authored-by: Cursor <cursoragent@cursor.com>
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin api-notify-starred-projects-fix:api-notify-starred-projects-fix
git checkout api-notify-starred-projects-fix
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: trent_larson/crowd-funder-for-time-pwa#240