github / github/app

PR review: batch inline comments into a submittable review so the agent acts once, not per-comment

未关闭
#1,912 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
2.1k
派生
153
PR 合并指标
30 天内没有已合并 PR

描述

PR review: batch inline comments into a submittable review so the agent acts once, not per-comment

### Describe the feature or problem you'd like to solve

When reviewing a pull request in the desktop app's diff viewer, each inline review comment I post is dispatched to the agent **immediately and individually** — every comment triggers its own agent turn that acts right away.

This means if I'm still working through a review — leaving five comments across several files — the agent starts editing after comment #1, while I'm still writing comments #2–#5. My changes and its changes interleave, the PR "moves around" under me, and I can't compose a complete review before the agent responds.

On **GitHub web**, review comments work differently: they're collected into a **pending review** and only released together when I click **Submit review**. The reviewer finishes the entire pass first; consumers act once, on submit.

### Proposed solution

Add a **pending-review / batch-submit mode** to the diff-review experience, matching GitHub web:

- Inline comments I add accumulate as a **pending (draft) review** and are **not** sent to the agent as I type them.
- A **Submit review** action releases the whole batch at once.
- The agent then acts on the complete set in one pass, rather than reacting comment-by-comment.

Ideally this is the default (or a toggle), so the per-comment behavior becomes opt-in for people who want immediate action.

### Example prompts or workflows

- I review a 6-file PR and leave 8 comments. Today the agent starts fixing after the first comment; my later comments land while it's mid-edit. With batch submit, I finish all 8, click Submit, and the agent addresses them together — no interleaving.

### Additional context

Current workaround is to tell the agent "wait until I'm done reviewing before acting," but that's a per-session nudge, not an enforced gate — the agent can still act on a comment before I finish. A real pending-review/submit boundary solves it at the product layer. The per-comment dispatch appears specific to the desktop diff viewer; the GitHub web batched-submit model is the desired parity.

---
| Field | Value |
| --- | --- |
| App version | 1.0.21 |
| OS | Windows 10.0.26200 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Week 4 |

贡献指南

打开贡献指南

调研方向

从桌面应用的 diff viewer 和此处描述的当前 inline-comment dispatch 行为开始。跟踪评论如何发送给 agent,然后定义待处理的 review 状态和 Submit review 边界。完成意味着多个评论在一次提交之前都保持非活动状态,并被一起处理。

由索引模型根据 Issue 内容生成。

评估

领域
desktop
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。