There is an issue in agent mode:
If you select part of a code, hit cmd+i to add to chat and use agent mode, it does not respect my selection of code and works on entire file.
Example:
Select a part of code and ask for to “create a documentation for this”.
It will tell you something like “I need to know which specific function you’d like me to document. Let me first check what functions are available in the current file.” and scans the entire and generates a documentation for everything.
This is issue only of Agent mode. It works as expected in Edit or Ask.
Version: 0.46.8