Skip to content

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

@ANogin

Description

@ANogin

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • 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...

Metadata

Metadata

Assignees

Labels

area:toolsbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions