fix(chat):catch streaming error in webide to not crash chat
Description
At the moment, streaming in Web IDE does not work. However, there might be cases when streaming there is still enabled (the "gitlab.featureFlags.chatStreaming"
flag in the settings.json
). But having that makes chat unusable never returning any responses.
This MR addresses this problem by defaulting Web IDE to work as if streaming has not been enabled. This approach allows us to enable the feature flag by default to get streaming working in VSCode while not breaking Web IDE.
Related Issues
Related to #1219 (closed)
How has this been tested?
Screenshots (if appropriate):
With the changes, introduced in this MR:
VSCode | Web IDE |
---|---|
streaming-vscode | streaming-webide-not-working |
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Denys Mishunov