huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
6.84k stars 970 forks source link

Persist current tree in navigation/shared conversations #878

Open nsarrazin opened 4 months ago

nsarrazin commented 4 months ago

Would be nice to be able to keep the current tree in view when refreshing, or sharing a conversation. Currently it gets reset to the first children at every branching.

I think the navigation persistance could be done using sveltekit snapshots. We just need a way to represent the current subtree and store it. We could also store this representation when sharing a conversation, to allow sharing a specific subtree.

kramosss commented 3 weeks ago

Hi, I'm working on this.