Repository navigation
feat(control): put review summaries first, and hide them once addressed - #226
Merged
kalaspuff merged 4 commits intoOct 23, 2026
Merged
Conversation
A review's summary ("fctl reviewed abc1234 and found 2 issues") was the
review's own text, which GitHub's mobile apps show below the review's
comments: after the findings it sums up. It is now a comment of its own,
posted before one review that holds the findings on their lines and no
text of its own, so it comes first everywhere.
Each later review then says atop the earlier summaries how the issues
they found stand (fixed by later commits, or resolved by someone), and
hides a summary as outdated once all its issues are addressed. It tells
a summary's findings by the review session that posted both, which fctl
notes out of sight in every comment it posts for a review.
…marks A later review split an earlier summary at the first status mark it found, which the agent's own text could hold. It splits there only once the summary's note says a later review wrote a line atop it.
Contributor
Author
There was a problem hiding this comment.
fctl reviewed e64b8e0 and found 1 issue.
On lines the diff doesn't show:
- CLI and web still say findings went in the review's text · Low severity ·
crates/fctl/src/cmd/review.rsline 525: Findings on lines the diff doesn't show now go in the summary comment, since the review is posted with no text of its own.fctl review submithere andReviewPostedNoticeinweb/src/components/review.tsx(line 56) still say "in the review's text".
Reviewed by fctl · Review agent settings
The CLI and the session page said they went in the review's text, which fctl's reviews no longer have: their summary holds them.
Contributor
Author
|
Fixed in 6a8608f, as the review found: |
kalaspuff
approved these changes
Oct 23, 2026
kalaspuff
deleted the
fctl/152-the-review-agents-comment-about-finding
branch
October 23, 2026 06:33
fctl-sh Bot
added a commit
that referenced
this pull request
Oct 23, 2026
#226 posts a review's summary as a comment before the review that holds its findings on their lines. The findings fctl passes on to the session that opened the pull request now link that summary, and say that findings on lines the diff doesn't show are in it; the review's id, for finding each comment, comes from the review posted after the summary.
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.
Review agents posted their summary ("fctl reviewed
484c057and found 1 issue.") as the review's own text. GitHub's mobile app shows a review's text below its comments, so the summary came after the findings it sums up. And once later commits fixed those findings, the summary still said they were there.What changed
4d5e6f7. Later commits fixed the issue this review found." The summary is then hidden as outdated (GitHub's "This comment was marked as outdated", which anyone can unfold);4d5e6f7. Later commits fixed 1 of the 3 issues this review found.", and the summary stays shown;<!-- fctl review -->mark, for example<!-- fctl review: {"session":"ses_…","found":2} -->. A summary's note also counts the issues found, and how many later reviews last found fixed or resolved, so a summary is edited only when that changes.fctl review, and the session page's "View on GitHub".fctl review submitand the review session's page say findings on lines the diff doesn't show went in "the review's summary", no longer "the review's text" (fctl's own review agent pointed this out here).Decisions worth a look
minimizeComment,OUTDATED). GitHub's dismissal is for approvals and change requests only, and fctl's reviews are comments.pull_requests: write(they answerX-Accepted-GitHub-Permissions: issues=write; pull_requests=write). Hiding uses the same token; if GitHub refused it, the summary would still say it's addressed, and the control plane logs why. ACOMMENTreview with comments and an empty body is something GitHub takes (reviewdog posts them that way).Overlap with #225
#225 (findings to the agent that opened the pull request) changes the same block of
crate::reviews::post, plusfctl_domain::reviews,github.rsand the architecture doc, so whichever merges second needs a rebase. They fit together: the review is still posted bypost_review, now after the summary, so #225 can take its id from there.PostedReview.url, which #225 passes on, becomes the summary's link.How I verified it
fctl_domain::reviews: 3 new, 3 updated, 16 in all): what's posted (the summary's and findings' notes, the review's empty text, no review when every finding is in the text), the posting query and the summaries in GitHub's answer (only the app's own, with a note that counts issues), standings by thread (fixed, reopened, resolved by someone, other reviews' threads, never more than found), every status line, restating (only on change, once, back to as-posted when reopened), and an agent's text that holds fctl's marks.cargo xtask checkpasses.cargo xtask dev, against a local stand-in for GitHub's API: a throwaway Node server and a bare repository, with the Worker pointed at it by a local patch. None of it is committed. Reviews were started withfctl review start, with fake-claude as the agent:POST …/issues/12/comments(the summary), thenPOST …/pulls/12/reviews(aCOMMENTreview with empty text and the finding onapp.jsline 4). Both carry the session's note, and the check's "The review" links to the summary.a005f64. Later commits fixed the issue this review found.") and hidden as outdated. The check passed, and nothing new was posted.updateIssueComment,minimizeCommentwithOUTDATED, and thatIssueCommentisMinimizable.Screenshots
At 6a8608f. The GitHub ones are mocks, not GitHub itself: the comments' text is what this branch posts, rendered by GitHub's own Markdown API, in a page made to look like GitHub. The data is made up.
GitHub Mobile, as in the report. Before, the summary is the review's text, under its "1 comment". After, the summary is a comment of its own above the review:
Once a later commit fixed the issue (web): the summary is hidden as outdated, and shown again it says what happened:
The review session's page, for a review whose finding went in its summary (from
cargo xtask dev, review session #3 above). Before, then after in both themes:fctl review submit, as the agent sees it:Session: https://app.fctl.sh/s/ses_01M5K0XKKMG58QSHW55CJ3R59Y