Skip to content

Copilot Agent cannot execute specific tests #678

@felipecrs

Description

@felipecrs

Describe the bug

The extension is working fine. I can view all my tests and execute them from within the test view. I can also execute specific tests from there.

However, the Copilot Agent is unable to execute specific tests.

The request seems fine, but it always returns after Discovering tests... without executing any test (it works fine when it tries to execute all tests).

Then the Agent fallbacks to executing the test through different means, like using the terminal, which is more error-prone, less deterministic, and far less optimized for Agents.

Reproduction

https://github.com/vitest-dev/vitest/tree/main/examples

Code_7frNYEKJ26.mp4

Output

There is none, see the reproduction above.

Extension Version

1.32.1

Vitest Version

vitest/4.0.5 linux-x64 node-v24.11.0

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions