Bug Description
When a user presses the Esc key to stop recording in voice dictation mode during an active chat, it interrupts the ongoing stream.
Expected Behavior
Pressing Esc should only stop the voice recording without affecting the active chat stream.
Actual Behavior
Pressing Esc stops the recording but also interrupts the stream in the active chat.
Steps to Reproduce
- Start a chat session
- Initiate voice dictation mode
- While the stream is active, press Esc to stop recording
- Observe that the stream is interrupted