-
Notifications
You must be signed in to change notification settings - Fork 221
Add chat history management functionality #203
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
Open
rex993
wants to merge
2
commits into
morphik-org:main
Choose a base branch
from
rex993:pr/ui-chat-management
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
- Merge latest core/api.py from main branch preserving ProfilingMiddleware - Add chat rename and delete API endpoints (PUT/DELETE /chats/{chat_id}) - Implement database methods for chat conversation management - Add ChatSidebar dropdown menu with rename/delete options - Update useChatSessions hook with rename/delete functionality - Store chat names as metadata in conversation history - Add confirmation dialogs for rename and delete operations - Increase sidebar width and improve layout for menu buttons 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Bug Report
Comments? Email us. |
…oring 🔍 **Enhanced Search Features:** - Add search input to ChatSidebar with clean UI (search icon + clear button) - Implement hybrid search approach: immediate local filtering + debounced API search - Create comprehensive search API endpoint GET /chats/search with intelligent scoring - Add database search method with advanced relevance scoring system ⭐ **Intelligent Scoring System:** 1. Chat name exact match: 150 points (highest priority) 2. Chat name partial match: 100 points 3. Recent message content (last 3): 15 points each 4. Recent message content (last 10): 10 points each 5. Older message content: 5 points each 🎯 **Multi-Layer Search Coverage:** - Chat names for immediate identification - Message content search across full conversation history - Agent data/display objects search for AI responses - Smart fallback to message preview generation 🚀 **Performance & UX Optimizations:** - Debounced search with 300ms delay to prevent API overload - Immediate local filtering for instant user feedback - Recency bias: recent messages scored higher for relevance - Limited matches per conversation (max 3) to prevent over-scoring - Separate allSessions and sessions state management - Comprehensive error handling with graceful fallbacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Bug Report
Comments? Email us. |
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.
UPDATE: