Repository navigation
Description
What happened
On PR #73, the review workflow started at 18:33:32 UTC. The pre-review.sh script ran at ~18:34 and confirmed the PR was OPEN. The review agent ran from ~18:34 to ~18:39 (opus model, 6 sub-agents dispatched). The PR was self-merged by the author at 18:36:39 — 3 minutes 22 seconds after creation. At 18:39:45, post-review.sh detected PR_STATE=MERGED and executed the early-exit path (lines 37-53), posting a generic 'Review skipped — this PR is already merged' comment and discarding the agent's result. The same discard pattern occurred on PR #59, where the review completed at 14:51 and posted 'Review skipped' after the PR was merged at 14:47. Workflow run.
What could go better
The review agent consumed significant tokens (opus model, 6 sub-agents, ~5 minutes of inference) on PR #73, but its entire analysis was silently discarded because the PR was merged 2.5 minutes before the post-script ran. The upstream issue fullsend-ai/fullsend#3690 tracks the pre-script abort case where the PR is merged before the agent starts, but PR #73 demonstrates the mid-execution variant where the PR was OPEN at pre-script time and merged during agent execution — a case that pre-script abort cannot address.
Confidence: Medium. High confidence that the token waste pattern recurs (2+ instances in this repo). Medium confidence in the proposed fix — for trivial PRs like #73, the review would likely be an approve with no substantive findings, adding noise without value. The value scales with diff complexity: informational post-merge reviews are most useful when substantive findings were produced.
Proposed change
In scripts/post-review.sh lines 37-53, change the merged-PR handling. When PR_STATE != OPEN, instead of immediately posting the generic skip message and exiting, check whether the agent produced an agent-result.json with a non-empty body field. If so, post the review body as a PR comment (not a GitHub review) prefixed with a banner: 'This review completed after the PR was merged. Findings are provided for informational purposes only.' If the result has no body or the action is approve with no findings, fall back to the existing brief skip message. Skip all outcome label application and gh pr review calls. The change is ~20 lines: after the PR_STATE check, use the same find logic from line 56 to locate the result file, extract the body with jq, and conditionally post it.
Validation criteria
- When a PR is merged during review agent execution and the agent produced findings, the findings appear as a PR comment with a clear 'post-merge informational' banner — not as a blocking GitHub review.
- No outcome labels (
ready-for-merge,requires-manual-review,rejected) are applied to merged PRs. - When the agent result has no body, no findings, or action is
approvewith no findings, the comment is the existing brief skip message (no regression on clean merges). - The existing pre-script skip behavior (PR merged before agent starts, no result file produced) is unchanged.
- Unit test coverage in
scripts/post-review-test.shcovers the merged-PR-with-findings path.
Generated by retro agent from #73
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
fullsend-ai-triage commentedon Jul 8, 2026
🤖 Finished Triage · ✅ Success · Started 6:49 PM UTC · Completed 6:52 PM UTC
Commit:
e8381e3· View workflow run →fullsend-ai-triage commentedon Jul 8, 2026
Re-checked per the maintainer's stale-issue request. The behavior this issue describes is still present:
scripts/post-review.src.shstill unconditionally posts the generic 'Review skipped' message and exits on any non-OPEN PR state without checking whether the agent produced findings, exactly as originally reported.A related-but-distinct upstream item, fullsend-ai/fullsend#3690 (pre-script abort for PRs merged before the agent starts), shipped its underlying harness mechanism after this issue was filed, but that mechanism cannot help the case this issue targets — a PR merging during agent execution, after the pre-script already confirmed it was open. The two issues remain complementary, not sequential; #3690 is not a prerequisite for this one.
No open PR in this repository addresses this issue. One open PR (#1163) adds a mid-run re-check mechanism to several agents, but it reacts to new comments or a moved commit head, not to a merge event, and does not touch
post-review.sh's merged-PR handling — it does not resolve this issue.The original root cause and proposed ~20-line fix in
post-review.shstill apply and are reproduced above along with an expanded test-case list. Per the maintainer's instruction, this is being left open for human prioritization rather than pushed toward auto-implementation — the category classification here (feature/enhancement) keeps it outside the categories this pipeline auto-promotes.Labels: The maintainer asked to hold this for human prioritization rather than auto-dispatching it, which the needs-human label makes explicit; existing enhancement/triaged/ready-for-triage labels remain accurate.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancePrevious run
Triage Summary
Severity: Medium · Category: Feature
Problem
When a PR is merged while the review agent is still running,
post-review.shdetects the non-OPEN state and posts a generic "Review skipped" message — discarding the agent's entire analysis. This has been observed on at least two PRs in this repo (PR #73 and PR #59), wasting significant compute (opus model, 6 sub-agents, ~5 minutes of inference per run).This is distinct from the upstream issue (fullsend#3690), which tracks the pre-script abort case where the PR is merged before the agent starts. This issue covers the mid-execution variant where the PR was OPEN at pre-script time and merged during agent execution — a case that pre-script abort cannot address.
Root Cause
The merged-PR early-exit path in
post-review.sh(lines 37–53) unconditionally posts a generic skip message and exits without checking whether the agent produced anagent-result.jsonwith findings.Recommended Fix
Modify the
PR_STATE != OPENblock to:agent-result.jsonusing the existingfindpatternbody(and action is notapprovewith no findings), post the review body as a PR comment (not agh pr review) with an informational banner~20 lines of change in
scripts/post-review.sh.Proposed Test Case
Labels: This is a feature enhancement to the review pipeline scripts, matching the 'enhancement' label.
fullsend-ai-prioritize commentedon Aug 1, 2026
RICE Priority Score: 1.6
Score breakdown
Formula: (1 x 1 x 0.8) / 0.5 = 1.6
ralphbean commentedon Sep 23, 2026
/fs-triage lots of things have changed between when this was originally filed and now across both the https://github.com/fullsend-ai/fullsend and https://github.com/fullsend-ai/agents repos. Is this still relevant? This is a stale-issue review, not an implementation request: even if the issue is still a valid bug and has sufficient information, do not recommend or trigger ready-to-code yet. Leave it for human prioritization after confirming whether it remains relevant. Do not close a still-relevant bug merely to avoid coding it.
fullsend-ai-triage commentedon Sep 23, 2026
🤖 Finished Triage · ✅ Success · Started 5:50 AM UTC · Completed 5:55 AM UTC
Commit:
6d60955· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.43