vision-agent
vision-agent copied to clipboard
feat(chat): add parent_id to messages for tree navigation
- Introduced
parent_idfield inMessagemodels to establish parent-child relationships between messages. - Updated
ChatHistoryManager,MessageService, and related components to support tree navigation based onparent_id. - Enhanced message listing functionality to allow retrieval of messages in a tree path.
- Added migration script to update existing messages with appropriate
parent_idvalues. - Updated relevant tests and documentation to reflect these changes.