Skip to content

fix: Fix CodeRabbit repair comment Markdown summaries - #971

Merged
getappz merged 2 commits into
masterfrom
task/409-fix-coderabbit-repair-comment-markdown-s
Oct 26, 2026
Merged

getappz merged 2 commits into
masterfrom
task/409-fix-coderabbit-repair-comment-markdown-s

Conversation

@getappz

@getappz getappz commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Supervisor repair summaries selected CodeRabbit's HTML severity header as the finding title, truncating an image tag before reaching the actual finding. Skip icon headers during title extraction and use a readable fallback when no title is available. Preserve the original review text for the repair agent.

Regression coverage includes the header from PR #967, bold and plain finding titles, and comments containing only an icon header. Validation: review-related tests, rustfmt, whitespace checks, and the staged-file LOC gate.


Opened by codex on i-flare-51bb8de6c33b (flared:51bb8de6c33b) for item #409 via agentflare.

Summary by CodeRabbit

  • Bug Fixes
    • Review finding summaries now display the parsed title instead of an HTML header or unrelated text.
    • Findings with no parsed title display “Review finding” as a fallback.
    • Summaries continue to include severity, review details, and finding location.

Agentflare-Agent: codex
Agentflare-Branch: task/409-fix-coderabbit-repair-comment-markdown-s
Agentflare-Item: 409
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 64 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between c134203 and 5eb090d.

Files selected for processing: 2
  • src/supervisor/review_findings.rs
  • src/supervisor/tests/review_finding_summary_tests.rs

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 765e13c and c134203.

Files selected for processing: 2
  • src/supervisor/review_findings.rs
  • src/supervisor/tests/review_finding_summary_tests.rs

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Walkthrough

The finding parser now excludes formatted image markup from title candidates. When the parsed title is empty, the summary line uses “Review finding.” Tests cover title extraction, fallback behavior, and summary fields.

Changes: Review finding summaries

Layer / File(s) Summary
Parse and summarize findings
src/supervisor/review_findings.rs, src/supervisor/tests/review_finding_summary_tests.rs
The parser filters image markup lines from title candidates. Empty parsed titles use the fixed fallback “Review finding.” Tests cover title extraction, severity, summary-line fields, and the unchanged finding body.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • getappz/agentflare#967: Provides the item-worktree fingerprint review scenario used by this PR’s regression test.
Merge Risk: Minimal · up to c1342

The change addresses image headers in repair summaries. No actionable issue remains that should delay merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main change: fixing CodeRabbit repair comment Markdown summaries. The wording is slightly repetitive but remains specific and understandable.
Description check Passed The description explains the problem, the implemented fix, preserved behavior, and regression coverage. It does not use the template headings exactly and omits the requested reviewer notes, but it pro…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, the implemented fix, preserved behavior, and regression coverage. It does not use the template headings exactly and omits the requested reviewer notes, but it provides the required summary and test information.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@getappz
getappz marked this pull request as ready for review October 26, 2026 12:47
@getappz
getappz merged commit 44d7ae0 into master Oct 26, 2026
17 checks passed
@getappz
getappz deleted the task/409-fix-coderabbit-repair-comment-markdown-s branch October 26, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant