"Thinking" status persists after a process terminates with an error
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3548724. -->
Reported by: [narendrar](https://www.drupal.org/user/1730192)
Related to !203
>>>
<h3 id="overview">Overview</h3>
<p><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3531000" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3531000</a></span> added agent polling. This is a follow-up for <a href="https://www.drupal.org/project/canvas/issues/3531000#comment-16280629">#43.4</a>.<br>
When an AI task encounters an error that causes the process to terminate, the frontend UI does not correctly reflect this final state. The main orchestrator agent in the AI panel continues to show a "Thinking" status indefinitely.</p>
<p>This is misleading to the user, as it makes it appear that the AI is still processing the request in the background even though the task has already finished with an error. A clear, final state is needed to indicate that the process has stopped.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<h3 id="ui-changes">User interface changes</h3>
issue