Missing loading state when quick (slash) command is triggered

When typing a quick command in Duo chat, it renders a loading state:

Screenshot Video
image duo-loading-when-typed

However, when a quick command is trigger via an external button click, the loading state is missing:

Screenshot Video
image duo-no-loading-when-triggered

Expected Workflow

Ex: https://gitlab.com/gitlab-org/gitlab/-/blob/master/jest.config.base.js?ref_type=heads

  1. Click on button
  2. Open duo chat window
  3. Trigger quick command
  4. Loading appears 👈
  5. Display AI response