Skip to content

[VS Code] Duo chat displaying incorrect status after authentication removed

Checklist

Summary

When Duo is not authenticated the Duo Chat status incorrectly says it's enabled. Clicking on it then displays an incorrect tool tip which says Code suggestions are disabled because there is no user account.

Steps to reproduce

  • Be authenticated (OAuth) with a valid Duo license
  • Sign out
  • Refresh VS Code
  • Open Duo status menu (bottom blue bar)
  • See Duo Chat status is enabled
  • Click Duo Chat status menu item
  • See tool tip displayed in status bar

What is the current bug behavior?

Menu item: GitLab Duo Chat: Enabled Tool tip: Code suggestions are disabled because there is no user account

What is the expected correct behavior?

Menu item: GitLab Duo Chat: Disabled Tool tip: Duo Chat is disabled because there is no user account

Relevant logs and/or screenshots

From: gitlab-org/editor-extensions/gitlab-lsp#395 (comment 2071196713)

Screenshot_2024-08-23_at_6.04.27_PM

Possible fixes