Skip to content

Feature session management#328

Merged
olasunkanmi-SE merged 7 commits intomainfrom
feature_session_management
Feb 28, 2026
Merged

Feature session management#328
olasunkanmi-SE merged 7 commits intomainfrom
feature_session_management

Conversation

@olasunkanmi-SE
Copy link
Copy Markdown
Owner

No description provided.

olasunkanmi.raymond 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.
@olasunkanmi-SE olasunkanmi-SE merged commit 64259b7 into main Feb 28, 2026
2 checks passed
@olasunkanmi-SE olasunkanmi-SE deleted the feature_session_management branch March 23, 2026 07:45
Stanley00 pushed a commit to stanley-fork/codebuddy that referenced this pull request Mar 27, 2026
…sion_management

Feature session management
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.

1 participant