Skip to content

fix: resolve main thread starvation causing UI freezes, MCP timeouts, and missed notifications#57

Merged
renjfk merged 1 commit intomainfrom
fix/main-thread-starvation
Apr 7, 2026
Merged

fix: resolve main thread starvation causing UI freezes, MCP timeouts, and missed notifications#57
renjfk merged 1 commit intomainfrom
fix/main-thread-starvation

Conversation

@renjfk
Copy link
Copy Markdown
Owner

@renjfk renjfk commented Apr 6, 2026

  • Move DB queries off the main thread in SessionPersistenceService and ContentView
  • Add SwiftData indexes on UsageSession and Icon models
  • Refactor NotificationService and IPCService to avoid blocking the main actor
  • Fix stale today graph by properly refreshing data on day transitions

@renjfk
Copy link
Copy Markdown
Owner Author

renjfk commented Apr 6, 2026

/prerelease

@renjfk renjfk force-pushed the fix/main-thread-starvation branch from c736c9c to 2db9bc0 Compare April 6, 2026 21:09
@renjfk renjfk self-assigned this Apr 6, 2026
@renjfk
Copy link
Copy Markdown
Owner Author

renjfk commented Apr 6, 2026

/prerelease

@renjfk renjfk force-pushed the fix/main-thread-starvation branch from 2db9bc0 to 9ddad42 Compare April 6, 2026 21:38
@renjfk
Copy link
Copy Markdown
Owner Author

renjfk commented Apr 6, 2026

/prerelease

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

Prerelease v0.8-pr57.9ddad42 is ready.

@renjfk renjfk merged commit a798356 into main Apr 7, 2026
3 checks passed
@renjfk renjfk deleted the fix/main-thread-starvation branch April 7, 2026 17:57
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