-
Notifications
You must be signed in to change notification settings - Fork 28
Chat history management #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Development
Development
Development
Development
Development
Development
Development
Development
Development
Development
Development
Development
Development
Development
Development
Development
- Introduces to handle database initialization, connection, and management. - Implements logic to create the database file if it doesn't exist. - Implements retry logic with fallback to an in-memory database if the file connection fails. - Removes direct database connection logic from and consolidates it in . - Adds a close method to the DatabaseManager class to properly close the database connection. - Adds a new file dev.db in repo directory
Remove chat history
remove libSQL and replace with sqlite 3
remove publish on save
- Replaces the previous build process with esbuild for faster and more efficient bundling. - Adds esbuild.js to handle bundling of both the VS Code extension and the React webview. - Configures esbuild for production and watch modes. - Implements asset copying from webviewUi/dist/assets to dist/webview/assets. - Updates .vscodeignore to reflect changes in build output and exclude unnecessary files.
feat: Bundle extension and React webview using esbuild
- Introduces ChatHistoryManager to handle conversation history with configurable auto-pruning based on message count, token count, and age. - Adds a database repository for chat history persistence. - Includes configurations for pruning strategies in VS Code settings (chatHistory.*). - Implements methods for initializing, clearing, formatting, and pruning chat history. - Syncs chat history between memory and database to ensure data consistency. - Adds utility methods to estimate token count and add timestamps to messages. - Adds configuration options to disable/enable pruning. - Adds debugging and monitoring tools to inspect the pruning behavior. - Updates BaseWebViewProvider to initialize chat history and use formatted history. - Removes unused event listeners. - Modifies .vscode/launch.json to use dist folder for output files and enable source maps.
- Uploads the git diff between the current commit and the base branch as a workflow artifact. - This allows for easier debugging and analysis of changes introduced by the workflow run.
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.