Skip to content

Test: Agent Merge #334491

Closed
Closed

Description

Complexity: 4

Authors: Benjamin Christopher Simmonds (@benibenj)

Create Issue


Agent Merge is a new experimental controller in the Agents Window. Once enabled for a session, it watches that session's pull request and asks the agent to take care of the things that keep it from merging, such as failing CI, unresolved review comments, merge conflicts or a branch that fell behind. It can also merge the pull request once it is ready.

Once it is enabled, a run looks like this:

Agent Merge conversation

You need a GitHub repository you can push branches to and open pull requests in, ideally one with CI so you can produce a failing check.

How to use it

  • Make sure chat.agentMerge.enabled is on (it is on by default in Insiders).
  • In the Agents Window, run a session that makes a change, then create a pull request for it from the Changes view.
  • Once the pull request is open, the Agent Merge button appears in the Changes title bar. Use its dropdown to Enable Agent Merge, and Configure Agent Merge to pick which blockers it may handle (Address Reviews, Fix CI Failures, Resolve Conflicts and Behind Branches) and whether it may Merge Pull Request (On / Only if Agent Merge Made No Changes / Off).
  • Agent Merge Defaults in the same dropdown opens the settings that all sessions follow.

Test

  • Enable Agent Merge for a session and verify the chat transcript explains what it will now do, and that the same happens when you change its configuration (the notice should make clear whether the change was for this session or for all sessions).

    Agent Merge enabled notice

  • Block the pull request, for example by pushing a failing CI check, leaving a review comment, or letting the branch fall behind or conflict, and verify Agent Merge starts a turn asking the agent to fix it, that the request lists the blockers it picked up, and that the follow-up (commit pushed, review threads replied to and resolved) looks reasonable.

    Agent Merge repair request

  • Turn individual actions off and verify Agent Merge leaves those blockers alone.

  • Set Merge Pull Request to On and verify a ready pull request gets merged and the transcript says so.

  • Verify Agent Merge turns itself off with an explanation in the transcript when it no longer makes sense, for example when the session is archived, the pull request is closed or merged, or the session's branch changes.

  • Verify the pull request status shown in the sessions list reflects that Agent Merge is taking care of the blockers.

  • Turn chat.agentMerge.enabled off and verify the button and its commands disappear.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions