Persist Toolbar chat's expand mode
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3573913. -->
Reported by: [bbruno](https://www.drupal.org/user/3691195)
Related to !1229
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>[One-line status update for stakeholders]<br>
<strong>Short Description: </strong>[One-line issue summary for stakeholders]<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In this issue: <a href="https://www.drupal.org/project/ai/issues/3518356">https://www.drupal.org/project/ai/issues/3518356</a>, it was introduced the possibility of expanding the Chat width for easier readability. Either by making it grow sideways or having a full-screen modal.</p>
<p>One of the comments that came up is that the 'expand' mode should perhaps persist between usage, as a user using the expanded version of the chat would likely want to keep that much working space in-between browsing without having to constantly re-expand the chat. <strong>Note:</strong> This would not apply to the 'full screen' option</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Store in the browser's localStorage the current state of expansion. on page load if expand mode is on - immediately render the chat in its expanded version,</p>
<p>[ ] AI Assisted Issue<br>
This issue was generated with AI assistance, but was reviewed and refined by the creator.</p>
<p>[ ] AI Assisted Code<br>
This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p>
<p>[ ] AI Generated Code<br>
This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p>
<p>[ ] Vibe Coded<br>
This code was generated by an AI and has only been functionally tested.</p>
issue