[BUG] Claude code can't change folders or doesn't remember the folders structure
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?
Say you have this project struccture
example_project_folder/
- frontend_folder/
- backend_folder/
you open claude in example_project_folder/
now you tell it
please fix bug foo in @frontend_folder
this will work, now if you tell it
please fix bug in @backend_folder
you can't, when you press the @ symbol, it doesn't detect backend_folder, seems like it does a cd command and stays in the most recent folder it has been to and doesn't have memory of the original project structure, it has to run an ls on example_project_folder to understand the structure
doing a /clear command fixes the issue, so you need to keep clearing the context if you want the auto detection to work
What Should Happen?
I expect everything to work as expected, for claude to have a memory of the structure of the project.
also assume you're working with a new context. clear context. if you press up arrow to get the previous prompt you cant append to it @folder, the @ sysmbol stops working again
Error Messages/Logs
Steps to Reproduce
I already did
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.109
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗