45d166ff6a7211bb5edc0d87e7eb539d8267fb6f
When a textarea is removed from the DOM before the autocomplete clone-positioning logic runs, parentElement is null and MutationObserver.observe throws. This can happen when extensions abort generation early (via generate_interceptor) and the textarea is torn down before autocomplete finishes setup. Add a null check so the observer is only attached when the parent still exists. Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
SillyTavern
LLM Frontend for Power Users
Resources
- GitHub: https://github.com/SillyTavern/SillyTavern
- Docs: https://docs.sillytavern.app/
- Discord: https://discord.gg/sillytavern
- Reddit: https://reddit.com/r/SillyTavernAI
License
AGPL-3.0
Languages
JavaScript
88.7%
HTML
8.1%
CSS
2.8%
Less
0.3%