Skip to content

Conversation

@yonie
Copy link

@yonie yonie commented Dec 26, 2025

Adds new ThunderAI summary functionality that generates concise summaries for email messages using the existing ThunderAI infrastructure. Includes a new content script that creates a summary pane in the message display, associated CSS styling, and backend integration for AI summary generation.

Example:
image

The feature shows a loading indicator while generating the summary and falls back to showing truncated message content if the AI generation fails.

Add new ThunderAI summary functionality that generates concise summaries
for email messages using the existing ThunderAI infrastructure. Includes
a new content script that creates a summary pane in the message display,
associated CSS styling, and backend integration for AI summary generation.

The feature shows a loading indicator while generating the summary and
falls back to showing truncated message content if the AI generation fails.
- Add new preference option to enable automatic AI summarization
- Update all localization files with new preference text
- Implement preference check in message display script
- Add default preference setting in options configuration
- Include preference toggle in options UI

This adds a user-configurable option to automatically generate and display AI summaries when viewing email messages, with appropriate warnings about data transmission to AI services.
@micz
Copy link
Owner

micz commented Dec 26, 2025

Thank you for your idea! I added issue #580 to track this feature.
Your PR could be a starting point, but this feature should be more configurable with a settings page like the ones for antispam and tagging (see here), also to manage a special prompt for this feature.

There should be an option to activate the feature and a safe toggle if the user is using the ChatGPT Web Interface.

Edit: I see now that you pushed a commit while I was writing this comment, I was referring to the first commit.

@micz
Copy link
Owner

micz commented Dec 26, 2025

I forgot to mention that probably it could be better to not get the content from the message, but directly from the background script using the standard Thunderbird messages API.
It should be tested which approach is better.

@micz
Copy link
Owner

micz commented Dec 29, 2025

Consider that I'm working on a dynamic settings system to improve adding new settings.
The code is in this branch https://github.com/micz/ThunderAI/tree/dynamic_api_settings.
It's better to wait for that work to be completed before adding a new special prompt page.

@micz
Copy link
Owner

micz commented Dec 29, 2025

Consider that I'm working on a dynamic settings system to improve adding new settings.

The changes have been merged in v3.8.0 with PR #590.

@yonie yonie marked this pull request as draft January 2, 2026 20:52
@micz
Copy link
Owner

micz commented Jan 2, 2026

Please, consider that has been added PR #597 that adds the page for the special prompts.
It works with the context menu, but I think that the final form of this feature could be with option to choose between automatic summary or manual summary.

@micz micz mentioned this pull request Jan 2, 2026
@yonie
Copy link
Author

yonie commented Jan 2, 2026

I am pulling in the 3.8.0 branch into this one. I also will extend localization to prevent hardcoded English strings.

…pport and fix error display

- Introduce localized UI strings for auto-summary feature across multiple languages
- Standardize error messages and implement consistent error propagation
- Refactor summary generation to align with v3.8.0 settings architecture
- Enhance user experience with localized loading and error states
- Improve code reliability through structured error handling and cleanup
@yonie yonie changed the base branch from main to v3.8.0 January 2, 2026 21:47
@yonie yonie marked this pull request as ready for review January 2, 2026 22:26
- Add new translation strings for auto summary feature in bg, de, el, eo, es, fr, hr, hu, it, pl, pt-br, pt, ro, sk, and sv locales
- Include preference options, title, status messages, and prompt templates
- Remove unnecessary description fields from existing strings
@yonie
Copy link
Author

yonie commented Jan 2, 2026

I have completed rebasing to 3.8.0 and can confirm the feature now works with the new configuration system. i have extended localization as well.

@micz
Copy link
Owner

micz commented Jan 2, 2026

Please be aware that I'm working on #102 at the moment in the 3.8.0 branch and the code is not yet finalized in every aspect when using custom prompts with specific API.

yonie added 5 commits January 2, 2026 23:40
… locales

- Add new translation strings for auto summary feature
- Include title, generating, failed, and prompt messages
- Remove unnecessary description fields from en locale
- Add missing auto summary preference strings for zh_Hant locale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants