Task: Implement automatic opening and closing of the chat widget

Implement automatic opening and closing of the chat widget

27.06.2026haih agent

The widget has 3 states: 1. Closed - only the button at the bottom is visible 2. Open - opened in base size (on mobile it's full-page, on desktop it's a small window) 3. Expanded to full window - essentially only on desktop.

And there are two small issues here.

1. On mobile, the open widget is always full-screen, and if the chat contains links to other pages, the user clicks the link, the page changes, but they don't see it. We need to close the widget by default.

2. When we type something and send it, on desktop it's a small window and the user might not see that there is an "Expand to full window" button. So we need to forcibly expand it upon sending.