# AI Helper прерывает загруженный аудиопоток mp3

**URL:** https://meta.discourse.org/t/ai-helper-interrupting-uploaded-mp3-audio-stream/366817
**Category:** UX
**Tags:** uploads, ai, ai-helper, ux
**Created:** [20.Май.2025 08:27:39 UTC](https://meta.discourse.org/t/ai-helper-interrupting-uploaded-mp3-audio-stream/366817 "2025-05-20T08:27:39Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [26.Май.2025 17:27:37 UTC](https://meta.discourse.org/t/ai-helper-interrupting-uploaded-mp3-audio-stream/366817/9 "2025-05-26T17:27:37Z")

</div>

Привет, @MachineScholar,

Спасибо за обнаружение этой ошибки. Данная проблема теперь решена благодаря этому исправлению:

> <https://github.com/discourse/discourse-ai/pull/1369>
>
> \## :mag: Overview
> When you have a post with audio being played and you open and… close the AI post helper menu, it re-renders the entire post DOM, causing the audio to be interrupted and stop playing.
> 
> The reason for this is because we highlight the selected text when opening the AI post helper menu and we replace the entire post back with the original post HTML when closing the menu. This fix ensures that we do not re-render the entire post DOM and instead only remove the highlighted section that was added.
> 
> \## 🔗 Context
> https://meta.discourse.org/t/ai-helper-interrupting-uploaded-mp3-audio-stream/366817?u=keegan
> 
> \## 📹 Screen Recording
> 
> 
> https://github.com/user-attachments/assets/d028ff5a-8734-46e8-bca4-54f803d3f050
> 
> \_Screen recording doesn't have audio, but you can see the progress bar for the audio continues playing and the showing/hiding of the highlighted text works correctly\_

Пожалуйста, дайте знать, если после обновления Discourse AI у вас всё ещё возникнут проблемы.

---

_[View the full topic](https://meta.discourse.org/t/ai-helper-interrupting-uploaded-mp3-audio-stream/366817)._
