Skip to content

Retried agent runs post duplicate result comments after sticky removal #9958

Backlog

Description

@waynesun09

Problem

With sticky comments removed (#9334, #9399), a retried run posts a second copy of the comments its first attempt already posted. Before, the run-scoped markers that the triage scripts in fullsend-ai/agents write let a retry find its own earlier comment and edit it; now every post is a new comment. A run that fails after posting and is retried leaves two identical results, which readers can take for two separate runs.

The breaking-change note on #9399 lists this as an accepted effect of the change.

Proposal

Keep append-only across runs, and make a retry of the same run idempotent:

  • A post that carries a run-scoped marker (the run ID) first looks for a comment by the same bot with that exact marker.
  • If one exists, the retry updates that comment, or skips posting, instead of adding a new one.
  • A different run ID always posts a new comment, so the Remove sticky comments: post every agent result as a new comment #9334 behaviour across runs is unchanged.

Done when

  • Retrying a run that already posted its result leaves one result comment for that run.
  • A new run still adds a new comment.
  • A behaviour scenario retries a stage after its post step and asserts one comment per run ID.

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.17

  2. added
    blocked
    type/bug
    component/harness
    on Nov 30, 2026
  3. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    Thanks for the clear write-up. The problem statement, proposal and done-when criteria are specific enough to implement, but the work can't start yet.

    This issue assumes sticky comments have already been removed. That change is still in flight: PR #9399 (part of #9334) is open and not merged, and the current main branch still finds and edits the marked comment in internal/sticky. #9399 rewrites internal/sticky.Post and the posting commands in internal/cli, which are the places where a run-ID-scoped lookup would go. A retry-idempotency change written now would conflict with it or sit on the wrong baseline. #9399 does not address retry duplication itself, so this issue is blocked on it rather than fixed by it.

    Once #9399 lands, this can be re-triaged and picked up. Points to settle then:

    • The run-scoped markers are written by the triage scripts in fullsend-ai/agents, outside this repo. The fullsend-side check (match a comment by the same bot with the exact run-scoped marker, then update or skip) may need a matching change in those scripts, and in the GitLab doors that fix(#9334)!: post every agent result as a new comment #9399 leaves in the agents repo.
    • Choose between updating and skipping on retry, since that decides what the behaviour scenario asserts (one comment per run ID).
    • The scenario should retry a stage after its post step and also check that a different run ID still appends a new comment. The existing triage-re-run-append scenario from fix(#9334)!: post every agent result as a new comment #9399 is a natural base.

    Blocked by:


    Labels: This is a defect in agent comment posting that affects the triage/review agents, and it is blocked on an unmerged PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedcomponent/harnesstype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions