Skip to content

Test: AgentHost - mark change as reviewed/unreviewed #324394

Description

@lszomoru

Refs: #324393

Complexity: 3

Create Issue


This milestone we started implementing the functionality to mark a change made during a session as reviewed/unreviewed. We first focused on storing the "reviewed/unreviewed" state so the functionality is only available in the Agents window for the "Branch Changes" changeset in the multi-file diff editor. Next milestone we will focus on polishing the UX but we want to make sure that the foundational pieces are working as expected.

Prerequisites

  • Latest VS Code Insiders
  • Ensure that you have the "chat.agentHost.enabled": true setting enabled

Testplan

  • Open the Agents window ans start a new Copilot session
  • Send a prompt that will results in some files being edited/created
  • In the "Changes" view click on a file which will open the multi-file diff editor
    • Confirm that on the toolbar for each file there is an action to "Mark as Reviewed"
  • Click on the "Mark as Reviewed" action
    • Confirm that the file is getting collapsed
    • Confirm that the action becomes toggled and the tooltip changes
  • Expand the file, and make a change to the contents manually
    • Confirm that the "reviewed" state gets unset and the action does not appear as toggled
  • Undo the change that you have done manually
    • Confirm that the "reviewed" state gets set and the action appear as toggled
  • Send another prompt that would make some changes to the same file
    • Confrim that at the end of the turn the "reviewed" state gets unset and the action does not appear as toggled
  • Switch to the "Uncommitted Changes" changes in the "Changes" view while the multi-file diff editor is opened
    • Confirm that the "Mark as Reviewed" action does not appear in the multi-file diff editor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions