There should be some safety check before automatically adding files in the .gitignore to the chat

While trying to ask something generic (without referring to a specific file), I failed to notice that I had the .env file up in my context. Thus it sent my private keys through the prompt, despite that file being included in the .gitignore. I get that sometimes you want to include files from the .gitignore, but it definitely should not happen automatically. In other words, it should only happen when adding files manually with the + button, not simply by having the file open in the editor.