Copilot Chat sends full active file even when implicit context is disabled? #198495
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Copilot in GitHub
Body
I am trying to understand whether this is intended behavior or a bug.
I asked Copilot Chat a small Python question and intentionally provided only a tiny function snippet, because the full file is around 2000 lines and not needed for the question.
However, the debug logs show that the request payload still included the active file content as an additional attachment, not just my selected snippet. My relevant settings are:
and the request:
What would be considered better: Having the default as "" or having Optional[str] = None in this case and adding a guard against none?
<attachments>
<attachment id="my_file.py">
Excerpt from my_file.py, lines 687 to 691:
</attachment>
<attachment filePath="./my_file.py">
User's active file for additional context:
The full 2000 line python file.
Am I missing a setting to disable this? I have my file open, but the settings above should prevent it from being sent.
Beta Was this translation helpful? Give feedback.
All reactions