[BUG] Running mvn test -Dtest=SomeFile#someTest Always asks for permission even when allowed permanently.

Resolved 💬 3 comments Opened Aug 16, 2025 by mimkorn Closed Aug 19, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.83
  • Operating System: macOS 15.6 (24G84)
  • Terminal: Terminal app

Bug Description

Whenever the agent decides that it wants to run a test in Maven, if it decides to run a single test, it asks for permission even though running tests has been permanently allowed. So, as not to be asked for permission. I suspect there is an error in evaluating the safety of the command, because I know that some commands will always trigger asking for permission, even though allowed. Running single test should however never be a problem. Running the entire test classes does not ask for permission like that.

Steps to Reproduce

  1. Have a mvn project with a test class with a few tests.
  2. Ask agent to run one of the tests.
  3. Allow permanently and repeat.

Expected Behavior

After allowing should not ask for permission.

Actual Behavior

Asks for permission

Additional Context

The problem with this is that the agent cannot loop on its own without human presence and intervention, because on each attempt of testing it requires permission.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗