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
- Navigate to a file in gitlab.com.
- Select 'Edit -> Open in Web IDE'.
- Select some text.
- Right click and select "GitLab Duo Chat -> Open Quick Chat".
- Type a command, e.g.
/explain
. - Submit the request (
Cmd + Return
).
Expected Outcome
Quick chat should respond
Actual outcome
- Quick chat does not respond
- The following error appears in the console:
Firefox can’t establish a connection to the server at wss://gitlab.com/-/cable.
- A network error appears:
GET wss://gitlab.com/-/cable
with the response 404 andNS_ERROR_WEBSOCKET_CONNECTION_REFUSED
- 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
Acceptance Criteria
-
The bug is fixed