Do not override the agent when using an assistant as agent
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3569906. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !1149
>>>
<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>Right now we have a weird antipattern where, when you create an assistant it will also create a copied agent. The problem is that we have a lot of overlap between the two forms, but the assistant form is trying to be easier by using less tools. This came from a mix of trying to have the assistant being similar to 1.0.x, but also using agents.</p>
<p>This is great for a certain kind of consumers, but developers goes crazy about this, because if you then go to the agent and create the perfect agent, those settings are overwritten the next time you save the assistant.</p>
<p>We should add so that when an assistant is saved, it will only affect the RAG tool and the subagents.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<ul>
<li>Try adding an assistant.</li>
<li>Try changing tools on the agent.</li>
<li>Try editing the assistant.</li>
<li>The extra tools that you can add on the agent, is gone.</li>
</ul>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>Make sure that only the tools for RAG and sub agent are edited.</li>
<li>Make sure that the specific settings for the tools are not touched.</li>
<li>Unless its the index for the RAG or when removing a subagent - if a subagent is removed, all settings should be removed.</li>
<li>
</ul>
<h3 id="summary-ai-usage">AI usage (if applicable)</h3>
<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