feat: implement memory storage for follow-up questions (#6553) #6554
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.
This PR implements the memory storage feature for follow-up questions as described in issue #6553.
Summary
This feature allows Roo to learn from user decisions when answering follow-up questions, providing more personalized suggestions over time. The implementation stores question-answer pairs in a separate Qdrant collection and uses them to enhance future follow-up question suggestions.
Implementation Details
1. Vector Store Enhancement
QdrantCollectionTypeenum to separate CODEBASE and MEMORY collectionsQdrantVectorStoreto support different collection types with proper collection naming2. Memory Storage Service
MemoryStorageServicefor storing and retrieving Q&A pairsMemoryStorageManagersingleton for service management3. Configuration
memoryStorageEnabledandmemoryStorageAutoApprovesettings to global configuration4. Tool Updates
askFollowupQuestionToolto store memories when enabledaskMemoryAwareFollowupQuestionToolfor memory-aware question generationsearchMemoriesToolfor searching stored memories5. UI Integration
Testing
Screenshots
The feature can be enabled in Settings > Context Management:
Closes #6553
Important
Implements memory storage for follow-up questions using Qdrant collections, with new tools, services, and UI settings for enhanced question handling and configuration.
Qdrantcollections.askMemoryAwareFollowupQuestionToolandsearchMemoriesToolfor enhanced question handling.memoryStorageEnabledandmemoryStorageAutoApproveto global settings inglobal-settings.ts.codebase-index.tsandtool.tsto include new tools and settings.MemoryStorageServiceandMemoryStorageManagerfor managing memory storage.QdrantVectorStoreto handle different collection types.ContextManagementSettings.tsxandSettingsView.tsx.ExtensionStateContext.tsxto manage new settings.QdrantVectorStoreinqdrant-client.spec.tsto ensure correct initialization and handling of collection types.This description was created by
for fc60262. You can customize this summary. It will automatically update as commits are pushed.