{"version":"2.1.317","anchor":"macos-grepglob-opens-the-search-dir-with-o-nofollow-any-and","canonical_anchor":"macos-grepglob-opens-the-search-dir-with-o-nofollow-any-and","heading":"File searches on macOS now refuse to run if the folder is swapped mid-start","tier":"notice","area":"Search","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317\/e\/macos-grepglob-opens-the-search-dir-with-o-nofollow-any-and","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317","markdown":"### File searches on macOS now refuse to run if the folder is swapped mid-start\n\nOn macOS, Grep and Glob open the approved folder, confirm it is the same one, and search inside it, or refuse with an error\n\n**What**\n\nGrep and Glob are the tools Claude uses to search file contents and find files by name. Both run a fast search program called ripgrep. On macOS, when the runtime Claude Code is built on supports it, Claude Code now reopens the folder you approved for the search. It opens it in a way that will not follow symbolic links, which are shortcut files that point somewhere else. It then checks that the opened folder is the same one that was approved and starts ripgrep inside that already-open folder. Before, ripgrep was started at the folder's path, with only a check just before it started.\n\nThe search is refused instead of run in these cases:\n\n- The runtime does not support starting a program inside an open folder. The error points you to `\/bug`.\n\n- Opening the folder fails with an invalid-argument error. The error points you to `\/bug`.\n\n- The folder was moved or replaced while the search was starting. Nothing is searched and you are told to try again.\n\n**Why**\n\nThis closes a gap where a folder could be swapped for a symbolic link to somewhere else in the moment between the check and the search. On some drives or volumes you may now see these refusal errors where searches used to run.\n\n- Area: Search\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}