Skip to content

fix(subscriptions): recover from stuck feed updates - #1002

Open
guthubrx wants to merge 1 commit into
futo-org:masterfrom
guthubrx:futo/fix-subscription-update-stuck
Open

guthubrx wants to merge 1 commit into
futo-org:masterfrom
guthubrx:futo/fix-subscription-update-stuck

Conversation

@guthubrx

Copy link
Copy Markdown

Problem

  • After a subscription feed fetch hangs (plugin/network), IsGlobalUpdating stays true forever
  • Later reload/update requests log Already updating subscriptions or not required and return without starting a new fetch
  • The UI keeps showing the cached feed until the app is restarted

Root cause

  • UpdateSubscriptionFeed early-returns while IsGlobalUpdating is set, and a hung getSubscriptionsFeedWithExceptions never reaches the finally that clears the flag

Fix

  • Track update start time and a generation id on ChannelFeed
  • If an update is still marked in-progress after 3 minutes, allow a forced refresh (or a first-load with no feed) to restart
  • Ignore stale results from the abandoned update so they cannot overwrite a newer feed

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant