Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@keegangeorge
Copy link
Member

Previously, when we added smooth streaming animation to summarization (#778) we used the same logic and lib we did for AI Bot. However, since AiSummaryBox is an Ember component, the direct DOM manipulation done in the streamer (SummaryUpdater) would often result in issues with summarization where sometimes summarization updates would hang, especially on the last result. This is likely due to the DOM manipulation being done in the streamer being incongruent with Ember's way of rendering.

In this PR, we remove the direct DOM manipulation done in the lib SummaryUpdater in favour of directly updating the properties in AiSummaryBox using the componentContext. Instead of messing with Ember's rendered DOM, passing the updates and allowing the component to render the updates directly should likely prevent further issues with summarization.

The bug itself is quite difficult to repro and also difficult to test, so no tests have been added to this PR. But I will be manually testing and assessing for any potential issues.

@keegangeorge keegangeorge merged commit 37c2930 into main Oct 21, 2024
5 checks passed
@keegangeorge keegangeorge deleted the decouple-dom branch October 21, 2024 16:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants