#3568246: fix late chatbot opening on page load
Persist chatbot open state in backend instead of localStorage to ensure it’s applied during initial render and prevent layout shift.
localStorage + JS only runs after the page has loaded, so it will always cause a shift.
Testing Instructions
- Create an Assistant at /admin/config/ai/ai-assistant
- Place the
AI DeepChat Chatbotblock at /admin/structure/block/list/gin - Make sure the Placement field under Styling settings is set to
Toolbar - Open the chatbot using the Chatbot opener button on the top left
- Once opened, refresh the page -> check that the chatbot does not re-open but the page is rather rendered with the appropriate spacing already reserved
Edited by Bruno Bruno