Merged
Conversation
added 7 commits
February 28, 2026 12:35
… management * Introduce in-memory caching for chat history for LLM context. * Preserve and restore in-memory chat history when switching or creating sessions. * Standardize SQLite vector store database path to within workspace or global storage. * Remove LLM instance caching logic from completion factory. * Clear webview messages when a new session is created. * Update webview to display full chat history upon synchronization.
* Introduce Least Recently Used (LRU) caching strategy for chat history entries in . * Optimize session history retrieval by utilizing in-memory cache before database lookup. * Ensure proper cache invalidation when sessions are deleted or expire. * Sanitize new session titles by stripping HTML tags and truncating length.
* Introduce Least Recently Used (LRU) caching strategy for chat history entries in . * Optimize session history retrieval by utilizing in-memory cache before database lookup. * Ensure proper cache invalidation when sessions are deleted or expire. * Sanitize new session titles by stripping HTML tags and truncating length.
* Introduce for managing session-specific LLM history with LRU eviction. * Simplify class by removing chat history specific caching and LRU logic. * Update to utilize for session management. * Add helper methods in to format history for LLM and webview.
…management * Introduce dedicated interfaces for chat messages (Db, LLM, Webview). * Improve type safety in methods using new interfaces. * Allow dynamic configuration of max entries. * Simplify method logic. * Add error handling for loading session history from the database.
…tion * Introduce to for accurate time display. * Refactor to explicitly track and manage the active session ID. * Update session activation and swapping logic to use the new active session management. * Ensure webview preserves and displays original message timestamps.
* Add to retrieve the active session ID for transfer. * Introduce to re-use existing webview and transfer session state. * Preserve session state and avoid full webview re-render when switching models.
Stanley00
pushed a commit
to stanley-fork/codebuddy
that referenced
this pull request
Mar 27, 2026
…sion_management Feature session management
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.