code-server icon indicating copy to clipboard operation
code-server copied to clipboard

⚠️ chat.disableAIFeatures is not work on 4.105.0 code-server

Open SudoUserReal opened this issue 1 month ago • 5 comments

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.

Image

Steps to Reproduce

  1. use code-server in any platform
  2. enable chat.disableAIFeatures = true in setting.json
  3. 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

SudoUserReal avatar Oct 24 '25 08:10 SudoUserReal

But it is ok with version 4.104.3

SudoUserReal avatar Oct 24 '25 09:10 SudoUserReal

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.

Image Image Image

Disabling "AI" should excise it fully.

asimons04 avatar Oct 29 '25 12:10 asimons04

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.

jaredcwhite avatar Oct 31 '25 01:10 jaredcwhite

Same issue here. Copilot appears on the side bar and I have used all chat disabled features.

practicusai avatar Nov 01 '25 08:11 practicusai

Related issue: there's now a "Generate Commit Message" sparkle button in my Source Control message input. How do I turn that off??

jaredcwhite avatar Nov 01 '25 23:11 jaredcwhite

@code-asher 😭

SudoUserReal avatar Nov 11 '25 13:11 SudoUserReal

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.

code-asher avatar Nov 12 '25 20:11 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.

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

SudoUserReal avatar Nov 12 '25 22:11 SudoUserReal

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.

code-asher avatar Nov 14 '25 00:11 code-asher

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.

jonatanschroeder avatar Dec 01 '25 15:12 jonatanschroeder

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

code-asher avatar Dec 01 '25 20:12 code-asher