Skip to content

Copilot Chat not work #7274

@luoyanzecs

Description

@luoyanzecs

Is there an existing issue for this?

  • 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 e2c489d 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?

  • I am using a secure context.

Notes

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

Activity

added
bugSomething isn't working
triageThis issue needs to be triaged by a maintainer
on Mar 20, 2025
benz0li

benz0li commented on Mar 20, 2025

@benz0li
Contributor

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

Cross reference:

kovjanos

kovjanos commented on Mar 24, 2025

@kovjanos

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

code-asher

code-asher commented on Mar 26, 2025

@code-asher
Member

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

code-asher commented on Mar 26, 2025

@code-asher
Member

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

bilogic

bilogic commented on Apr 12, 2025

@bilogic
Contributor

Image

It's all greyed out for me

RomanSonnik

RomanSonnik commented on Apr 27, 2025

@RomanSonnik

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

code-asher

code-asher commented on Apr 28, 2025

@code-asher
Member

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

benz0li

benz0li commented on Apr 29, 2025

@benz0li
Contributor

Are other extensions working?

Other extensions are working properly.

longfei-zhang

longfei-zhang commented on May 8, 2025

@longfei-zhang

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

nums

nums commented on May 12, 2025

@nums

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 ?

Daxiongmao87

Daxiongmao87 commented on Jun 4, 2025

@Daxiongmao87

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

benz0li

benz0li commented on Jun 4, 2025

@benz0li
Contributor

@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

cycl0ne

cycl0ne commented on Jun 16, 2025

@cycl0ne

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.

geekifan

geekifan commented on Jul 16, 2025

@geekifan

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...

vaibhav-dhawan

vaibhav-dhawan commented on Jul 17, 2025

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-investigationThis issue needs to be further investigatedtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nums@bilogic@Daxiongmao87@cycl0ne@kovjanos

        Issue actions

          Copilot Chat not work · Issue #7274 · coder/code-server