Repository navigation
feat(inbox): review a PR with an agent, inline (take A) - #2615
Merged
Merged
Conversation
…ew-with-agent, take A)
One primary under the stack view's title per state: Review with an agent
opens the picker inline (Ask for, the project's running agents, Start a new
agent only where this Inbox can start agents); a review thread reads
"Review thread with {Agent}" with Open review thread, also once the guided
review arrived; an ended agent reads "{Agent} ended" with Start a new
review thread. Open the diff stays beside it; the Reply foot stays.
Whole stack's verdict goes to the stack's one review thread, its lowest
linked layer's. Removed: the hand-off pills, the Thread chip, other-agent
chips, No agent yet, Start review, the multi-agent note, and every visible
hand word. The agent-facing hand-off text is unchanged.
The PR review has one title (the reader is bare), no repository in the
header, and under 900 px the rail folds into the Files picker: the diff
is 534 px at 800 (was 254) and 758 px at 1024 (was 446).
…too; balance on the PR title Review with an agent is off while a send runs and until the new link arrives (15 s at most), so a second thread can't start. The 20-PR limit is checked before Start a new agent as well as before a running agent. Start a new agent closes the picker, so it never reopens by itself when that agent later ends. text-wrap: balance moves from the Board card heading back to the PR title (.ib-pr-h). The Ask for options are 44 px on a phone and in the e2e's phone targets. stackVerdictLink's comment says what it does; launchHosts and launchWords are no longer exported; the DOM tests check each label's own element instead of joined text.
#2608 merged with main's later hand-off work (#2606 approved message, thread names, tree stacks; #2584 global comments). Kept this branch's review-thread picker and one-thread model, and carried main's behaviour into it: - ReviewPicker sends the thread name (pullHandoffThreadName) and retries unnamed on 409 thread_name_taken with the same idempotency key; Start a new agent passes it to compose. - The picker works on handoffStack (a tree's chain; after an ended agent, the layers that thread had), for keys, ask line and message. - PullReview keeps main's early fold/sheet block plus this branch's drawn measure and rail fold. - GuideView bare keeps the global comment button, in a non-floating row. - Main's hand-off tests ported to the picker; docs merged.
backnotprop
marked this pull request as ready for review
November 4, 2026 22:29
backnotprop
added a commit
that referenced
this pull request
Nov 5, 2026
#2615 moved the new-agent offer into ReviewPicker, so the check for a repository with no project moves there too.
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.
Builds take A · Inline of "Review with an agent" (approval
.product/approved/pr-page-review-with-agent/approval.md, q-8a095fc3) into the Pull requests page and the PR review. Base: #2608 (fix/pulls-break-uiat11a0bc7a8).What changes
pulls/ReviewPicker.tsx).launchblock. The picker's send path (owner check,startThread,pullOwner, idempotency keys,session_not_live) is the same one the old hand-off used.stackVerdictLink, decision 6). This matches Pull requests: fixes from the worst-case stress test #2608's routing. This layer still goes to the layer's own agent.otherLayerAgentsandstackAgentsWords, theunavailableagent in PostEnding, and their CSS.GuideReader/GuideViewtake a newbareprop.useNarrowerThantakesdrawn, so it measures once the review is drawn.docs/agent-guides/inbox-files-and-guides.md(the Pull requests section) is rewritten for this flow.No new keyboard shortcuts.
packages/uiis untouched.Tests
packages/inbox/pulls/pullReview.test.tsx: 46 pass. It covers none → picker → start, Cancel and Escape, Custom curation, the 20-PR limit, launch-only Start a new agent, the pick order, ended mid-start, the re-read on focus, idempotency, the picker per PR, focus after start, Open the diff in each state, the thread state, ended, and a teammate's PR. It also covers one send at a time (the button waits until the link arrives), the limit before Start a new agent, and the picker not reopening after a launch. Each of these three fails when its fix is removed.packages/inbox/pulls/model.test.ts: 22 pass, including the new Whole stack routing and the row words.GuideView.test.tsx13GuideViewportManager.test.tsx5reviewPane.test.tsx10guideDiffStyle.test.tsx4packages/inbox,apps/inboxandpackages/guide-viewertests/e2e/inbox-pull-requests.spec.ts: 11/11 pass withPLANNOTATOR_E2E_VIDEO=1, both videos included. This covers the picker, the real start, the guided review arriving with Open review thread, the rail fold at 1024 with the diff taking the width, and 44 px phone targets.Shots
They are in
/tmp/review-with-agent/built/(sheet.pngplus 61 shots). They cover the states none, picker, just started (the real flow), guided review arrived, thread, ended and ended-picker, on desktop 1440 light and dark and on phones at 390 and 320. They also include the mixed-agent stack (decision 6), the list, and the review at 1440, 1024, 800 and 390.Words
Approval:
.product/approved/pr-page-review-with-agent/approval.md(q-8a095fc3, take A · Inline).The text sent to agents (
pullHandoffMessage,pullHandoffAskLine, the/review-curateblock) is unchanged.New or changed
Removed
Diff width in the review (ledger !62, measured by the same script)