Skip to content

Handle background fetch errors non-blockingly with toolbar warning#197

Open
nniel-ape wants to merge 1 commit intomaoyama:mainfrom
nniel-ape:non-blocking-sync-error
Open

Handle background fetch errors non-blockingly with toolbar warning#197
nniel-ape wants to merge 1 commit intomaoyama:mainfrom
nniel-ape:non-blocking-sync-error

Conversation

@nniel-ape
Copy link

@nniel-ape nniel-ape commented Feb 16, 2026

Summary

  • Make SyncState.sync() non-throwing so background fetch failures no longer surface disruptive error alerts to the user
  • Capture errors in a new syncError property and log them via os.Logger
  • Show a yellow warning triangle in the toolbar with a popover displaying the error message when sync fails

Test plan

  • All 34 existing tests pass (5 SyncStateTests updated to remove try)
  • Verify warning triangle appears when network is unavailable
  • Verify popover shows the error message on click
  • Verify the triangle disappears after a successful sync

Make SyncState.sync() non-throwing so background fetch failures no
longer surface disruptive error alerts. Errors are captured in a new
syncError property and logged via os.Logger. FolderView shows a yellow
warning triangle in the toolbar with a popover containing the error
message when a sync error occurs.
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

Comments