Skip to content

fix(diffview): close GitHub posting dialog after success - #56

Merged
DeepanshuMishraa merged 1 commit into
DeepanshuMishraa:mainfrom
cheetahbyte:fix/github-post-dialog
Nov 20, 2026
Merged

DeepanshuMishraa merged 1 commit into
DeepanshuMishraa:mainfrom
cheetahbyte:fix/github-post-dialog

Conversation

@cheetahbyte

@cheetahbyte cheetahbyte commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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.

Written for commit 636684d. Summary will update on new commits.

View guided diff

Clear the loading dialog when the posting worker succeeds. Previously the comment was marked as posted, but the blocking dialog remained open and ignored input.

Add a regression test through the posting result channel and completion handler.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

View guided diff | Re-trigger cubic

@DeepanshuMishraa
DeepanshuMishraa merged commit b9fa2a1 into DeepanshuMishraa:main Nov 20, 2026
8 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.

2 participants