Skip to content

Test tool combination approval with Copilot Chat #305635

@alexr00

Description

@alexr00

Refs: #302393 #302411

Complexity: 4

Create Issue


Context

We allow tools to indicate whether they need approval to run, but a tool might have a different effect based on the arguments passed to it. The idea of this feature is to give the extension a way to have approval for a specific tool + arguments combination. The built-in "Run VS Code Command" tool implements this new feature.

Testing

  1. Install latest insiders + Copilot Chat pre-release
  2. If you can, come up with a VS Code command that requires specific arguments to ask Chat to run, and ask Chat to run it. If not, you can use the "Show Search View Results" command as follows:
    a. Search for something in the search view
    b. Keep the search view open
    c. Ask Chat about what's in the search view
  3. Verify that in the dropdown button that, in addition to the usual "approve", "approve in the session", "approve for the workspace", you also have approval "session" and "workspace" options for the specific arguments that the tool was provided.
  4. Verify that the new approval options work as you'd expect.
  5. Verify that you can manage your "combination approvals" in the "Manage Tool Approval" quick pick.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions