Skip to content

feat: PR Review Auto-Fix — auto-respond to reviewer comments and CI failures#105

Open
crshdn wants to merge 2 commits intomainfrom
feature/pr-review-autofix
Open

feat: PR Review Auto-Fix — auto-respond to reviewer comments and CI failures#105
crshdn wants to merge 2 commits intomainfrom
feature/pr-review-autofix

Conversation

@crshdn
Copy link
Copy Markdown
Owner

@crshdn crshdn commented Mar 25, 2026

Feature 1: PR Review Auto-Fix

When reviewers leave comments or CI fails on Autensa-generated PRs, the system automatically re-dispatches to the original agent with fix context. Max 3 cycles, then escalates to human.

New Files (1)

  • src/lib/pr-review-handler.ts — collect comments, format agent message, manage cycles, trigger re-dispatch

Modified Files (8)

  • src/lib/types.ts — review_fix status, review_fix_count/max on Task, auto_fix_pr_reviews on Product
  • src/lib/db/schema.ts — review_fix in status CHECK, new columns
  • src/lib/db/migrations.ts — migration 029: three new columns
  • src/app/api/webhooks/github/route.ts — pull_request_review, issue_comment, CI failure handlers
  • src/app/api/tasks/[id]/dispatch/route.ts — accepts review_fix_message for context injection
  • src/components/TaskModal.tsx — review-fix cycle counter in PR section
  • src/components/MissionQueue.tsx — 'Fixing PR' kanban column with animated badge
  • src/app/api/workspaces/route.ts — review_fix in workspace stats

TypeScript compiles clean

Charlie and others added 2 commits March 25, 2026 13:36
…ailures

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant