Skip to content

fix: tab-aware smart polling and claim-race detection for bounty status (#46) - #180

Open
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/46-smart-polling-claim-race
Open

fix: tab-aware smart polling and claim-race detection for bounty status (#46)#180
rafaio1 wants to merge 1 commit into
MergeFi:mainfrom
rafaio1:fix/46-smart-polling-claim-race

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #46.

  • Add useSmartPolling hook with visibility API pause/resume and exponential backoff when data is unchanged; resets on tab refocus or data change
  • Rewrite IssueActions to poll /bounties/:id/status every 5s (backing off to 60s) while in actionable states (open/funded/claimed)
  • Detect claim-race losses via 409 status or 'already claimed' message, showing distinct amber warning instead of generic error
  • Force immediate status refresh after race loss to show new claimant
  • Document websocket gap per roadmap; this is the interim polling solution

TypeScript compiles cleanly with npx tsc --noEmit.

…us (MergeFi#46)

- Add useSmartPolling hook with visibility API pause/resume and exponential
  backoff when data is unchanged; resets on tab refocus or data change
- Rewrite IssueActions to poll /bounties/:id/status every 5s (backing off
  to 60s) while in actionable states (open/funded/claimed)
- Detect claim-race losses via 409 status or 'already claimed' message,
  showing distinct amber warning instead of generic error
- Force immediate status refresh after race loss to show new claimant
- Document websocket gap per roadmap; this is the interim polling solution

TypeScript compiles cleanly with npx tsc --noEmit.
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add tab-aware smart polling and claim-race detection for bounty status

1 participant