[BUG] Claude Code prompts me to allowlist the parent directory when the current directory has spaces in it

Resolved 💬 4 comments Opened Jan 18, 2026 by adiabatic Closed Feb 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When I try to do things in a directory with spaces in it, Claude Code gets confused and thinks that the parent directory is the directory that needs permissions.

This appears to be a duplicate of the unfixed and autoclosed #9611.

What Should Happen?

It shouldn't prompt me to allow things in the parent folder (Fonts/). It should prompt me to allow things in the current folder (Abbots Morton Spaceport Mono/).

Error Messages/Logs

Steps to Reproduce

  1. Make a project directory with spaces in it.
  2. Run claude in the directory.
  3. Ask Claude to do stuff in the directory that involves, say, running ls or find or git log.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.12 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

This is what it looks like (which looks like the same issue as #9611):

<img width="805" height="231" alt="Image" src="https://github.com/user-attachments/assets/f9af59ec-1c8a-4e33-913d-a17647b4e5cb" />

View original on GitHub ↗

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