Copilot Chat does not work with Coder v4.103+
Is there an existing issue for this?
- [x] I have searched the existing issues
OS/Web Information
- Web Browser: Brave
- Local OS: macOS
- Remote OS: Debian
- Remote Architecture: x86_64
-
code-server --version: 1.102.3 6f3d0a7e5ae5f6623e1963e96adabc3287386006 x64
Steps to Reproduce
- Run code-server 0.103.0+.
- Install Copilot Chat extension (0.30+ can be installed from Marketplace, but not on 4.102.3 — only via VSIX).
- Try to use Copilot Chat (tested with 0.29.1 and 0.30+).
Expected
- Copilot Chat should either:
- Continue working on 4.103.0+ as it did before, or
- Fail with a clear error instead of hanging.
Actual
- On 4.103.0+, Copilot Chat 0.29.1 no longer works:
- No requests go through.
- Output panel does not show fetched model metadata.
- Copilot Chat displays "Working..." indefinitely.
Logs
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
- [x] I am using a secure context.
Notes
No response
I think it is an extension issue. Do you see any logs in the browser console? When I installed the extension I got Chat model provider uses UNKNOWN vendor copilot. I think the chat extension might require a second Copilot extension which is not available on Open VSX.
Although, you did say it worked before, which means it might be a different problem, or maybe they split up the extension. Either way it does seem more likely to be an extension issue at first glance.
same error
Just to clarify: On code-server v4.102.3 both Copilot Chat 0.29.1 and the latest Copilot (1.372.0 via VSIX) work fine. On code-server v4.103.0+, Copilot Chat 0.29.1 stops working, and 0.30+ can be installed from the Marketplace but also doesn't function as expected, it just hangs on the first request and now even displaying option to chose models in a dropdown.
That’s why I wondered if there might have been a breaking change between VS Code 1.102.x and 1.103.x that affects how the extension integrates, rather than it being purely an extension issue.
I totally understand it may be on the extension side, but since AI agent features are becoming more important, it might be worth checking whether there is something code-server-specific in play here.
Yeah it could be something in code-server, we do have some patches that could be related. I wish we could reproduce with an extension that was publicly available though, from what I understand the Copilot extension is still not available outside the Microsoft marketplace and installing it into code-server is a breach of the license.
I also see this error; the stack trace indicates it is the chat extension trying to do some auth. Not sure what this module is or why it is missing.
Failed to load MSAL binary: Error: Cannot find module './msal-node-runtime
Require stack:
- /usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js
- /usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js
at Function.<anonymous> (node:internal/modules/cjs/loader:1365:15)
at t._resolveFilename (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:209:22931)
at defaultResolveImpl (node:internal/modules/cjs/loader:1021:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1026:22)
at Function.<anonymous> (node:internal/modules/cjs/loader:1175:37)
at e._load (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:391:5984)
at t._load (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:209:22649)
at r._load (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:201:25645)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.<anonymous> (node:internal/modules/cjs/loader:1445:12)
at Module.require (/home/coder/.local/share/code-server/extensions/github.copilot-chat-0.31.0-universal/dist/extension.js:322:9438)
at require (node:internal/modules/helpers:135:16)
at 7247 (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:231595)
at n (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559353)
at 9020 (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:526997)
at n (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559353)
at 6244 (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:215768)
at n (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559353)
at 3226 (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:128999)
at n (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559353)
at 2583 (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:105051)
at n (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559353)
at 8428 (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:452014)
at n (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559353)
at 5256 (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:172886)
at n (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559353)
at /usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559720
at Object.<anonymous> (/usr/lib/code-server/lib/vscode/extensions/microsoft-authentication/dist/extension.js:2:559827)
at Module._compile (node:internal/modules/cjs/loader:1688:14)
at Object..js (node:internal/modules/cjs/loader:1820:10)
at Module.load (node:internal/modules/cjs/loader:1423:32)
at Function.<anonymous> (node:internal/modules/cjs/loader:1246:12)
at e._load (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:391:5984)
at t._load (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:209:22649)
at r._load (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:201:25645)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.<anonymous> (node:internal/modules/cjs/loader:1445:12)
at Module.require (/home/coder/.local/share/code-server/extensions/github.copilot-chat-0.31.0-universal/dist/extension.js:322:9438)
at require (node:internal/modules/helpers:135:16)
at lJ.Cb (file:///usr/lib/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:240:1816
hm seems to be this one: https://www.npmjs.com/package/@azure/msal-node-runtime?activeTab=dependents which comes with msal-node-extensions. It seems that this module just needs to be provided
my guess is we need to search around the changes regarding the microsoft-authentication extension .. it should normally provide the missing modules.
+1
works again with latest version of code-server (v4.104.1), github copilot (1.370.1783) and github copilot chat (0.31.1). But you have to login on the left side (account bubble down left)
continue.dev and cline stop working after upgrading from 4.100 to 4.104 on Chrome, but Firefox render ui of these extensions properly MacOS
code-server --version
4.105.1 811ec6c1d60add2eb92446161ca812828fdbaa7f with Code 1.105.1
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Latest Chrome Browser Version 141.0.7390.107
Fresh install - latest version, if i click on "Setup Co Pilot"
i get following issue's:
log.ts:460 ERR Cannot read properties of undefined (reading 'response'): TypeError: Cannot read properties of undefined (reading 'response')
at tat.complete (https://dev.********/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:937)
at https://dev.********/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:22095
at rat.bb (https://dev.********/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:22322)
at rat.sendRequest (https://dev.********/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:16815)
at LR.Pc (https://dev.********/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:1748:1418)
error @ log.ts:460
error @ log.ts:565
error @ logService.ts:51
oc @ workbench.ts:121
(anonymous) @ workbench.ts:102
onUnexpectedError @ errors.ts:65
St @ errors.ts:110
(anonymous) @ workbench.ts:95
log.ts:460 ERR command 'workbench.action.chat.triggerSetup' not found: Error: command 'workbench.action.chat.triggerSetup' not found
at CKe.n (https://dev.*******/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:1338:3892)
at CKe.executeCommand (https://dev.*******/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:1338:3824)
error @ log.ts:460
error @ log.ts:565
error @ logService.ts:51
oc @ workbench.ts:121
(anonymous) @ workbench.ts:102
onUnexpectedError @ errors.ts:65
St @ errors.ts:110
(anonymous) @ workbench.ts:95
If i click "send" in the Chat right, i get following Browserlog-Issues:
log.ts:460 ERR Cannot read properties of undefined (reading 'response'): TypeError: Cannot read properties of undefined (reading 'response')
at tat.complete (https://dev.*******/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:937)
at https://dev.*******/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:22095
at rat.bb (https://dev.*******/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:22322)
at rat.sendRequest (https://dev.*******/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:2239:16815)
at LR.Pc (https://dev.*******/stable-811ec6c1d60add2eb92446161ca812828fdbaa7f/static/out/vs/code/browser/workbench/workbench.js:1748:1418)
I am also experiencing the same/similar issue. Seems to be a similar error of https://github.com/microsoft/vscode/issues/254160, which needs the following to fix https://github.com/microsoft/vscode/issues/254401#issuecomment-3154894026. I have not tested this yet, but sharing in case others find it helpful.
I am also experiencing the same/similar issue. Seems to be a similar error of microsoft/vscode#254160, which needs the following to fix microsoft/vscode#254401 (comment). I have not tested this yet, but sharing in case others find it helpful.
Thanks for the tip. Based on that, I've been trying things out for the last 40 minutes.
Summary:
I’ve tested multiple approaches to get GitHub Copilot Chat working under code-server 4.105.1 (VSCode 1.105 core) on Debian 12 — none of them worked. 1.) Using product.overrides.json Created /usr/lib/code-server/lib/vscode/product.overrides.json with the full defaultChatAgent definition (as in microsoft/vscode#254401). → Result: No effect. code-server --verbose shows no mention of overrides being loaded.
2.) Direct Edit of product.json Added the defaultChatAgent section manually to /usr/lib/code-server/lib/vscode/product.json and verified JSON validity with jq. → Result: Still no chat provider registered, Copilot Chat extension fails to initialize.
I use github copilot 1.387.0 and github copilot chat 0.32.3. While the icon at the bottom does not work correctly as seen in other screenshots here, the main functionality works without a problem
I use github copilot 1.387.0 and github copilot chat 0.32.3. While the icon at the bottom does not work correctly as seen in other screenshots here, the main functionality works without a problem
I'm using the following versions:
code-server: v4.105.1
Code: 1.105.1
github.copilot: 1.387.0
github.copilot-chat: 0.32.3
While the main functionality works, there are some broken things I am experiencing. I am unable to change the chat mode (agent/ask/edit). And when creating a new chat, both the chat mode and the model selectors are missing as in @MickLesk's last screenshot. The workaround is that a new chat will use the previous chat's selected model, so either change the model in the last message or send a new message and edit that message to change the model.
The main issue is that even after login, copilot is stuck in a broken setup state. While still mostly useable, this is not ideal. Would appreciate any help in figuring out how to get it fully fixed.
use https://marketplace.visualstudio.com/_apis/public/gallery/publishers/github/vsextensions/copilot/1.388.0/vspackage https://marketplace.visualstudio.com/_apis/public/gallery/publishers/github/vsextensions/copilot-chat/0.32.3/vspackage install vsix
use https://marketplace.visualstudio.com/_apis/public/gallery/publishers/github/vsextensions/copilot/1.388.0/vspackage https://marketplace.visualstudio.com/_apis/public/gallery/publishers/github/vsextensions/copilot-chat/0.32.3/vspackage install vsix
Confirmed these versions of GitHub.copilot and GitHub.copilot-chat .vsix works with code-server version:
1.106.2
904942a1944f66a886b0ec5c0c60f312d559a6e6
Yes, I can confirm those versions work for me as well!
use https://marketplace.visualstudio.com/_apis/public/gallery/publishers/github/vsextensions/copilot/1.388.0/vspackage https://marketplace.visualstudio.com/_apis/public/gallery/publishers/github/vsextensions/copilot-chat/0.32.3/vspackage install vsix
Confirmed these versions of
GitHub.copilotandGitHub.copilot-chat.vsixworks with code-server version:1.106.2 904942a1944f66a886b0ec5c0c60f312d559a6e6
0.33.2 copilot-chat works as well and does not require the copilot extension anymore.