-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Maintain Conversation Tree State on Refresh or Share #1397
Conversation
… last branch when editing a user message or retrying an assistant message.
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
> > Co-authored-by: KENNETH <KENNETH.RAMOS95@GMAIL.COM> Co-authored-by: EDUARDO <EDUARDOROCHAPERSONAL2@GMAIL.COM
Co-authored-by: Kenneth Ramos <kenneth.ramos95@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
Getting the latest changes from the parent repository
Getting latest changes from remote
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csum.edu>
Updated with parent repository
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
Wow really appreciate this! Will take a deep look into this 🔥 |
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu>
Hi, I believe we fixed the lint issues. Could the tests be ran again to make sure everything is working? |
Hi, I'm a little confused as to why we're getting those errors as we didn't edit those files and when I run npm run lint in my vs code I'm not getting errors. I pretty much just ran npm run format and npm run lint then fixed the few errors that appeared. Should running npx prettier --plugin-search-dir . --write . and npx eslint . --fix be the solution to fixing the warnings? |
Did you merge latest main? We updated quite some deps so it's possible the linting got changed, I can run it for you no worries |
Oh, thank you! |
Great work! |
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.
Looking good! I think in local storage we should keep a record of the shape {[convId]: leafId}
so we can keep track of all conversations in memory. can be a second PR though so will merge this one in the meanwhile!
* Saving and reloading the current tree on page refresh * Saving and reloading the current tree on page refresh / Moving to the last branch when editing a user message or retrying an assistant message. * Update Reload the current tree state on page refresh * updated updateCurrentIndex function * Update updateCurrentIndex Function * Persist current tree in navigation/shared conversations v1 Co-authored-by: Kenneth Ramos <kenneth.ramos95@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu> * Removed uncessary comment. Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu> * Added enhance import and document focus fix. Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csum.edu> * Fixed code to have updated formatting and LoadEvent type in page.ts Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu> * run formatting * simplify pr --------- Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu> Co-authored-by: Eduardo Rocha <rocha092@csum.edu> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
Added code that maintains the current conversation tree state when refreshing the page or sharing the conversation.
Addresses issue #878
Not sure if this is the most efficient solution but will edit based on feedback.
Co-authored-by: Long Dao [hailongdao1017@gmail.com]
Co-authored-by: Eduardo Rocha [rocha092@csusm.edu]