[BUG] autocomplete closes when typing $ in path

Resolved 💬 2 comments Opened Mar 19, 2026 by esoteloferry Closed Apr 16, 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?

Description:

When using the @ file picker to reference a file, the autocomplete dropdown closes as soon as $ is typed. This makes it impossible to autocomplete into directories that start with $.

This is a problem for projects using TanStack Router (and likely other frameworks) where file-based routing uses $ as the dynamic parameter prefix, e.g.:

src/routes/(app)/$orgSlug/$projSlug/index.tsx

Expected behavior: Autocomplete should treat $ as a normal character and continue showing matching files/directories.

Workaround: Manually type or paste the full file path instead of relying on autocomplete.

What Should Happen?

Autocomplete should treat $ as a normal character and continue showing matching files/directories.

Error Messages/Logs

--

Steps to Reproduce

In a folder, created nested folder src/routes/(app)/$orgSlu/$projSlug
Open claude and :

  1. Start typing @src/routes/(app)/
  2. Autocomplete shows directory listing correctly
  3. Type $ to enter a $-prefixed directory
  4. Autocomplete dropdown immediately closes

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.79

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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