[BUG] @ mentions don’t show files from directories added via /add-dir
Resolved 💬 2 comments Opened Sep 25, 2025 by wasd96040501 Closed Sep 25, 2025
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 adding a new directory using the /add-dir command in Claude Code, files under that newly added directory are not shown in the file list when using @ mentions.
What Should Happen?
Files from newly added /add-dir paths should appear immediately in the @ mention list without requiring a restart or manual refresh.
Error Messages/Logs
Steps to Reproduce
- Open Claude Code in the terminal (vscode).
- Run the command:
/add-dir <path-to-new-directory>
to add a new directory.
- In the editor, type @ to trigger the file mention list.
- Observe the list of files shown.
Files inside the newly added directory do not appear in the @ mention list.
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
1.0.124
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗