Plan: Add cancel button to AI Chatbot
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3499583. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The AI Chatbot currently does not follow the similar UX design as popular chatbots where you can cancel the request in the middle of it.</p>
<p>While Deepchat seems to <a href="https://deepchat.dev/docs/interceptors/#requestInterceptor">support</a> it, without a common UI element for it, this will also require the possibility to revert things like agent changes, so it might need some testing or planning. Currently the revert only happens with premature destruction, errors or certain logical cases.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Research what is needed both on the Chatbot and the assistants api to add a cancel button.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>A design/grahpics/ux for a cancel button - should most likely be the send button like on other popular AI Chatbots.</p>
issue