coder/code-server

GitHub Copilot Chat: "Sign in" button does not redirect, error

Opened this issue · 10 comments

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows
  • Remote OS : Ubuntu
  • Remote Architecture: amd64

Steps to Reproduce

  1. Open code-server in the browser (e.g., Chrome / Firefox).
  2. Install the GitHub Copilot Chat extension from the Extensions sidebar.
  3. Click on the Sign in button in the Copilot Chat sidebar.
  4. Notice that nothing happens, and the following error is logged in the console:

Expected

  • Clicking on the Sign in button should redirect me to the GitHub authentication page.
  • I should be able to complete the login process and use Copilot Chat normally inside VS Code / code-server.

Actual

  • Clicking on the Sign in button does nothing.
  • No redirection to the GitHub login page occurs.
  • The following error is thrown in the console instead:

Logs

ERR command 'workbench.action.chat.triggerSetupForceSignIn' not found: Error: command 'workbench.action.chat.triggerSetupForceSignIn' not found
    at AGe.n (http://localhost:8080/stable-.../workbench.js:1251:3892)
    at AGe.executeCommand (http://localhost:8080/stable-.../workbench.js:1251:3824)
    at async lXe.open (http://localhost:8080/stable-.../workbench.js:1321:390)
    at async hXe.open (http://localhost:8080/stable-.../workbench.js:1321:1689)

Screenshot/Video

coder-server-issue-copilot.mp4

One thing I noticed is that in Codespaces installing Copilot Chat also installs a second Copilot extension which seems to be missing from Open VSX. Not sure if that is why this command is missing.

@ANGJustinl that issue show how to install the github copilot, I was able to install GitHub Copilot, but I’m unable to sign in—the redirection isn’t happening.

I ran into the same issue with the following versions

code-server 4.103.2
GitHub Copilot Chat: 0.30.2
GitHub Copilot: 1.367.1777

I was able to do the following workaround to log into GitHub and use GitHub Copilot Chat:

Click the profile icon above the gear button in the bottom left. When I click it I get “Sign in with GitHub to use GitHub Copilot” and then another click opens the login workflow.

@benlawson

That really worked for me. Thank you.

I use the latest code-server v4.104.3 with Copilot Chat 0.31.5 and observe the same issue. The described workaround does not work for me, when clicking on the profile icon, I can only see one greyed-out item that I cannot click on.

Image

I use the latest code-server v4.104.3 with Copilot Chat 0.31.5 and observe the same issue. The described workaround does not work for me, when clicking on the profile icon, I can only see one greyed-out item that I cannot click on.

Image

Exact same issue for me on latest version of both

I downloaded the extension manually and installed it via extensions -> install from vix
Download -> https://www.vsixhub.com/vsix/63883/

I was able to login via the Accounts Icon onte left bottom.

It seems Agent mode is not working.

As I understand it, Copilot is closed source and not licensed to run in non-Microsoft builds of VS Code, and using assets from the marketplace in non-Microsoft builds is also a violation of the terms of service, so I am not sure legally if we can make any recommendations here or suggest ways to work around the issue.

We could add a section saying Copilot is not supported or something like that.