Skip to content

fix(tui): mark sync complete even when background refresh fails#32180

Open
MethodWhite wants to merge 1 commit into
anomalyco:devfrom
MethodWhite:sync-partial
Open

fix(tui): mark sync complete even when background refresh fails#32180
MethodWhite wants to merge 1 commit into
anomalyco:devfrom
MethodWhite:sync-partial

Conversation

@MethodWhite

@MethodWhite MethodWhite commented Jun 13, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #24540

Type of change

  • Bug fix

What does this PR do?

Adds a .catch() to the non-blocking Promise.all() in the sync phase. If any of the 11 API calls fails, the sync status was stuck at "partial" forever. The catch transitions to "complete" so the UI doesn't hang.

How did you verify your code works?

Triggered a network error during the non-blocking sync. Without the fix, the status stays "partial" and an unhandled rejection occurs. With the fix, the status transitions to "complete" and no crash occurs.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

The non-blocking Promise.all() in the sync phase had no .catch(), so
if any API call failed the sync status stayed 'partial' forever and
the rejection went unhandled.
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.

Unhandled rejection in background sync leaves TUI stuck in partial status

1 participant