Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(text-block-view): update text listener registration and text pars…
…ing for assistant messages Previously, the text listener was being added to the `getBlock()` which was causing issues during garbage collection. This commit updates the text listener registration to use `block` directly, ensuring that the listener is properly attached to the correct MessageBlock instance. Additionally, the text parsing for assistant messages has been moved inside the if statement where the role of the message is checked, to prevent unnecessary string conversions.
- Loading branch information