Skip to content

Minimize superseded results on the issues post-comment --tracker github path #10092

Done

Description

@waynesun09

Problem

#10089 (#9957) minimizes the bot's earlier result comments as outdated when a new one is posted. That happens in fullsend post-review, fullsend review-dedup, and fullsend post-comment for the markers in supersedingResultMarkers (internal/cli/postcomment.go).

fullsend post-comment is deprecated in favour of fullsend issues post-comment --tracker github. That path builds its own sticky.Config in runIssuesPostComment (internal/cli/issues.go) and never sets MinimizeSuperseded. The agents' post scripts use fullsend post-comment today, so nothing changes yet. Once they move to issues post-comment --tracker github, earlier triage, prioritize and risk-assessment results will stay expanded again.

Proposal

  • On the GitHub tracker path of issues post-comment, minimize the poster's earlier comments with the same marker after posting, for the markers in supersedingResultMarkers, with the same best-effort and same-author rules as sticky.MinimizeSuperseded.
  • Design (decided): add an optional capability interface in internal/tracker, in the same style as StatusCommentClient, for trackers that can fold earlier comments. tracker.ForgeClient implements it by delegating to sticky.MinimizeSuperseded with its wrapped forge.Client, converting the created tracker.Comment (string ID, author) to a forge.IssueComment. Do not widen tracker.Client itself.
  • runIssuesPostComment sets sticky.Config.MinimizeSuperseded from supersedingResultMarkers (move that map somewhere both post-comment and issues post-comment use it). postTrackerStickyComment calls the capability after CreateComment succeeds, only when the flag is set and the tracker implements the interface. Dry run and --only-if-exists with nothing to post minimize nothing.
  • Jira does not implement the interface, so nothing changes there. GitLab goes through ForgeClient, whose MinimizeComment returns ErrNotSupported; sticky.MinimizeSuperseded already skips that quietly.
  • Keep code comments short: what and why, one idea each.

Done when

  • Posting twice through runIssuesPostComment with --tracker github and a superseding marker minimizes the first comment (unit test). Also cover: a marker not in the set minimizes nothing, another author's comment is never minimized, and the Jira path is unchanged.
  • The issues post-comment help text says which markers fold earlier results.
  • docs/agents/triage.md and docs/agents/prioritize.md stay accurate after the agents switch commands.

Related

Activity

  1. fullsend-ai-triage commented on Dec 3, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 6:57 PM UTC · Completed 6:59 PM UTC

    Commit: d9ed887 · View workflow run →

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

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

    @fullsend-ai-triage

    The proposal is clear, but it can't be implemented until #10089 merges. That PR is still open. The pieces this issue builds on (sticky.MinimizeSuperseded, the MinimizeSuperseded config option, the supersedingResultMarkers list and the forge client's minimized-state check) are not on main yet. #10089 also deliberately leaves issues post-comment --tracker github unchanged and names this as the follow-up, so it doesn't fix this issue.

    Once #10089 lands, this issue should be ready to pick up. One design choice will need a decision at that point: either add minimize to the tracker interface (with Jira and GitLab as no-ops), or reach the GitHub forge client from runIssuesPostComment. Triage will be re-evaluated after the PR merges.

    Blocked by:

  4. removed
    blocked
    on Dec 3, 2026
  5. self-assigned this
    on Dec 3, 2026
  6. waynesun09 commented on Dec 3, 2026

    @waynesun09
    MemberAuthor

    /fs-code
    Do not sign off: no git commit -s, no Signed-off-by trailer. #10089 merged; scope and design are in the issue body.

  7. fullsend-ai-triage commented on Dec 3, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 10:31 PM UTC · Completed 10:33 PM UTC

    Commit: 2edaf57 · View workflow run →

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

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

    @fullsend-ai-coder
    Contributor

    🤖 Code · ❌ Terminated · Started 10:31 PM UTC · Ended 11:12 PM UTC

    Commit: 2edaf57 · View workflow run →

  9. added
    feature
    triaged
    on Dec 3, 2026
  10. fullsend-ai-triage commented on Dec 3, 2026

    @fullsend-ai-triage

    #10089 has merged, so the blocker noted in the earlier triage is resolved. The design is also now settled in the issue body, so this is ready to implement.

    Code locations checked on main

    • supersedingResultMarkers and the MinimizeSuperseded config option are in internal/cli/postcomment.go and internal/sticky/sticky.go.
    • runIssuesPostComment and postTrackerStickyComment are in internal/cli/issues.go.
    • StatusCommentClient (the style to follow for the new capability interface) is in internal/tracker/tracker.go, and ForgeClient is in internal/tracker/forge_client.go.

    Severity: low. Nothing changes today, because agent post scripts still use fullsend post-comment. It only matters once they migrate.

    Things to watch

    • Minimize only after CreateComment succeeds. Dry run and --only-if-exists with nothing to post must not minimize anything.
    • Keep it best-effort and same-author only. GitLab already returns ErrNotSupported, which is skipped quietly.
    • Update the help text and re-check the triage and prioritize agent docs.
    • Per your note, commits must not be signed off.

    Proposed test case

    through runIssuesPostComment with --tracker github and a superseding marker:
      post twice -> first comment minimized, second not
      marker not in supersedingResultMarkers -> nothing minimized
      earlier comment by a different author, same marker -> never minimized
      tracker without the capability (Jira) -> unchanged behavior
      dry run / --only-if-exists with nothing to post -> no minimize calls
      minimize error -> post still succeeds
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  11. fullsend-ai-coder commented on Dec 3, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 10:31 PM UTC · Completed 11:12 PM UTC

    Commit: 2edaf57 · View workflow run →

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

  12. added a commit that references this issue on Dec 3, 2026
  13. 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

featuretriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions