[BUG] Grep/Glob permission dialog shows the search pattern only, with no target path

Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 21, 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 a Grep or Glob call trips the permission gate, the dialog displays only the pattern (e.g.
EntityType, **/EntityModel.java) — no directory or path. The user cannot see what scope
they are approving: a grep of the current folder and a grep of an unrelated drive-wide directory
present identically. Verbatim user reaction from our logs: "There is no directory for these. I
don't understand these prompts."

What Should Happen?

Show the target path (and glob root) in the Grep/Glob permission dialog, as the file-tool dialogs do.

Error Messages/Logs

Steps to Reproduce

  1. Grep a pattern in a directory outside the allowed working directories → the permission dialog

shows the pattern only.

  1. Compare with a Read prompt on the same directory, which does show the path.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Desktop 1.20186.0.0 (Code tab)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗