Show progress when executing prompts
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3531000. -->
Reported by: [narendrar](https://www.drupal.org/user/1730192)
Related to !109 !1395 !1282 !1180
>>>
<p>--- AI TRACKER METADATA ---<br>
<strong>Update Summary: </strong>Integrate incremental agent loop execution in XB AI<br>
<strong>Check-in Date: </strong>MM/DD/YYYY (US format) [When we should see progress/get an update]<br>
<strong>Due Date:</strong> MM/DD/YYYY (US format) [When the issue should be fully completed]<br>
<strong>Blocked by:</strong> [#XXXXXX] (New issues on new lines)<br>
<strong>Additional Collaborators:</strong> @username1, @username2<br>
AI Tracker found here: <a href="https://www.drupalstarforge.ai/" title="AI Tracker">https://www.drupalstarforge.ai/</a><br>
--- END METADATA ---</p>
<h3 id="overview">Overview</h3>
<p>Taking reference from <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3527874" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3527874</a></span>, update the existing approach of receiving the entire response at once.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<ul>
<li>Replace the current approach of waiting for the full response with incremental loop execution.</li>
<li>Update <code>XbBuilder::render</code> to run one loop at a time, persist agent state, and return partial results including tool usage.</li>
<li>Update <code>AiWizard.jsx</code> to consume these incremental updates, visualizing progress and tool calls in real-time.</li>
<li>Automatically trigger subsequent loop calls based on tool invocation.</li>
<li>Do not store intermediate steps in the chat history on reload.</li>
</ul>
<h3 id="ui-changes">User interface changes</h3>
<p>Triggering steps will appear progressively in the chat box.</p>
> Related issue: [Issue #3528549](https://www.drupal.org/node/3528549)
> Related issue: [Issue #3527874](https://www.drupal.org/node/3527874)
> Related issue: [Issue #3542051](https://www.drupal.org/node/3542051)
> Related issue: [Issue #3543377](https://www.drupal.org/node/3543377)
> Related issue: [Issue #3547993](https://www.drupal.org/node/3547993)
> Related issue: [Issue #3530701](https://www.drupal.org/node/3530701)
issue