⚠️ chat.disableAIFeatures is not work on 4.105.0 code-server
Is there an existing issue for this?
- [x] I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: MacOSX
- Remote OS: MacOSX
- Remote Architecture: M4 ARM
code-server --version: latest
After setting chat.disableAIFeatures = true in both user and machine and workspace settings , code-server still show side copilot pannel while vscode and github workspace not to do so.
Steps to Reproduce
- use code-server in any platform
- enable chat.disableAIFeatures = true in setting.json
- you can still see the copilot panel and buttons.
Expected
Not show copilot, as same as vscode behavior after chat.disableAIFeatures = true
Actual
you can still see the copilot panel and buttons.
Logs
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
No, this works as expected in native VS Code
Does this bug reproduce in GitHub Codespaces?
No, this works as expected in GitHub Codespaces
Are you accessing code-server over a secure context?
- [x] I am using a secure context.
Notes
No response
But it is ok with version 4.104.3
Can confirm still an issue in 4.105.1
All AI features supposedly disabled but menu options ("Ask @vscode)", "sparkle" buttons, "No AI results available at this time", etc are all still showing.
Disabling "AI" should excise it fully.
Can confirm, this "Build with agent mode" is showing up in my secondary side bar with no apparent way to remove it, even with multiple "chat" settings disabled in the settings JSON.
At least if you add something else, like Open Editors for example, to the secondary sidebar, you can then uncheck Chat to hide it.
Same issue here. Copilot appears on the side bar and I have used all chat disabled features.
Related issue: there's now a "Generate Commit Message" sparkle button in my Source Control message input. How do I turn that off??
@code-asher 😭
I have not looked into it. Do we know if it reproduces with native VS Code web? (code serve-web)
Maybe something we patched broke it, but I am not sure what it could be.
I have not looked into it. Do we know if it reproduces with native VS Code web? (
code serve-web)Maybe something we patched broke it, but I am not sure what it could be.
Does this bug reproduce in native VS Code? No, this works as expected in native VS Code
Does this bug reproduce in GitHub Codespaces? No, this works as expected in GitHub Codespaces
Right, but "native VS Code" in the issue template is meant to refer to desktop/Electron VS Code. I should add web as a separate entry in the template to make it clear which one is being tested.
I tried building code-server with VS Code 1.106.0 and it seems to work so looks like an upstream bug that should be fixed once we get updated.
I just tested with 4.106.2 and it seems to work. The only minor inconvenience is that, if a user uses "Ctrl-Shift-P" then types "Chat", the "Chat: Use AI features with Copilot for free" command immediately removes that setting from the JSON file. In other words, the chat is not shown by default, but trying to explicitly use chat will enable AI with minimal friction. While this is not ideal in my case, I can live with that, particularly since this is not that different than having the user explicitly change the setting. My use-case is to provide a controlled VSCode environment for student assessments where I don't want students to access AI, and I already block network access anyway (the purpose of hiding AI is to avoid confusion, the network blocking does the actual work), so this is not a big deal in my own case.
Thank you for confirming! I will go ahead and close the issue.
It would be nice if the setting also disabled the commands. I searched around on https://github.com/microsoft/vscode to see if anyone has requested that, but I did not find anything that mentions the commands specifically. This is at least tangentially related though: https://github.com/microsoft/vscode/issues/246041