Skip to content

fix(#407): add API fallback when pre-fetched review body is empty - #408

Closed
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/407-fix-review-api-fallback
Closed

fix(#407): add API fallback when pre-fetched review body is empty#408
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/407-fix-review-api-fallback

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the placeholder fallback in skills/fix-review/SKILL.md step 2a with a concrete GitHub API fetch that recovers review findings when review-body.txt is empty
  • When the pre-fetched review body is missing (e.g., because the review was posted as a COMMENT rather than CHANGES_REQUESTED), the fix agent now fetches the review bot's issue comment via gh api, filtering for the <!-- fullsend:review-agent --> marker
  • If no matching comment is found, the existing error behavior is preserved

Context

On PR #157, the review agent posted a COMMENT review. The pre-fetch jq filter only matched CHANGES_REQUESTED, so review-body.txt was empty. The fix agent had no recovery path and wasted ~7 minutes before producing a no-op result. This change makes the fix agent self-healing, independent of the platform-level fix tracked in fullsend-ai/fullsend#4675.

Test plan

  • Trigger /fs-fix on a PR where the review agent posted a COMMENT review (not CHANGES_REQUESTED) — the fix agent should recover findings via the API fallback and log ::notice::Recovered review findings from issue comment API fallback
  • Trigger /fs-fix on a PR where the review agent posted a CHANGES_REQUESTED review — the pre-fetched file should be used as before (no fallback triggered)
  • Trigger /fs-fix on a PR with no review bot comment — the fix agent should log ::error::No review body found and proceed with existing behavior

Closes #407

Post-script verification

  • Branch is not main/master (agent/407-fix-review-api-fallback)
  • Secret scan passed (gitleaks — 2dc5dc661767d79efb73179d1ca4dbd104c27c27..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

When review-body.txt is empty (e.g., because the review agent
posted a COMMENT review rather than CHANGES_REQUESTED), the
fix-review skill now falls back to fetching the review bot's
issue comment via the GitHub API. The fallback searches for
comments from users matching *-review[bot] that contain the
<!-- fullsend:review-agent --> marker, and uses the latest
matching comment as the review body.

This is defense-in-depth — it makes the fix agent self-healing
regardless of the review body pre-fetch mechanism, without
replacing the platform-level fix tracked in fullsend#4675.

Closes #407
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner July 23, 2026 18:41
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity in the last month. It will be closed in 2 weeks if no further activity occurs. Remove the stale label to reset the inactivity timer.

@github-actions github-actions Bot added the stale label Aug 23, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

This pull request has been closed due to inactivity. Feel free to reopen it if the changes are still needed.

@github-actions github-actions Bot closed this Sep 7, 2026
@github-actions
github-actions Bot deleted the agent/407-fix-review-api-fallback branch September 7, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix-review skill should fetch review findings from GitHub API when pre-fetched review body is empty

0 participants