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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal: inline chat widget is not consistently hidden #212672

Closed
bpasero opened this issue May 14, 2024 · 5 comments · Fixed by #212747 or #212831
Closed

Terminal: inline chat widget is not consistently hidden #212672

bpasero opened this issue May 14, 2024 · 5 comments · Fixed by #212747 or #212831
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders terminal-chat Issues related to the terminal chat widget verified Verification succeeded
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented May 14, 2024

For the voice integration to chat, I need to rely on an event when inline chat is hidden. I found that there is a hide method:

However, I see that it is not being called in these cases:

  • open a terminal in panel and start inline chat, start voice chat
  • open another panel so that terminal is hidden
  • 🐛 voice chat does not stop

A similar issue when terminals are in the editor and you open another editor.

Would it be possible for terminal to ensure hide is called in these cases? I have #212653 for then stopping the voice chat session, but it needs to be called.

@bpasero bpasero added the terminal-chat Issues related to the terminal chat widget label May 14, 2024
@meganrogge meganrogge added the bug Issue identified by VS Code Team member as probable bug label May 14, 2024
@meganrogge meganrogge added this to the May 2024 milestone May 14, 2024
meganrogge added a commit that referenced this issue May 14, 2024
@VSCodeTriageBot VSCodeTriageBot added the unreleased Patch has not yet been released in VS Code Insiders label May 14, 2024
@bpasero bpasero reopened this May 15, 2024
@VSCodeTriageBot VSCodeTriageBot removed the unreleased Patch has not yet been released in VS Code Insiders label May 15, 2024
@bpasero
Copy link
Member Author

bpasero commented May 15, 2024

Thanks, but it does not work for me, when this._focusTracker.onDidBlur is called, this._instance.isVisible is still true. I tried this:

  • open a terminal, open inline chat
  • start recording voice (notice on macOS how a new yellow icon appears in the top right indicating audio recording)
  • switch to another panel
  • recording does not stop

@meganrogge
Copy link
Contributor

In the editor, if there's been no response, the inline chat widget hides on blur. If there's been a response, it doesn't hide unless I press escape.

I'll do the same for the terminal.

@bpasero
Copy link
Member Author

bpasero commented May 16, 2024

If I have a chat open in a terminal (panel) and click on another panel, the chat is still not getting hidden, so voice actions continue to work even though not visible.

@VSCodeTriageBot VSCodeTriageBot added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels May 16, 2024
@meganrogge
Copy link
Contributor

That also happens in the chat in the editor, so I was following suit. When I hide the editor by clicking a different one, if there's been a response, the voice actions continue to work even though they're not visible.

chat.mov

@bpasero
Copy link
Member Author

bpasero commented May 16, 2024

Yeah fair, as long as the voice stuff can still be turned off from the opened widget.

@bpasero bpasero added the verified Verification succeeded label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders terminal-chat Issues related to the terminal chat widget verified Verification succeeded
Projects
None yet
4 participants