ThunderAI fails to read email body on Thunderbird 145: “Missing host permission for the tab” / “Receiving end does not exist”
The problem
I am using Thunderbird 145.0 on Windows, together with the latest public version of ThunderAI. All prompts appear correctly in the UI, but none of them execute when selecting a message in the inbox.
ThunderAI cannot retrieve the message body. Every attempt to run a prompt triggers the same error.
This issue is happenning in Thunderbird 145. (Addon says it's compatible with Thunderbird 115+)
Ran some screenshots through ChatGPT for solutions and he suggests that:
This may be caused by the new Message Reader WebView sandbox, which blocks content script injection and tab-level host permissions required by ThunderAI.
Which Operative System are you using?
Windows 11
Which version of Thunderbird are you using?
145.0
Which version of ThunderAI has the issue?
3.7.5
Which integration are you using?
OpenAI ChatGPT API
Anything in the Thunderbird console logs that might be useful?
ExtensionError: Missing host permission for the tab
Error executing action for menu item 2-reply_technical(auto-language): Error: Could not establish connection. Receiving end does not exist.
getMailBody moz-extension://f8c80af5-f862-4624-a912-3ccc45d534f8/js/mzta-menus.js:97
Additional information
No response
I'm not able to replicate the error. May you activate the debug option in the ThunderAI options page, clear the console, try again and then post the full log here? Thank you.
Are you using an EWS native account with an Exchange server?
Are you using an EWS native account with an Exchange server?
Hi, thanks for the answer
Yes, using thunderbirds native ews on an Office 365 account
I'm not able to replicate the error. May you activate the debug option in the ThunderAI options page, clear the console, try again and then post the full log here? Thank you.
I'll do this tomorrow, when back in the office. Cheers
I was able to replicate the error, there is no need to send more logs, it only happens with EWS accounts. I've filed a bug for Thunderbird: https://bugzilla.mozilla.org/show_bug.cgi?id=2002416
Thank you.
The fix should be released in Thunderbird 147.