[VS Code, WebIDE]: Quick chat not working in WebIDE

Summary

The Quick chat is unable to get response

This issue happens both in current WebIDE (using VS Code Extension 5.17.0) and also when I locally use main extension branch in WebIDE

production latest main branch locally
webide-quick-chat-prod web-ide-quick-chat-local

Steps to reproduce

Try to use quick chat in production

To run the WebIDE locally, do:

  1. Clone https://gitlab.com/gitlab-org/gitlab-web-ide
  2. go to cd gitlab-vscode-extension
  3. checkout main git checkout main
  4. install dependencies npm i
  5. go back to gitlab-web-ide folder cd ..
  6. run the local development version of WebIDE yarn run start:example
  7. open http://localhost:8000
  8. add your personal access token and enable code suggestions
    • image

What is the current bug behavior?

The chat doesn't work

Relevant logs and/or screenshots

image

It looks like the issue is caused by a failure to establish a web socket connection.

Possible fixes

Edited by Tomas Vik