chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

Maintain Conversation Tree State on Refresh or Share

Open kramosss opened this issue 1 year ago • 5 comments

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 [[email protected]] Co-authored-by: Eduardo Rocha [[email protected]]

kramosss avatar Aug 07 '24 17:08 kramosss

Wow really appreciate this! Will take a deep look into this :fire:

nsarrazin avatar Aug 07 '24 18:08 nsarrazin

Hi, I believe we fixed the lint issues. Could the tests be ran again to make sure everything is working?

kramosss avatar Aug 08 '24 17:08 kramosss

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?

kramosss avatar Aug 08 '24 19:08 kramosss

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

nsarrazin avatar Aug 08 '24 19:08 nsarrazin

Oh, thank you!

kramosss avatar Aug 08 '24 19:08 kramosss

Great work! This can help retain the tree state in the chat too, I think? working as tree memory? as refresh resets the tree to branch 1/incorrectly.

SvCy avatar Aug 12 '24 07:08 SvCy