Skip to content

Minimize superseded agent result comments now that every run appends #9957

Done

Description

@waynesun09

Problem

With sticky comments removed (#9334, #9399), every agent run adds a new result comment at the end of the thread. Earlier results stay fully visible. On a pull request that gets several pushes, each review cycle adds a review comment and a risk-assessment comment, and each skipped push adds a fullsend:review-skip note. Readers scroll past every earlier result to reach the current one.

fullsend post-review already minimizes the bot's earlier formal reviews as outdated (minimizeStaleReviews in internal/cli/postreview.go). The issue comments that carry the same results are not minimized.

Proposal

When a run posts a result comment, minimize the same bot's earlier comments that carry the same marker as OUTDATED, the way formal reviews are handled today:

  • Markers: the review result (fullsend:review-agent), the risk assessment (fullsend:risk-assessment), the review-skip note, the triage and prioritize results.
  • Keep the newest comment visible. Never minimize a comment from another author.
  • Keep blocking content visible: a request-changes review stays unminimized until a later review replaces it.
  • GitLab has no minimize; say what the GitLab path does instead (nothing, or resolve the older discussion).

Done when

  • A second review run on a PR leaves one visible review comment and one visible risk-assessment comment; the earlier ones show as outdated.
  • A behaviour scenario re-runs the review and asserts the earlier comment is minimized.
  • The user docs for review and triage say older results are folded as outdated.

Related

Activity

  1. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 5:02 PM UTC · Completed 5:04 PM UTC

    Commit: cca0379 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.15

  2. added
    blocked
    on Nov 30, 2026
  3. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    The proposal is clear and the building blocks already exist: minimizeStaleReviews handles formal reviews, and the forge client already has a MinimizeComment operation. The work can't start yet, though, because it depends on append-per-run behavior that hasn't landed.

    Blocker: PR #9399 (tracking issue #9334) is still open. On main, agents still edit a single sticky comment in place, so there are no superseded result comments to minimize. The per-push review-skip notes and the newest-marker-wins selection that this proposal builds on are also introduced by that PR. The 'Done when' scenario (a second review run leaves one visible review comment) can't be verified until it merges. Building on top of it now would likely conflict in the posting code under internal/cli and internal/sticky.

    Related, not blocking: #9335 (one comment per run) may touch the same posting paths, so it's worth sequencing the two. #7050 is independent.

    For the implementer once #9399 merges:

    • Reuse the stale-review approach: list the bot's earlier comments carrying the same marker, skip the newest, and minimize the rest as OUTDATED. Only act on comments authored by the posting identity.
    • Keep request-changes review comments visible until a later review replaces them.
    • Decide and document the GitLab path (no-op vs. resolving the older discussion).

    This issue will be re-assessed once #9399 is merged.

    Blocked by:

  4. removed
    blocked
    on Dec 3, 2026
  5. waynesun09 commented on Dec 3, 2026

    @waynesun09
    MemberAuthor

    /fs-code
    Do not sign off: no git commit -s, no Signed-off-by trailer. Blocker #9399 merged 2026-11-30; scope is the issue body.

  6. fullsend-ai-coder commented on Dec 3, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 5:19 PM UTC · Completed 5:48 PM UTC

    Commit: 9ea54c6 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $7.97

  7. added 9 commits that reference this issue on Dec 3, 2026
  8. added 2 commits that reference this issue on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions