✨ feat: add batch processing, auto-sort, custom prompt, and debug mode#7
Open
rfiacne wants to merge 6 commits intoNigel1992:mainfrom
Open
✨ feat: add batch processing, auto-sort, custom prompt, and debug mode#7rfiacne wants to merge 6 commits intoNigel1992:mainfrom
rfiacne wants to merge 6 commits intoNigel1992:mainfrom
Conversation
OpenAI-compatible provider: - Custom endpoint support with base URL + model selection - Model dropdown with Fetch Models button - API key optional for local endpoints (no auth required) - max_tokens: 8192 for reasoning models (Qwen3 etc) Debug mode: - Toggle in General Settings (Ctrl+Shift+I to view logs) - Colored console tags: [AutoSort+], [Gemini], [Ollama], [Custom] - apiRequest/apiResponse collapsible groups - Cross-context sync via browser.storage.local Bug fixes: - Provider switch: hide/show correct subsections - Save button state updates on all input changes - Input validation for Ollama and OpenAI-compatible configs
- Extract subject, author, attachments for better AI categorization - Build folder Map to avoid N+1 recursion in batch processing - Cache accounts to avoid N+1 fetching - Parallel auto-sort with provider-based concurrency limit - Gemini rate limit mutex for atomic operations - Add shared tab fetch utility module Bug fixes: - pct undefined crash in batch progress - error message lost in catch block - missing return true for async message handler - message.folder null pointer risk - ollamaNumCtx setting ignored - context menu stale after label changes
81385ab to
b8820b8
Compare
Add Thunderbird _locales/ based internationalization with en and zh_CN translations. All UI text, provider info, badges, and dynamic status messages are now localized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds several features to AutoSort+ Thunderbird extension for improved email sorting workflow (and it is all ai generated, if you didn't notice):
🚀 New Features
1. Batch Processing with Controls
2. Batch Chunk Processing
3. Auto-Sort New Emails
4. Custom Prompt Feature
{labels}for folder list,{email}for email content5. OpenAI-Compatible Provider
/v1/modelsendpoint6. Debug Mode
🐛 Bug Fixes
convertToPlainTextnot being awaited, causing[object Promise]in AI prompts📁 Files Changed