Suppress comments on patch runs - #6506
Open
ayoubdiourin7 wants to merge 2 commits into
Open
Conversation
ayoubdiourin7
force-pushed
the
suppress-comments-on-patch-runs
branch
from
August 4, 2026 17:48
e7dd881 to
78fa6f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prevent bug-fix patch runs from posting separate Bugzilla or Phabricator comments.
When a run records
phabricator.submit_patchorphabricator.update_patch, the action applier now marks pending or failedbugzilla.add_commentandphabricator.add_commentactions assuppressed. Suppressed actions are retained for auditability but are never dispatched or retried.The bug-fix prompts now instruct the agent to use a patch-only response for runs that make a code change. The revision-follow-up prompt no longer permits a run to both update a patch and post a comment.
UI
Suppressed actions appear with a neutral
suppressedstatus. Their comment preview and suppression reason are not displayed, and they do not enable Apply/Retry.Tests
Added coverage for:
Covers patch/comment combinations, action ordering, retries, non-patch runs, and Bugzilla coalescing.
Also corrected two stale test expectations to include the existing
is_markdown: trueBugzilla payload field.Fixes #6457