Error with multiple CKEditor actions with ai_observability module installed
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3579545. --> Reported by: [smulvih2](https://www.drupal.org/user/795442) Related to !1331 >>> <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>I'm using Drupal 10.4.7 with drupal/ai 1.2.12. Using the ai_ckeditor sub-module I am getting the following error from multiple AI Tools:</p> <blockquote><p>The website encountered an unexpected error. Try again later.<br> TypeError: Drupal\ai\Event\AiProviderResponseBaseEvent::getOutput(): Return value must be of type Drupal\ai\OperationType\OutputInterface, null returned in Drupal\ai\Event\AiProviderResponseBaseEvent-&gt;getOutput() (line 79 of modules/contrib/ai/src/Event/AiProviderResponseBaseEvent.php).</p></blockquote> <p><strong>Tools affected:</strong></p> <ul> <li>Generate with AI</li> <li>Modify with a prompt</li> <li>Reformat HTML</li> <li>Fix spelling</li> <li>Summarize</li> <li>Translate</li> </ul> <p><strong>Generate with AI</strong><br> <img src="https://www.drupal.org/files/issues/2026-03-16/generate-with-ai.png" alt="Generate with AI"></p> <p><strong>Modify with a prompt</strong><br> <img src="https://www.drupal.org/files/issues/2026-03-16/modify-with-prompt.png" alt="Modify with a prompt"></p> <p><strong>Reformat HTML</strong><br> <img src="https://www.drupal.org/files/issues/2026-03-16/reformat-html.png" alt="Reformat HTML"></p> <p><strong>Fix spelling</strong><br> <img src="https://www.drupal.org/files/issues/2026-03-16/fix-spelling.png" alt="Fix spelling"></p> <p><strong>Summarize</strong><br> <img src="https://www.drupal.org/files/issues/2026-03-16/summarize.png" alt="Summarize"></p> <p><strong>Translate</strong><br> <img src="https://www.drupal.org/files/issues/2026-03-16/translate.png" alt="Tranlsate"></p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>Please provide information like AI modules enabled, which AI provider, browser, etc.<br> Drupal core <code>10.4.7</code><br> Drupal AI <code>1.2.12</code></p> <p><strong>Modules enabled:</strong></p> <ul> <li>ai_automators</li> <li>ai_ckeditor</li> <li>ai</li> <li>ai_observability</li> <li>ai_agents</li> <li>ai_assistant_api</li> <li>ai_chatbot</li> </ul> <p><strong>Provider:</strong><br> <code>ai_provider_azure</code></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <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