Copilot Chat does not work when content exclusion for other repository has been set #159971
Replies: 1 comment 5 replies
-
|
Hi @sebbiKun, Thank you for reporting this issue with GitHub Copilot Chat not working when content exclusion is configured for other repositories. Based on your description, it appears that while Copilot autocompletion correctly respects your content exclusion rules (blocking only the specified repositories while allowing other repositories to work normally), Copilot Chat is being incorrectly blocked across all repositories. The debug log you shared is particularly helpful, as it shows Copilot Chat is incorrectly applying the exclusion rule This appears to be a bug in how Copilot Chat interprets content exclusion rules compared to the autocompletion feature. The two features might be using different parsing mechanisms for the exclusion rules. I've documented this issue and will escalate it to our engineering team for investigation. While we work on a fix, you could try the following workaround:
We appreciate your patience while we investigate this issue. If you discover any additional information or a workaround, please let us know in this discussion thread. Thank you for your detailed report which will help us improve GitHub Copilot. Best regards, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
General
Body
Hi,
We use content exclusion in our organisation to block some repositories which we do not want to allow to work with AI. The configuration looks like this:
For copilot autocompletion this works like intended:
However, copilot chat does not work any more. I looked at the debug log and found the following:
2025-05-22 09:59:18.868 [debug] File /home/sreck/checkout/chair-daemon/src/chaircontroller.h is ignored by content exclusion rule /**/*even though there is no content exclusion rule for the active repository.
As I said auto completion works as intended so our content exclusion rules seem to be correct.
When I remove the rules Copilot Chat works again.
Is there anything I am missing? Do autocompletion and chat use a different parsing for the rules?
Thanks for your time
Beta Was this translation helpful? Give feedback.
All reactions