Switch global context to checkbox on context items
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3564709. --> Reported by: [kristen pol](https://www.drupal.org/user/8389) Related to !32 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>Switch global context to checkbox on context items<br> <strong>Additional Collaborators: </strong> @kristen pol<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>We want to use the context items (content entities) and allow a context item to be marked as global rather than having a separate global context. There isn't a good use case for just having one large global context.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add global context checkbox to context item entity and use that for the agent context selection.</p> <h3 id="summary-remaining-tasks">Target date or deadline</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <ul> <li>Add global checkbox</li> <li>Update agent context selection logic to use the new checkbox</li> <li>Remove old global context</li> <li>Testing and review</li> </ul> <h3 id="summary-ai-usage">AI usage</h3> <p>The code associated with this issue was developed with the use of AI tools.</p> <p>A human worked with the AI tool to:</p> <ul> <li>Define the requirements</li> <li>Spec out the plan and architecture</li> <li>Create the code</li> </ul> <p>The human:</p> <ul> <li>Reviewed the code</li> <li>Manually tested the functionality</li> <li>Requested adjustments from AI</li> <li>Adjust the code themselves when necessary</li> </ul> <p>Issue credit is still relevant for the humans working with AI as they are using AI as a tool and not to do everything for them. It takes human expertise and oversight to use AI to solve these issues efficiently and effectively.</p>
issue