Update Managed Files - #3064
Open
ChiaAutomation wants to merge 1 commit into
Open
Conversation
ChiaAutomation
force-pushed
the
managed-files
branch
from
September 4, 2026 16:11
4e24ce1 to
9619573
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9619573. Configure here.
|
|
||
| cleaned = text | ||
| for start, end in reversed(_merge_spans(spans)): | ||
| cleaned = cleaned[:start] + cleaned[end:] |
There was a problem hiding this comment.
Last verdict mention overrides real verdict
High Severity
format_malware_review_verdict treats every line-start Verdict: benign or Verdict: malicious as a declaration and keeps the last one. Reasoning that restates those labels, which the prompt asks for when the scanner disagrees, can overwrite the model's real first-line verdict and strip the surrounding sentence.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 9619573. Configure here.
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.


Note
Low Risk
CI-only post-processing and prompt wording for PR comments; no runtime app or auth changes.
Overview
Tightens how supply-chain malware Cursor output appears on Dependabot/Renovate PR comments.
The malware-review prompt now requires the model to start with a standalone bold line (
**Verdict: benign**or**Verdict: malicious**), not plainVerdict:text. After the agent runs, inline Python normalizes the extracted malware text: it finds verdict mentions (including mid-sentence), keeps the last verdict value, strips duplicate verdict lines (and stray bold markers), and rewrites the section so the bold verdict is always first, then reasoning.Reviewed by Cursor Bugbot for commit 9619573. Bugbot is set up for automated code reviews on this repo. Configure here.