Repository navigation
Reviewer: show every step it took and lead with a PR overview - #529
Merged
Merged
Conversation
The reviewer now records what it does while it reads a pull request: each
search (its query), file view (path and line range), folder listing and
lookup (tool name only), the short notes it writes on what it is checking,
and the comments it keeps. Events are appended to the review's session
every few seconds and returned grouped by kind ("Search 3 times", "View 4
files"), so the session page can show the review live. Only where it
looked is kept, never what it read: no tool results or file contents, every
text scrubbed for secrets and capped, at most 200 events per review.
The posted review leads with a PR Overview: one sentence on what the PR
does, a few Changes bullets, and a Reviewed Changes table with one line per
changed file, folded in a details block above 15 files. Rows follow the
diff; a file the model left out gets a plain line from its status. The
overview is kept on the session for the dashboard. The verdict, findings
and what blocks are unchanged.
The tool loop takes a LoopObserver (text before tool calls and each call)
in place of the bare tool-call callback; the coder's run log uses it
through ToolCallFn unchanged.
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
The PR reviewer now shows its work. While it reads a pull request it records each search, file view, folder listing and lookup, the short notes it writes on what it is checking, and the comments it keeps. The review's session page reads them live, grouped like a run log ("Search 3 times", "View 4 files"). The review posted on GitHub now leads with a PR Overview: one sentence on what the PR does, a Changes list, and a Reviewed Changes table with one line per file. When more than 15 files changed, the table is folded in a details block. Inline comments and the blocking rules are unchanged.
Changes
common::review_activity(new): the activity events and how they are kept.common::review_overview(new):common::review_session: activity is appended in batches, along with a count of dropped events. The overview is saved on the session too, and both are read back.LoopObserver, which sees the agent's text before each batch of calls and each call when it ends. It replaces the bare tool-call callback, and the coder's run log keeps working throughToolCallFn.review_activity::ActivityFeedappends what was recorded to the session every 3 seconds. It writes whatever is left when it is closed or dropped.overviewand for short progress notes: a bold heading plus one or two sentences, with no code and no secrets.summarynow covers what the reviewer checked and what it found.GET /api/reviewer/sessionreturnsactivity(the groups),activity_droppedandoverview.docs/api/openapi.jsonis regenerated.Verification
cargo fmt --check --all,cargo clippy --workspace --all-targets -- -D warnings: clean.cargo test --workspace: 3778 passed, 20 ignored, 0 failed. New tests cover: