Merged
Conversation
added 3 commits
July 25, 2025 01:02
This commit introduces a worker-based architecture for managing chat history to prevent blocking the main VS Code thread. It enhances the AgentService with asynchronous chat history operations using SQLite for persistent storage. - Implemented ChatHistoryWorker for non-blocking database operations - Integrated ChatHistoryWorker into AgentService for managing chat history - Added support for saving, retrieving, clearing, and adding chat messages asynchronously - Implemented optimized retrieval of recent chat history with limit - Added background cleanup operations for old chat history across all agents - Included comprehensive tests for worker operations, concurrency, and error handling - Added documentation for the new architecture in
…Documentation Refactor ChatHistoryWorker to use an enum (ChatHistoryWorkerOperation) for operation types, improving type safety. Add comprehensive JSDoc-style comments to ChatHistoryWorker, detailing its purpose, architecture, and usage. Create new documentation files (SETTIMEOUT_EXPLANATION.md and WEBWORKER_BLOCKERS_VSCODE.md) to explain the rationale behind using setTimeout and the limitations of web workers in VS Code extensions.
- Integrates WASM SQLite for chat history storage via chat history worker. - Adds sql-wasm.wasm file. - Implements fallback mechanism to file storage for backward compatibility. - Optimizes recent chat history retrieval using the worker.
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.
No description provided.