[BUG] Search tool permission check gets confused by ".." while in a subdirectory.

Resolved 💬 4 comments Opened Jul 5, 2025 by ANogin Closed Jan 6, 2026

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.43 (Claude Code)
  • Operating System: Ubuntu 22.04
  • Terminal: VSCode

Bug Description

When Claude Code is working in a subdirectory of the project it has been started in, and then invokes Search(pattern: "whatever", path:"..", include: "whatever"), permission check fires every time, even after selecting "2. Yes, and add [actual directory Claude Code was invoked in] as a working directory for this session"

Steps to Reproduce

Task Claude Code with doing something in a subdirectory, but also where it needs to find resources in files in another part of the tree.

Expected Behavior

Search tool permission check passes without issues.

Actual Behavior

It keeps asking me for permissions...

View original on GitHub ↗

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