Repository navigation
fix(control): resolve review findings on lines the diff doesn't show - #364
Merged
kalaspuff merged 2 commits intoOct 31, 2026
Merged
Conversation
Findings on lines the diff doesn't show go in a review's summary, which has no thread for them. fctl review threads didn't list them, so a later review couldn't resolve them, and a summary that held any never counted as addressed and stayed shown after its issues were fixed. fctl review threads now lists them by the summary's id and their number there (IC_…#1), resolved accepts those ids, and a later review strikes the finding through in the summary with what fixed it, notes its number in the summary's note, counts it as fixed, and hides the summary once everything in it is addressed. Summaries now note how many findings their text holds, so that a list in the agent's own text isn't taken for fctl's.
|
Partly addressed as of fctl reviewed Two agreed concerns from independent reviewers: a failed summary edit can still hide the summary, and On lines the diff doesn't show:
Reviewed by fctl · Review agent settings |
A summary whose edit failed is no longer hidden for findings it doesn't show fixed. Restating keeps the summary's text as it is rather than taking fctl's marks out of it, which could merge or drop findings that quote them. Findings in the text of summaries still shown count as still open. The submit help, the review agent's AGENTS.md and the docs name the IC_…#1 ids.
Contributor
Author
|
On the two findings in the summary of the review of bcdcdd5:
|
kalaspuff
approved these changes
Oct 31, 2026
kalaspuff
deleted the
fctl/609-shouldn-t-also-a-comment-from-the-review
branch
October 31, 2026 03:21
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
A review's findings on lines the diff doesn't show go in its summary comment, not in threads of their own. A later review had no way to resolve them:
fctl review threadsdidn't list them, andresolvedtook only thread ids. So a summary that held one never counted as addressed, and stayed shown after its issue was fixed. Inline findings already get resolved and their summaries hidden. kalaspuff/dynamoxy#126 shows the problem: the second review saw the fix but said "it has no thread to resolve".Now:
fctl review threadslists each finding in an earlier summary's text, with an id made of the summary's id and the finding's number there (IC_…#1), its path and line. It shows as resolved once fixed, or once the summary is hidden.resolvedinfctl review submittakes those ids. The agent's instructions, the review agent's AGENTS.md,fctl review submit --helpand the docs say so.sha." line with the agent's note. It records the finding's number in the summary's hidden note and counts it in the "Addressed as of …" line. Once every issue in the summary is addressed, it hides the summary as outdated, as for threads. If GitHub refuses the edit, the summary stays shown.in_text). Without that, a list the agent wrote in its own summary text could pass for fctl's. Older summaries, like dynamoxy#126's, are read from their list, up to the number of issues found.I verified it with unit tests in
fctl_domain::reviews: listing, ids, marking, standing and hiding, a summary in the exact older format, a finding that quotes fctl's mark, and a list faked in the agent's text. I also rendered a marked summary with GitHub's Markdown API to check that the struck-through title and the "Fixed in" line show as intended. I didn't run a review end to end against GitHub.Worth confirming
fctl session
Note
Low risk. It changes how fctl's own review comments are restated and counted, in the control plane's review posting code; a mistake would show as a wrong review outcome or a summary left unmarked, not as lost data.
What it does. Findings that an earlier review put in its summary's text, because their lines weren't in the diff, can now be resolved by a later review through ids like
IC_…#1, listed byfctl review threads. The summary marks them fixed with a strike-through and a note, and hides itself once everything in it is addressed. Since the last review it keeps the agent's text whole when restating a summary, keeps a summary shown when its edit failed, and counts unfixed in-text findings as still open, so the check stays neutral. The CLI help, docs and the review agent's prompt now name the new ids.Review outcome. A re-review with no new findings now ends neutral instead of passing while a shown summary still holds unfixed findings in its text.
fctl review's first look at
d239f0d· 8 files, +624 −75 · Review agent settings