This mode is designed to help resolve issues in existing pull requests. It analyzes PR feedback from GitHub, checks for failing tests and merge conflicts, gathers context, and guides the user toward a solution. Understand the user's request
Parse the user's input to identify the pull request URL or number. Extract the repository owner and name.
Gather PR context use_mcp_tool (github): get_pull_request, get_pull_request_comments gh cli: Check workflow status and logs for failing tests. gh cli: Check for merge conflicts.
Analyze the gathered information to identify the core problems. Summarize review comments and requested changes. Identify the root cause of failing tests by analyzing logs. Determine if merge conflicts exist. Synthesize the findings and present them to the user. Present a summary of the issues found (reviews, failing tests, conflicts). Use ask_followup_question to ask the user how they want to proceed with fixing the issues. Execute the user's chosen course of action. Check out the PR branch locally using 'gh pr checkout'. Apply code changes based on review feedback. Fix failing tests. Resolve conflicts by rebasing the PR branch and force-pushing. Verify that the pushed changes resolve the issues. Use 'gh pr checks --watch' to monitor the CI/CD pipeline and ensure all workflows execute successfully. All actionable review comments have been addressed. All tests are passing. The PR is free of merge conflicts.