Skip to content

Duo quick chat does not respond in Web IDE

MR: No MR

Description

Duo Quick Chat does not work in the Web IDE environment.

As a user, I want Quick Chat to work in the Web IDE so that I can use Duo features inline.

Steps to Reproduce

  1. Navigate to a file in gitlab.com.
  2. Select 'Edit -> Open in Web IDE'.
  3. Select some text.
  4. Right click and select "GitLab Duo Chat -> Open Quick Chat".
  5. Type a command, e.g. /explain.
  6. Submit the request (Cmd + Return).

Expected Outcome

Quick chat should respond

Actual outcome

  1. Quick chat does not respond
  2. The following error appears in the console: Firefox can’t establish a connection to the server at wss://gitlab.com/-/cable.
  3. A network error appears: GET wss://gitlab.com/-/cable with the response 404 and NS_ERROR_WEBSOCKET_CONNECTION_REFUSED
  4. Sometime later, another error appears (possibly unrelated)
Uncaught (in promise) Error: An unknown error occurred. Please consult the log for more details.
<anonymous> ../../../vs/workbench/api/worker/extensionHostWorker.js:103
h ../../../vs/workbench/api/worker/extensionHostWorker.js:103
workbench.web.main.js:1655:13606

GitLab Workflow logs

Click to expand
2025-01-16T17:14:40:298 [error]: Duo Chat: error connecting to cable socket, refreshing feed via https.
Vs@https://gitlab.com/assets/webpack/gitlab-vscode/0.0.1-dev-20250109231656/vscode/extensions/gitlab-vscode-extension/browser.js#vscode-extension:199:3531
On@https://gitlab.com/assets/webpack/gitlab-vscode/0.0.1-dev-20250109231656/vscode/extensions/gitlab-vscode-extension/browser.js#vscode-extension:199:3838
handleClose@https://gitlab.com/assets/webpack/gitlab-vscode/0.0.1-dev-20250109231656/vscode/extensions/gitlab-vscode-extension/browser.js#vscode-extension:199:18167
emit@https://gitlab.com/assets/webpack/gitlab-vscode/0.0.1-dev-20250109231656/vscode/extensions/gitlab-vscode-extension/browser.js#vscode-extension:199:3279
onclose@https://gitlab.com/assets/webpack/gitlab-vscode/0.0.1-dev-20250109231656/vscode/extensions/gitlab-vscode-extension/browser.js#vscode-extension:199:29928
anonymous/sR</initListeners/this.ws.onclose@https://gitlab.com/assets/webpack/gitlab-vscode/0.0.1-dev-20250109231656/vscode/extensions/gitlab-vscode-extension/browser.js#vscode-extension:199:29600

Screenshots

Screenshot_2025-01-16_at_17.26.24

Acceptance Criteria

  • The bug is fixed