Duo chat not available when git remote is different server to that which extension is authenticated against

Checklist

Summary

Duo Chat doesn't work with a folder whose git remote is different from the GitLab server that the extension is authenticated against.

Steps to reproduce

  1. Authenticate the extension with gitlab.com (both OAuth and PAT flow show the same issue) with an account that is enabled for Duo features
  2. Clone a project hosted on a different GitLab server
  3. Open this project in vscode

What is the current bug behavior?

Duo chat features are unavailable (including the main pane and editor context menu options).

Note that duo chat features are available if the remote is removed (e.g. close vscode, run git remote rm origin, reopen vscode)

N.B. I haven't tested this scenario against a SM server with Duo enabled

What is the expected correct behavior?

Duo features should be available.

Relevant logs and/or screenshots

CleanShot 2024-08-29 at 09.15.57.png

CleanShot 2024-08-29 at 09.15.35.png

CleanShot 2024-08-29 at 09.15.18.png

gitlab-workflow.log

gitlab-language-server.log

CleanShot 2024-08-29 at 08.36.07.png

Possible fixes

TBD