Skip to content

fix(commit_files): avoid panic when async fetch fails#2948

Closed
wyf027 wants to merge 1 commit into
gitui-org:masterfrom
wyf027:fix/commit-files-fetch-panic
Closed

fix(commit_files): avoid panic when async fetch fails#2948
wyf027 wants to merge 1 commit into
gitui-org:masterfrom
wyf027:fix/commit-files-fetch-panic

Conversation

@wyf027

@wyf027 wyf027 commented May 17, 2026

Copy link
Copy Markdown

Summary

  • Replace .expect("failed to fetch") and .expect("error sending") in the commit-files background worker with error logging, matching asyncgit::revlog and asyncgit::status.

Test plan

  • cargo check -p asyncgit

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

Log fetch and notification errors instead of unwrapping in the
background worker, consistent with revlog and status.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wyf027 wyf027 closed this Jun 23, 2026
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