discourse-ai/assets/javascripts/discourse/connectors
Keegan George e264572597
FIX: Closing AI menu stops post audio from playing (#1369)
## 🔍 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
2025-05-26 10:24:06 -07:00
..
admin-dashboard-tabs-after DEV: Bump dependencies and fix linting (#1115) 2025-02-06 17:42:32 +01:00
after-composer-category-input UX: don't show AI suggestions in composer when inputs are disabled (#1331) 2025-05-09 12:34:53 -04:00
after-composer-tag-input DEV: Use existing topic embeddings when suggesting tags/categories on edit (#1189) 2025-03-12 18:52:07 -07:00
after-composer-title-input UX: don't show AI suggestions in composer when inputs are disabled (#1331) 2025-05-09 12:34:53 -04:00
after-d-editor FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
after-search-result-entry DEV: Bump dependencies and fix linting (#1115) 2025-02-06 17:42:32 +01:00
before-create-topic-button DEV: Update linting (#1194) 2025-03-17 15:14:53 +11:00
composer-after-save-or-cancel DEV: Bump dependencies and fix linting (#1115) 2025-02-06 17:42:32 +01:00
composer-fields FEATURE: Allow for persona & llm selection in bot conversations page (#1276) 2025-04-24 11:17:24 -05:00
edit-topic-category__after DEV: Use existing topic embeddings when suggesting tags/categories on edit (#1189) 2025-03-12 18:52:07 -07:00
edit-topic-tags__after DEV: Use existing topic embeddings when suggesting tags/categories on edit (#1189) 2025-03-12 18:52:07 -07:00
edit-topic-title__after DEV: Improve title suggester suggestions when editing topic (#1182) 2025-03-11 11:16:06 -07:00
editor-preview DEV: Bump dependencies and fix linting (#1115) 2025-02-06 17:42:32 +01:00
fast-edit-footer-after DEV: Update linting (#1194) 2025-03-17 15:14:53 +11:00
full-page-search-below-search-header UX: put full page search discoveries in sidebar (#1289) 2025-04-30 12:01:21 -04:00
post-text-buttons FIX: Closing AI menu stops post audio from playing (#1369) 2025-05-26 10:24:06 -07:00
search-menu-before-advanced-search DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
search-menu-initial-options DEV: Bump dependencies and fix linting (#1115) 2025-02-06 17:42:32 +01:00
search-menu-results-top FEATURE: Continue conversation from Discobot discovery (#1234) 2025-04-01 10:22:39 -07:00
split-new-topic-category-after DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
split-new-topic-tag-after DEV: Update eslint config (#917) 2024-11-19 11:57:40 +01:00
split-new-topic-title-after FEATURE: AI suggestion buttons in move-to-topic modal (#360) 2023-12-15 12:11:14 -08:00
topic-list-before-category DEV: Update linting (#1194) 2025-03-17 15:14:53 +11:00
topic-map-expanded-after FEATURE: add participants and invite button to AI conversations (#1354) 2025-05-21 10:27:06 +10:00
topic-map-participants-after FIX: Don't error when navigating from AI Bot topic to regular (#1366) 2025-05-23 13:30:08 -05:00
user-preferences-nav DEV: Bump dependencies and fix linting (#1115) 2025-02-06 17:42:32 +01:00