Skip to content

Agent convention: reply to each review comment in its own thread, not in a rollup comment #2254

Closed

Description

@cliffhall

Problem

When responding to a code review — Copilot's especially — agents tend to post one rollup comment at PR level, a bullet per finding, instead of replying inline on each individual review comment. That is backwards.

Each inline review comment is its own discussion thread with its own resolve state. A bullet sitting somewhere else on the page cannot be connected back to the thread it answers, so:

  • The thread cannot be resolved against a reply that does not live in it. Threads stay open with no visible answer, and the PR reads as though the findings were ignored.
  • A reviewer reading a thread sees the finding and silence. The response is elsewhere, and they have to hunt for the matching bullet to learn whether it was fixed, fixed differently, or declined.
  • The bullet → thread mapping degrades to guesswork as the review grows. Nothing links them; by round three or four, matching a bullet to the comment it answers is reconstruction, not reading.

Where this bites in this repo specifically

The pr-flow skill's step 8 already says:

⚠️ Inline replies go hidden once the fix is pushed (the threads become outdated), so mirror each round at PR level as a summary comment […]

That guidance is correct, and the rationale behind it is real. But it is being read as permission to skip the inline reply: the rollup gets posted and the per-thread replies never happen. The rule needs stating in the other order —

  • the per-comment inline reply is the primary response, and is not optional;
  • the PR-level summary is in addition to it, never instead of it, and exists only so the round survives the threads being collapsed.

AGENTS.md today ("Responding to Code Reviews") says only that not every suggestion must be implemented and that you should "respond to each review comment". It never says where that response goes, which is precisely the ambiguity being resolved the wrong way.

There is already a memory note titled "Reply per review comment, not one summary" capturing exactly this — meaning it has been hit and re-learned rather than encoded in the repo's own rules.

Sibling of #2253

This is the same class as #2253 ("Agent convention: wait on a notification, never a tight poll loop"): a working convention that lives only in a per-user memory note, where a skill body can be dropped by auto-compaction mid-session and a memory is invisible to anyone else. AGENTS.md is loaded in full every turn and does not degrade — which is the rules-vs-recipes split the repo already documents.

They are separate conventions with separate fixes and should not be merged; they are cross-referenced here only because the underlying failure mode is shared.

Proposed fix

Not a mandate — the maintainer decides the final wording and shape.

  • AGENTS.md, under "Responding to Code Reviews": make explicit that "respond to each review comment" means an inline reply in that comment's own thread, and that a rollup comment does not discharge it.
  • pr-flow step 8: order the two unambiguously — per-comment inline reply first (primary, required), then the PR-level mirror (secondary, additive). Keep the existing "replies go hidden once the fix is pushed" rationale as the reason the mirror exists, not as an alternative to the inline reply.
  • Name the mechanics, so an agent can actually do it rather than defaulting to the easy path:
    • an inline reply goes through the review-comment reply endpoint keyed by comment id — gh api repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies;
    • review comments must be fetched per review, by review id — the unpaginated /reviews listing hides later rounds behind your own replies (this is already institutional knowledge in the repo and belongs next to the instruction that depends on it).

Acceptance

  • AGENTS.md states that each review comment is answered in its own thread, and that a rollup comment does not discharge that.
  • pr-flow step 8 orders the two clearly: per-comment reply required, PR-level mirror additive.
  • The reason the mirror exists (threads go outdated/hidden after a push) is preserved, not deleted.
  • The reply and per-review-fetch mechanics are named where an agent will be standing when it needs them.

Activity

  1. added this to the v2.6.0 milestone on Sep 5, 2026
  2. added
    documentation
    v2
    on Sep 5, 2026
  3. cliffhall commented on Sep 5, 2026

    @cliffhall
    MemberAuthor

    Triage: Priority Medium (total 6)

    • Severity 3 — a real need is unmet and the workaround is partial: the convention exists only as a per-user memory note, and the guidance that is in the repo (pr-flow step 8) is actively read as permission to do the wrong thing.
    • Urgency 3 — wanted this milestone; it costs review legibility on every open PR now, and the fix is cheap prose.
    • Bonuses: none. Not a bug; no engagement, assignee, parent epic, or reporter-set Fields → Priority. The milestone bonus is deliberately not claimed — this issue was filed through the /issue-create flow, so it carries a milestone by construction, and counting it here would make the bonus a constant that discriminates nothing.

    Board: #28, Status Todo, Priority Medium (filed through the create flow, so filing it was the approval).

    Sibling of #2253, same class, separate fix.

  4. self-assigned this
    on Sep 6, 2026
  5. cliffhall commented on Sep 6, 2026

    @cliffhall
    MemberAuthor

    Shipped in #2273, merged to v2/main. AGENTS.md states that the response goes in the comment's own thread and that a rollup does not discharge it; pr-flow §8 orders inline-first / mirror-additive, keeps the threads-go-outdated rationale as the reason the mirror exists, and names the reply and per-review-fetch mechanics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions