Skip to content

feat: show review findings in a few lines in the transcript - #233

Merged
kalaspuff merged 5 commits into
mainfrom
fctl/175-in-the-session-viewer-when-a-review-from
Oct 23, 2026
Merged

kalaspuff merged 5 commits into
mainfrom
fctl/175-in-the-session-viewer-when-a-review-from

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

When fctl's review agent posts findings on a pull request that one of fctl's agents opened, fctl passes them on to that agent in a message (#225). The session's transcript showed that message whole: each finding's explanation, then the instructions for the agent and the gh api command it answers with. A single finding took most of a page, and several took more. People rarely need to read all of that, so the transcript now shows the review in a few lines, with the whole message a click away.

What changed

  • The message carries the review it is about (UserMessage.review, a new PassedOnReview), as follow-ups carry theirs (UserMessage.follow_up, feat: let comments, failed checks and merges bring agents back #228). It holds the pull request, the commit, the review's summary and session, and for each finding its severity, title, file and lines, and its comment on GitHub. fctl_domain::reviews::passed_on_review builds it from the same Found as the message's text, in the same order (most severe first, through a shared order). The agent gets the same text as before.
  • The transcript shows it in a few lines, styled like a follow-up's failed checks: "fctl's review agent found 2 issues in web#12 at 3f2a1c9", then one line per finding (its title, then its severity and path:lines). Each finding's title opens its comment on GitHub, or the review's summary for a finding on lines the diff doesn't show. What fctl told the agent opens the whole message. The agent's name opens the review's session, the pull request opens the review's summary, and the commit opens the commit.
  • Findings messages sent before this change have no review in them. They show their first five lines with a Show all button. Only these get cut: they are recognized by the words passed_on starts them with. Other messages from fctl stay whole, including a scheduled run's task (feat: start sessions on a schedule, or when another tool asks #229, which sends it as a message from fctl), and so do people's messages.

Compatibility

All additive, no migration. UserMessage.review is optional, and clients without it show the message's text as before. The internal /review-findings body's new shown field defaults to nothing. Neither hosts nor agents read the field.

How I verified it

  • Unit tests cover the proto wire format, including a message without a review. In the domain, they check that passed_on_review lists findings in the message's order and links each by where it is on GitHub: its comment, the summary, or nothing known. Web tests check the findings view (lines, links, one issue, no summary, the message a click away), the transcript (a review goes to the new view, old findings messages get cut, and a short task, a long scheduled task and people's long messages stay whole), and that the builder keeps the review on its item.
  • cargo xtask check passes. One run failed in xtask's runs_a_throttled_command_again, an intermittent race in tests from fix(xtask): run wrangler again when Cloudflare's API throttles it #230 that this branch doesn't touch (An xtask test fails now and then with Text file busy #232); the rerun passed.
  • End to end in cargo xtask dev, through a temporary route I didn't commit. It hands made-up findings to SessionObject's /review-findings as pass_on does: the real passed_on, held_back and passed_on_review, the internal call, and the stored event. A session got the finding from the screenshot in the request, and the message's text came out identical to it. fake-claude answered it, and the page showed the review in a few lines. The stored event carried the review (GET …/events). An fctl binary built from main printed the same event with fctl logs --json, without the field, so older clients read it as before. A message sent without the review, like one from before this change, showed its first lines and opened with Show all. I didn't run posting on GitHub, spots or pass_on's choice of session against a GitHub stand-in. This change leaves them as they were, and their tests cover them.

Screenshots

From cargo xtask dev at 444dfee (the views haven't changed since), with fake-claude's answer after each message. The pull request and finding are the ones from the screenshot in the request.

The message from the request, light, 1440 px wide:

Before After
Before: fctl's findings message in full, taking most of the page After: one header line, one line for the finding, and What fctl told the agent

On a phone (390 px):

Before After
Before: the message runs over several screens on a phone After: the review in a few lines on a phone

Dark:

After, dark: the review in a few lines

Three findings, most severe first: one on lines the pull request deletes ("old version"), and one in the review's summary:

A review with three findings, one line each, on the session page

What fctl told the agent, opened:

What fctl told the agent opened under the review, showing the whole message

A findings message sent before this change, which has no review in it:

The older message's first five lines, ending at the first finding's title, with Show all

Session: https://app.fctl.sh/s/ses_01M5MFGRENHK8PHRFQXJ53360Z

fctl-sh Bot added 5 commits October 23, 2026 13:47
fctl's message that passes a review's findings on to the agent that
opened the pull request now carries the review (UserMessage.review:
the pull request, the commit, and each finding's severity, title, lines
and comment on GitHub). The transcript shows it as a line for each
finding, with the message itself a click away, instead of the whole
message. Long messages from fctl without a view of their own (findings
passed on before this) show their first lines, with the rest a click
away.
…ranscript

Also describe in the architecture how the transcript shows the review
that a findings message carries.
…on-viewer-when-a-review-from

# Conflicts:
#	web/src/components/session/transcript.tsx
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner October 23, 2026 14:04
@kalaspuff
kalaspuff merged commit 70c5671 into main Oct 23, 2026
10 of 11 checks passed
@kalaspuff
kalaspuff deleted the fctl/175-in-the-session-viewer-when-a-review-from branch October 23, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant