AI assistant: Convert agents select list to hidden field
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3528326. --> Reported by: [prashant.c](https://www.drupal.org/user/1936756) Related to !648 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>While the AI agents module is enabled while adding/editing an AI assistant, the first field you will see is a select list "Use agent as assistant"</p> <p>Per slack conversation:<a href="https://drupal.slack.com/archives/C0803LX4536/p1749020868928549?thread_ts=1749015523.730669&amp;cid=C0803LX4536">https://drupal.slack.com/archives/C0803LX4536/p1749020868928549?thread_ts=1749015523.730669&amp;cid=C0803LX4536</a></p> <p>This should be a hidden field.<br> <img src="https://www.drupal.org/files/issues/2025-06-04/Add-an-AI-Assistant-Drush-Site-Install-06-04-2025_11_05_AM_0.png" alt="AI assistant add/edit"></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ul> <li>Enable the AI Chatbot module</li> <li>Enable the AI Agents module</li> <li>Add/Edit an AI assistant from /admin/config/ai/ai-assistant</li> </ul> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Change the field "Use agent as assistant" to a hidden field. </p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Implement and test.</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>"Use agent as assistant" select list should not be visible.</p> <h3 id="summary-api-changes">API changes</h3> <p>NA</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>NA</p>
issue