Skip to content

fix(asyncgit): log diff/blame notification channel errors#2950

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/async-notify-send-panic
Open

fix(asyncgit): log diff/blame notification channel errors#2950
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/async-notify-send-panic

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Replace .expect("error sending diff") and .expect("error sending blame") with error logging when the async notification channel is unavailable (e.g. UI shutting down).

Test plan

  • cargo check -p asyncgit

Related to #2713 (same panic-avoidance pattern in async workers).

Made with Cursor

Avoid panicking when the UI channel is closed while async diff or
blame workers finish, matching the status worker pattern.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant