Visual Studio 2022 (v17.12.5) Cody (v0.2.0) - none of the login methods work

After Cody installed (Windows Server 2019), I open the Cody chat and see login page with options:

Enterprise:

  • Continue with a URL

Free or Pro:

  • GitHub
  • GitLab
  • Google

When I click Guthub I’m redirected to sourcegraph.com and I can see that new token is created, but Cody is not authenticated in VS.

None of the authentication methods worked (including Continue with URL + Access token)

Here are the logs from Output:Cody:

19:36:30.534: [ProcessId:29772] [ThreadId:1] Info [Create] Version: 0.2.0.0 (x64) Agent:vscode-v1.54.0 Node:20.12.2 Release build
19:36:30.612: [ProcessId:29772] [ThreadId:1] Info [InitializeServices] Visual Studio version: 17.12.5 (Enterprise)
19:36:31.300: [ProcessId:29772] [ThreadId:38] Info [CreateConnector] Process agent connector created
19:36:31.346: [ProcessId:29772] [ThreadId:38] Info [CreateAgentService] A connection with the agent has been established.
19:36:35.162: [ProcessId:29772] [ThreadId:33] Info [Initialize] Agent initialized.
19:36:35.162: [ProcessId:29772] [ThreadId:33] Warn [OnAgentInitialized] Authentication failed. Please check the validity of the access token.

I can login and work with Cody from VSCode on the same pc without problem.

Hey @almarax

Thank you for reporting the issue. Cody in Visual Studio is still in an early experimental stage.

If you don’t mind, please fill out a bug report here and the dev team can better track them.

Sorry for the inconvenience.