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

Copilot Chat not work

Open luoyanzecs opened this issue 9 months ago • 20 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

OS/Web Information

  • Web Browser: edge
  • Local OS: Windows
  • Remote OS: ghcr.io/coder/code-server:4.98.2-39
  • Remote Architecture:
  • code-server --version: 4.98.2 e2c489dd00f163b1a8d959965b0c30c1a978a080 with Code 1.98.2

Steps to Reproduce

  1. docker run ghcr.io/coder/code-server:4.98.2-39
  2. http://localhost:8080, or use caddy provide https connection
  3. open copilot chat

Expected

copilot chat should has a welcome page and reminder user to login.
get a correspond when send message to copilot.

Actual

white page.

Logs

2025-03-20 17:58:36.149 [info] [Window] Resolving connection token (localhost)...
2025-03-20 17:58:36.155 [info] [Window] Resolved connection token (localhost) after 6 ms
2025-03-20 17:58:36.160 [info] [Window] Creating a socket (renderer-Management-bdd5ed4d-96a4-4e93-88b1-3457d2ff0f44)...
2025-03-20 17:58:36.319 [info] [Window] Creating a socket (renderer-Management-bdd5ed4d-96a4-4e93-88b1-3457d2ff0f44) was successful after 158 ms.
2025-03-20 17:58:36.930 [info] [Views] Added views:workbench.panel.chat.view.copilot in workbench.panel.chat
2025-03-20 17:58:36.930 [info] [Views] Added views:workbench.panel.chat.view.edits in workbench.panel.chatEditing
2025-03-20 17:58:36.930 [info] [Views] Added views:outline in workbench.view.explorer
2025-03-20 17:58:36.930 [info] [Views] Added views:workbench.view.search in workbench.view.search
2025-03-20 17:58:36.930 [info] [Views] Added views:workbench.scm in workbench.view.scm
2025-03-20 17:58:36.930 [info] [Views] Added views:workbench.panel.markers.view in workbench.panel.markers
2025-03-20 17:58:36.930 [info] [Views] Added views:workbench.panel.output in workbench.panel.output
2025-03-20 17:58:36.930 [info] [Views] Added views:terminal in terminal
2025-03-20 17:58:36.930 [info] [Views] Added views:timeline in workbench.view.explorer
2025-03-20 17:58:36.946 [info] [Views] Added views:workbench.explorer.fileView in workbench.view.explorer
2025-03-20 17:58:36.970 [info] [Window] Creating a socket (renderer-ExtensionHost-7f1efdee-e107-4c33-926d-9a657fe4df52)...
2025-03-20 17:58:37.051 [info] [Window] [Service Worker] registered
2025-03-20 17:58:37.319 [info] [Window] Creating a socket (renderer-ExtensionHost-7f1efdee-e107-4c33-926d-9a657fe4df52) was successful after 349 ms.
2025-03-20 17:58:37.413 [info] [Views] Added views:workbench.debug.welcome in workbench.view.debug
2025-03-20 17:58:37.607 [info] [Views] Added views:~remote.forwardedPorts in ~remote.forwardedPortsContainer
2025-03-20 17:58:38.600 [info] [Views] Added views:workbench.panel.repl.view in workbench.panel.repl
2025-03-20 17:58:39.564 [info] [Window] Updating additional builtin extensions cache
2025-03-20 17:58:54.043 [error] [Window] No default agent contributed: CodeExpectedError: No default agent contributed
    at dXe.U (https://localhost/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2005:25295)
2025-03-20 17:59:08.083 [error] [Window] No default agent contributed: CodeExpectedError: No default agent contributed
    at dXe.U (https://localhost/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2005:25295)
2025-03-20 17:59:08.096 [error] [Window] Edit session was created for a non-existing chat session: 0f68dc55-5541-42a7-b40c-7ccfc5823895: CodeExpectedError: Edit session was created for a non-existing chat session: 0f68dc55-5541-42a7-b40c-7ccfc5823895
    at _Xe.u (https://localhost/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2032:16709)
    at _Xe.createEditingSession (https://localhost/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2032:16541)
    at async Ute.value (https://localhost/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:841:27388)
2025-03-20 18:01:29.700 [info] [Views] Added views:workbench.views.extensions.remote.installed,workbench.views.extensions.web.installed,workbench.views.extensions.popular,extensions.recommendedList in workbench.view.extensions
2025-03-20 18:01:29.702 [info] [Views] Removed views:workbench.views.extensions.popular from workbench.view.extensions
2025-03-20 18:01:30.067 [info] [Views] Added views:workbench.views.extensions.popular in workbench.view.extensions
2025-03-20 18:01:33.225 [info] [Views] Removed views:extensions.recommendedList,workbench.views.extensions.popular,workbench.views.extensions.web.installed,workbench.views.extensions.remote.installed from workbench.view.extensions
2025-03-20 18:01:33.233 [info] [Views] Added views:workbench.views.extensions.marketplace in workbench.view.extensions
2025-03-20 18:01:33.234 [error] [Network] #2: https://open-vsx.org/vscode/gallery/extensionquery - error POST Canceled
2025-03-20 18:01:45.526 [info] [Views] Removed views:workbench.views.extensions.marketplace from workbench.view.extensions
2025-03-20 18:01:45.540 [info] [Views] Added views:workbench.views.extensions.remote.installed,workbench.views.extensions.web.installed,workbench.views.extensions.popular,extensions.recommendedList in workbench.view.extensions
2025-03-20 18:11:57.642 [error] [Window] No default agent contributed: CodeExpectedError: No default agent contributed
    at dXe.U (https://localhost/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:2005:25295)
2025-03-20 18:11:57.642 [error] [Window] Cannot read properties of undefined (reading 'sessionId'): TypeError: Cannot read properties of undefined (reading 'sessionId')
    at RL.Hb (https://localhost/stable-e2c489dd00f163b1a8d959965b0c30c1a978a080/static/out/vs/code/browser/workbench/workbench.js:841:40399)
2025-03-20 18:13:23.070 [info] [Window] Extension host (Remote) is unresponsive.
2025-03-20 18:13:23.076 [info] [Window] Extension host (Remote) is responsive.
2025-03-20 18:13:28.064 [info] [Window] Extension host (Remote) is unresponsive.
2025-03-20 18:14:23.081 [info] [Window] Extension host (Remote) is responsive.
2025-03-20 18:14:28.060 [info] [Window] Extension host (Remote) is unresponsive.
2025-03-20 18:15:13.502 [info] [Window] Extension host (Remote) is responsive.

Screenshot/Video

Image

Does this bug reproduce in native VS Code?

No, VS Code on windows works.

Are you accessing code-server over a secure context?

  • [x] I am using a secure context.

Notes

I try to use caddy provide a secure connection over https, but it dose not work yet.

luoyanzecs avatar Mar 20 '25 10:03 luoyanzecs

The use of the GitHub Copilot extension is restricted to Microsoft VS Code.

Cross reference:

  • https://github.com/coder/code-server/issues/6520#issuecomment-1809235131

benz0li avatar Mar 20 '25 21:03 benz0li

~Is this now enforced starting with 4.98? I'm using Github Copilot w/o issues in 4.96.x. and 4.97.1.~ so just did a quick minimal test and 4.98.2 with GH-cp 1.291.0 and GH-cp-chat 0.25.1 seems to be working for me

kovjanos avatar Mar 24 '25 19:03 kovjanos

I am not sure it is actually enforced, it more just means we are unable to provide debugging support since we cannot legally install it. 😢

code-asher avatar Mar 26 '25 21:03 code-asher

That said, maybe this is a different issue, with all the Extension host (Remote) is unresponsive logs. Will reopen. Are other extensions working?

code-asher avatar Mar 26 '25 21:03 code-asher

Image

It's all greyed out for me

bilogic avatar Apr 12 '25 05:04 bilogic

Any news about this? I also have grayed menu for copilot

RomanSonnik avatar Apr 27 '25 19:04 RomanSonnik

Are y'all also seeing Extension host (Remote) is unresponsive in the logs or something else?

code-asher avatar Apr 28 '25 22:04 code-asher

Are other extensions working?

Other extensions are working properly.

benz0li avatar Apr 29 '25 03:04 benz0li

Same issue here: the Copilot menu is grayed out, so I'm using the Continue plugin for now.

longfei-zhang avatar May 08 '25 03:05 longfei-zhang

Same issue here: the Copilot menu is grayed out, so I'm using the Continue plugin for now.

Hi @longfei-zhang, I tried to install Continue plugin on code-server (last versions of both), and I can't login to continue.dev. Are you using local llm only ?

nums avatar May 12 '25 07:05 nums

Github Copilot is now open source, so I assume an issue should be created on that extension's repository, correct?

Daxiongmao87 avatar Jun 04 '25 17:06 Daxiongmao87

@Daxiongmao87

Wow, big news. [...] Looks like they plan on integrating it into VS Code core, so there is likely nothing we will have to do, but we should keep an eye on this and test when it comes out.

Originally posted by @code-asher in #7153

benz0li avatar Jun 04 '25 17:06 benz0li

Github Copilot adds a new icon ontop right of the command center. this is not visible in code-server. The icon below in status is now gone.

cycl0ne avatar Jun 16 '25 10:06 cycl0ne

I installed Github Copilot Chat v0.29.0 on code-server v4.102.0-rc.1 and got the following error when I tried to login: command 'workbench.action.chat.triggerSetup' not found. Really confusing...

geekifan avatar Jul 16 '25 02:07 geekifan

I have copilot 1.343.1676 , copilot-chat 0.29.0 installed and working on v4.102.0-rc.1.

They're installed on the command line before code-server starts up: code-server --install-extension copilot-chat.vsix --force

vaibhav-dhawan avatar Jul 17 '25 17:07 vaibhav-dhawan

I have copilot 1.343.1676 , copilot-chat 0.29.0 installed and working on v4.102.0-rc.1.

They're installed on the command line before code-server starts up: code-server --install-extension copilot-chat.vsix --force

which version of 0.29.0? they release a 0.30. which is again incompatible.. and the version i got 0.29.2025070102 -> shows error: Prerelease Version, not working.. and do you have the new copilot icon on the top bar with this version?

Even tried the last 0.28, same error:

Image

cycl0ne avatar Aug 06 '25 06:08 cycl0ne

I have copilot 1.343.1676 , copilot-chat 0.29.0 installed and working on v4.102.0-rc.1. They're installed on the command line before code-server starts up: code-server --install-extension copilot-chat.vsix --force

which version of 0.29.0? they release a 0.30. which is again incompatible.. and the version i got 0.29.2025070102 -> shows error: Prerelease Version, not working.. and do you have the new copilot icon on the top bar with this version?

Even tried the last 0.28, same error:

Just plain 0.29.0 - but they do keep updating the extension. The trick is to install the target version of vscode matching the code-server version (102.0 in this case), then install the extensions there and check the version that gets installed in vscode, match the same on code-server

Oh also UI elements dont pop up, but you can still sign in to copilot/open chat etc via command menu

vaibhav-dhawan avatar Aug 06 '25 08:08 vaibhav-dhawan

Just plain 0.29.0 - but they do keep updating the extension. The trick is to install the target version of vscode matching the code-server version (102.0 in this case), then install the extensions there and check the version that gets installed in vscode, match the same on code-server

Oh also UI elements dont pop up, but you can still sign in to copilot/open chat etc via command menu

yes this is so sad. i really love my virtual development server in the net.. maybe its time to search for alternatives now.. this hassle with copilot sucks

checked, there is no 0.29.0 in archive: https://www.vsixhub.com/history/143611/

too bad..

cycl0ne avatar Aug 06 '25 10:08 cycl0ne

Just plain 0.29.0 - but they do keep updating the extension. The trick is to install the target version of vscode matching the code-server version (102.0 in this case), then install the extensions there and check the version that gets installed in vscode, match the same on code-server Oh also UI elements dont pop up, but you can still sign in to copilot/open chat etc via command menu

yes this is so sad. i really love my virtual development server in the net.. maybe its time to search for alternatives now.. this hassle with copilot sucks

checked, there is no 0.29.0 in archive: https://www.vsixhub.com/history/143611/

too bad..

It does work fine, you just have to use command menu/keyboard shortcuts instead of a nice copilot button to click:

Image

Try this for copilot-chat and copilot

ref: https://stackoverflow.com/questions/37071388/how-can-i-install-visual-studio-code-extensions-offline/38866913#38866913

vaibhav-dhawan avatar Aug 06 '25 11:08 vaibhav-dhawan

Ok tip from my side. since i updated to the new code-server release today and all was not working againg. export the extension_gallery to the store which normaly will sue you to their TOS and all works well. It seems the versions we get nowadays with all the tricks are "Prerelease Versions" with the nagging screen and not working.

i got it now running with: Identifier github.copilot-chat Version 0.30.1 Last Updated 2025-08-14, 13:47:41

and Identifier github.copilot Version 1.350.0 Last Updated 2025-08-14, 13:47:41

Both Version you wont get with all tricks (and vsix proxies) in the world. And they work now really smoothless with code-server.

cycl0ne avatar Aug 14 '25 11:08 cycl0ne