fix(diffview): close GitHub posting dialog after success
Merged
CH
2d ago+42+42+01234567890123456789-0-0-0123456789
Summary
Close the “Posting to GitHub…” dialog after a successful line-comment submission. Previously the comment reached GitHub, but the loading dialog remained open and ignored input.
Add a regression test that supplies a successful worker response through the real posting-result channel and completion handler.
Evidence
- The regression test failed before the fix because the dialog remained open, despite the comment being marked as posted and the success toast being set.
cargo test --bin leaf diffview::tests::: 54 passed, including the regression test.git diff --check: passed.- Tests simulate the worker response; no live GitHub comments were posted.
Risk & Rollback
Reversibility: Reversible
Blast Radius: The diff reviewer's successful GitHub line-comment completion path. Posting, authentication, persistence, and error handling are unchanged. Revert the commit to roll back; no migration is needed.
Summary by cubic
Fixes the diff reviewer so the "Posting to GitHub…" dialog closes after a successful line-comment submission. Previously the comment reached GitHub, but the loading dialog stayed open and ignored input.
Bug Fixes
- Clears the loading dialog when the posting worker succeeds.
- Adds a regression test using the real posting-result channel and completion handler.