[Bug] Permission system misinterprets `$` in file paths as shell variables

Resolved 💬 4 comments Opened Mar 23, 2026 by avshalomt2 Closed Apr 21, 2026

Bug Description
we use a framework (TanStack Router/Start) that's based on '$' in filenames, e.g. <gitroot>/webapp/src/routes/$tenantNonce/devices/$deviceId.overview.tsx.
Claude Code permission system behaves really weird about that - it sometimes prints 'Yes, and do that as well for files in devices/' (because it misinterprets git root because of the $?), and also requires much more permission approval since it thinks it's shell expansion (which i get that is risky), but the model knows it's not - it creates
commands like grep -ro 'webapp/src/routes/$tenantNonce/devices' ... or grep "something/\$param/..." - so the permissions system (which is good that isn't LLM) is unaware of.

Can you improve that?

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.81
  • Feedback ID: deffc55e-463c-4de7-95dd-5b56587203e7

View original on GitHub ↗

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