-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
feat: restoring project from snapshot on reload #444
Conversation
@thecodacus Nice work!! Honestly I already thought that this functionality existed mostly already where you could go back to previous conversations and it would already have everything loaded in. Is that not the case? When you went back to a previous chat it wouldn't actually load in the context from the file system? Also, I would suggest changing the messaging from "Restoring chat from snapshot" to "Restored chat from snapshot", otherwise it seems like it is processing infinitely since the message never goes away. Maybe you could also have the code window open automatically as well? Thank you for the work you're putting into this man! |
hi @coleam00 , the purpose of this pr is to add snapshots. the currently when you reload a chat all the actions are run again from scratch, and executes all the action in sequence to reconstruct the file system. and that includes all the writes and rewrites of the files. But with this the file system is restored and from a snapshot in one message at the start. but when you restore from snapshot naturally llm looses all the actions from the pasts and looses the files context. this change also considers that it retains the project content as context after restoring |
@wonderwhy-er , please test this you will love it. it retains the chat context even after snapshot. but i might have to refactor some of the stuff i wrote here, what to get review before that |
Will try, holidays not letting me to computer |
I can ttest this out if it hasn't been tested yet? |
When will this PR be tested and added to the core implementation? |
I will be adapting this to the latest codebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me as described. Dont see any errors so far.
Add Chat History Snapshot System
Overview
This PR introduces a snapshot system for chat history, allowing the restoration of previous chat states along with their associated file system state. This feature improves the user experience by enabling users to resume work from specific points in their conversation history while maintaining context and workspace consistency.
Key Changes
1. Chat History Management
2. File System Integration
3. UI Updates
4. Storage System
Technical Details
Snapshot System
Message Handling
Testing
Migration Impact
Future Improvements
Preview
Snapshot.demo.mp4