Work with Pull Requests in Agent Manager
When a worktree's branch has a GitHub pull request, Agent Manager shows its checks, review comments, and merge status next to the session. Send failures and comments to the agent, answer reviewers, and merge without leaving VS Code.
Before you start
Pull request features use the GitHub CLI.
- Install the GitHub CLI.
- Run
gh auth loginin a terminal and complete the sign-in.
If the CLI is missing or signed out, Agent Manager shows GitHub CLI not installed or GitHub authentication required instead of the pull request status.
Open the pull request panel
Select a worktree whose branch has a pull request, then press Ctrl+Shift+R (Cmd+Shift+R on macOS) or run AI Cockpit: Agent Manager: Open Pull Request. PR Summary shows the checks, approvals, and unresolved comments at a glance; select an item to jump to that section. Use Copy PR link to share it.
To start from an existing pull request, use the Import tab when you create a worktree and paste its URL.
Fix failing checks
Checks groups the CI results as passed, failing, running, cancelled, or skipped. For failing checks:
- Fix with AI Cockpit sends the failures to the agent in the worktree's session.
- Send failures to terminal pastes them into the worktree's terminal.
- Open check in browser opens the full log on GitHub.
Handle review comments
Comments lists the review threads, with unresolved ones first. For each thread you can Reply, Resolve or Unresolve, add a reaction, Show in diff, or Open on GitHub.
- Select Fix with AI Cockpit to send one comment, or Fix N with AI Cockpit to send all unresolved comments, to the agent.
- When a reviewer suggests a change, select Preview change, then Apply to worktree. The change is applied only to the worktree, with no commit or push; the thread stays open until you resolve it.
- Comments whose lines are no longer in the diff appear under Comments outside the current diff.
Conversation shows the pull request timeline and general comments. Dismiss a comment you do not want to act on, or send the remaining ones to the agent.
Let the agent update the pull request
With Push Pull Request Fixes on, the default, the agent commits and pushes after you send CI failures or review comments, so the pull request updates. Permission prompts still apply. Turn it off in Settings → Agents to keep commits manual.
Review the pull request yourself
- Open Files and review and select Load PR files.
- Select a line, or drag across lines, to write a line comment.
- Select Submit review, write the Review summary, and choose Comment, Approve, or Request changes.
You cannot approve or request changes on your own pull request, and reviews are available only for open pull requests.
Keep the branch current and merge
- Update from base asks the agent to fetch and merge the worktree's base branch. Run AI Cockpit: Agent Manager: Update from base, or type
/update-from-basein the worktree session. - When the branch is behind, select Update branch. When there are merge conflicts, select Fix with AI Cockpit.
- When the pull request shows Ready to merge, choose a merge method (Create merge commit, Squash and merge, or Rebase and merge) and confirm. Select Enable auto-merge to let GitHub merge once the requirements are met.