"Yes, don't ask again" permission patterns not matching similar commands (Windows)

Resolved 💬 3 comments Opened Dec 1, 2025 by damien-rgb Closed Dec 5, 2025

Bug Description

When clicking "Yes, don't ask again" on permission dialogs, the permission is saved to .claude/settings.local.json but does not match subsequent similar commands, causing repeated permission prompts.

Environment

  • OS: Windows 11
  • Claude Code: Latest (VS Code extension)

Steps to Reproduce

  1. Run a command like:

``
cd "d:\Documents\folder" && node script.js "arg1" "arg2"
``

  1. Click "Yes, don't ask again" on the permission dialog
  2. Run a similar command with different arguments:

``
cd "d:\Documents\folder" && node script.js "arg3" "arg4"
``

  1. Permission dialog appears again despite step 2

Expected Behavior

Clicking "Yes, don't ask again" should create a wildcard pattern that matches similar commands, not just the exact command.

Actual Behavior

  • The exact command string is saved to settings.local.json
  • Subsequent similar commands don't match the saved permission
  • User must approve the same type of command repeatedly
  • This blocks automated workflows when user walks away

Additional Context

The settings.local.json file does update (confirmed by file modification time), so permissions are being saved. The issue appears to be with pattern matching, possibly related to:

  • Windows path formats (backslashes, drive letters, case sensitivity)
  • Compound commands with &&
  • Commands with varying arguments

Existing wildcard patterns like Bash(node:*) are in the allow list but don't seem to match compound commands.

Impact

This significantly impacts workflow efficiency. Users cannot leave Claude Code to run tasks autonomously because permission dialogs block execution until manually approved.

View original on GitHub ↗

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