Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline chat widget: show / hide issues #212780

Open
bpasero opened this issue May 15, 2024 · 0 comments
Open

Inline chat widget: show / hide issues #212780

bpasero opened this issue May 15, 2024 · 0 comments
Assignees

Comments

@bpasero
Copy link
Member

bpasero commented May 15, 2024

Background

In inline chat, there are 2 chat widgets, the one showing initially ("lightweight") and the other when a response comes ("heavy"):

Lightweight:
image

Heavy:
image

In both widgets, a 馃帳 action is provided to start voice chat. When you click it, the icon animates and on macOS you see the yellow indicator in the up-right corner:

image

In addition, with text-to-speech integration, responses can be read aloud, which is indicated by another animation:

image

In the code that deals with starting speech-to-text and text-to-speech sessions, I want to make sure to stop the session when chat hides. For that I rely on ChatWidget.setVisible() calls here:

setVisible(visible: boolean): void {

Issue

In my testing, I do not see a call to ChatWidget.setVisible() when I close the "heavy" inline chat box, while it works fine for the lightweight one.

To reproduce:

  • add a breakpoint to inlineChatContentWidget.hide()
  • bring up inline chat in an editor
  • close the "lightweight" one and notice how hide is called and proceeds to this._widget.setVisible(false);
  • bring it up again and ask a question to get "heavy" inline chat
  • click the "X" button to close it
  • 馃悰 hide is called, but immediately returns because this._visible is false

I wonder if for the transition from "lightweight" to "heavy", a call to show is missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants