[BUG] bypassPermissions not working on Windows/WSL — still prompts for Edit/Write

Resolved 💬 4 comments Opened Mar 23, 2026 by dementy-fut Closed Apr 18, 2026

Bug Description

defaultMode: "bypassPermissions" in ~/.claude/settings.json is ignored when running Claude Code on Windows with WSL paths (\wsl.localhost\Ubuntu\...). Claude Code still prompts for permission on every Edit() and Write() call.

Environment

  • OS: Windows 11 Pro (10.0.26200) with WSL2 Ubuntu
  • Claude Code: latest
  • Working directory: \wsl.localhost\Ubuntu\home\dev\Code

Configuration (~/.claude/settings.json)

{
  "permissions": {
    "defaultMode": "bypassPermissions"
  },
  "skipDangerousModePermissionPrompt": true
}

Steps to Reproduce

  1. Set defaultMode: "bypassPermissions" in global settings
  2. Open Claude Code in a WSL directory
  3. Ask Claude to create or edit any file
  4. Permission prompt appears despite bypass mode

Related Issues

  • #18187 (closed as NOT PLANNED by bot, no Anthropic response)
  • #29574 (duplicate)

View original on GitHub ↗

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