Repository navigation
feat(#10092): minimize superseded results on issues post-comment - #10098
Conversation
`fullsend issues post-comment --tracker github` now folds the poster's earlier comments with the same marker as outdated, for the markers in supersedingResultMarkers, matching the deprecated `post-comment` (#9957). Without this, earlier triage, prioritize and risk-assessment results would stay expanded again once the agents' post scripts switch commands. - tracker: add the optional SupersededMinimizer capability (in the style of StatusCommentClient) instead of widening tracker.Client. ForgeClient implements it; Jira does not. GitLab's forge client reports minimize as not supported, which is skipped quietly. - supersede: new leaf package holding the folding rules moved unchanged from sticky.MinimizeSuperseded, which now delegates to it. The issue asked ForgeClient to call sticky directly, but tracker cannot import sticky (sticky -> statuscomment -> tracker is a cycle); sharing one implementation keeps the same best-effort and same-author rules. The direct folding tests moved with the code. - cli: move supersedingResultMarkers to its own file, set MinimizeSuperseded in runIssuesPostComment, and call the capability in postTrackerStickyComment after CreateComment succeeds. Dry run and --only-if-exists with nothing to post fold nothing. - Help text and docs/guides/user/issues-commands.md name the markers. Note: pre-commit could not fetch hook repos (HTTP 403), so hooks were run directly: whitespace/EOF checks, gofmt, go vet, lychee, docs-link and symlink checks passed; gitleaks via scan-secrets passed. semgrep was skipped because its pinned ruleset could not be downloaded. A full ./internal/... -race run exceeded the sandbox time limit; the affected packages (cli, statuscomment, sticky, supersede, tracker) pass. Closes #10092
|
/fs-fix-stop |
|
Fix agent disabled for this PR. Remove the |
|
🤖 Review · Commit: This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging. |
Site previewPreview: https://79a5573d-site.fullsend-ai.workers.dev Commit: |
The issues-commands guide and the issues post-comment help named the five markers inside one long sentence, and the guide said the newest result "replaces" the earlier ones although nothing is edited in place. List the markers one per line, say the earlier comments collapse but stay expandable, and drop the repeated "stay visible". The post-comment help still named only three markers although it reads the same five-marker set; it now matches. Assisted-by: Claude (fix), Gemini (prose review), DeepSeek (review) Signed-off-by: Wayne Sun <gsun@redhat.com>
|
🤖 Finished Review · Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.25 This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging. |
|
🤖 Finished Review · ✅ Success · Started 11:25 PM UTC · Completed 11:37 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.80 |
|
Risk Assessment: moderate (2/5) DetailsModerate file count and elevated churn in touched CLI packages are balanced by zero protected or security-sensitive paths, solid test coverage, and complete alignment with the linked issue scope. |
ReviewFindingsLow
Labels: PR changes Go code in the CLI, tracker and sticky packages. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Live check on github.comBuilt The second prioritize post printed
Limit: posted with a user token, not an agent App token. The test repo is temporary. |
waynesun09
left a comment
There was a problem hiding this comment.
Validated live on github.com via issues post-comment --tracker github (see the comment above); unit tests pass; docs and help reviewed for facts and prose.

Summary
fullsend issues post-comment --tracker githubnow minimizes the poster's earlier comments with the same marker as outdated, for the superseding result markers (review, review-skip, triage, prioritize, risk-assessment). This matches what the deprecatedfullsend post-commentalready does (#9957), so earlier results don't stay expanded again once the agents' post scripts switch commands.Related Issue
#10092 (follow-up to #9957 / #10089)
Changes
internal/tracker: adds the optionalSupersededMinimizercapability interface, in the style ofStatusCommentClient.tracker.Clientis not widened.ForgeClientimplements it by converting the createdtracker.Comment(string ID, author) into aforge.IssueComment. Jira does not implement it. GitLab's forge client returnsErrNotSupportedfromMinimizeComment, which is skipped quietly.internal/supersedepackage: holds the minimizing rules, moved unchanged fromsticky.MinimizeSuperseded, which now just calls it.ForgeClientto callsticky.MinimizeSupersededdirectly. That can't compile:tracker→sticky→statuscomment→trackeris an import cycle.forgeanduilets both callers share one implementation, so the best-effort and same-author rules can't drift apart.stickyintosupersedealong with the code.stickykeeps itsPostCommenttests and one test of the wrapper.internal/cli:supersedingResultMarkersmoves from the deprecatedpostcomment.gointosuperseding_markers.go, which both commands use.runIssuesPostCommentsetssticky.Config.MinimizeSupersededfrom that map.postTrackerStickyCommentcalls the capability only afterCreateCommentsucceeds, and only when the flag is set and the tracker implements the interface. Dry run, and--only-if-existswith nothing to post, minimize nothing.docs/guides/user/issues-commands.md: name the markers whose earlier results get minimized, and say that only GitHub can minimize comments.docs/agents/triage.mdanddocs/agents/prioritize.mddon't name the command and already say earlier results are minimized on GitHub, so they stay accurate after the switch and are unchanged.Testing
internal/cli/issues_minimize_test.go:runIssuesPostCommentwith--tracker githubminimizes the first comment, for every superseding marker.--only-if-existswith nothing to post, minimize nothing.internal/tracker/forge_client_minimize_test.go: theForgeClientconversion. Cases: nil newest, non-numeric ID, invalid project.internal/supersede/supersede_test.go: the minimizing rules, all branches covered.go testpasses forinternal/cli,statuscomment,sticky,supersedeandtracker.go build ./...andgo vet ./...are clean. The new and changed functions are at 93–100% coverage.make lint:pre-commitcould not fetch its hook repos in the sandbox (HTTP 403), so the applicable hooks were run directly:go vet, lychee, docs-link scope, broken symlinks, and gitleaks (viascan-secrets)../internal/...-racerun hit the sandbox's 10-minute limit.Checklist
!for breaking changes)🤖 Generated with Claude Code
Closes #10092
Post-script verification
agent/10092-minimize-issues-post-comment)2edaf570c7171fc7a967790485fad3ae59fca3c4..HEAD)