DuoChat: make sure GraphQL subscription is only subscribed when DuoChat is opened

When DuoChat is enabled, it subscribes to to the aiCompletionQuery on every page load. This needs to be adjusted to only subscribe when DuoChat is opened.

  • this will require a loading state to load the history on opening DuoChat
  • don't forget how this works in the extensions.