Thanks for the added logic sarvjeetsingh. I am unable to make this work on my local installation though, as mentioned above.
Test scenario: - Enable AI CKEditor integration module + AI Provider OpenAI - Add AI button to CKEditor - Enable "Fix spelling" for example - Select a text in CKEditor that needs spelling fixes. - The action gets performed, but my debugger never enters the method `\Drupal\ai\OperationType\Chat\StreamedChatMessageIterator::triggerEvent`