Skip to content

Fix menubar loading recovery deadlocks#293

Merged
iamtoruk merged 2 commits intomainfrom
fix/menubar-loading-watchdog
May 10, 2026
Merged

Fix menubar loading recovery deadlocks#293
iamtoruk merged 2 commits intomainfrom
fix/menubar-loading-watchdog

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

Summary: fixes the menubar stuck-loading path by making CLI pipe drains non-blocking, adding watchdog recovery, coalescing scheduled refreshes, and showing retry UI instead of an infinite spinner when no fetch is active. Tests: swift test in mac.

iamtoruk added 2 commits May 9, 2026 14:27
Replace blocking availableData drain with non-blocking POSIX read
that respects Task cancellation. Handle EINTR from child SIGCHLD,
close pipe fds after drain to prevent deadlock on oversized output,
and escalate SIGTERM to SIGKILL after 0.5s grace period.

Add 60-second loading watchdog as safety net that auto-clears stuck
state on each refresh loop tick.

Fixes #282
@iamtoruk iamtoruk merged commit 180e14d into main May 10, 2026
3 checks passed
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