Skip to content
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

save and restore session #50

Open
hemanth opened this issue Oct 23, 2024 · 4 comments
Open

save and restore session #50

hemanth opened this issue Oct 23, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@hemanth
Copy link
Contributor

hemanth commented Oct 23, 2024

It would be beneficial to have APIs that facilitate saving and restoring sessions for multiple use cases where we need the context to be preserved across sessions.

@tomayac
Copy link
Contributor

tomayac commented Oct 23, 2024

Are you thinking of some way to store an AIAssistant session in IndexedDB for example, similar to FileSystemHandle objects?

@hemanth
Copy link
Contributor Author

hemanth commented Oct 23, 2024

Yes @tomayac! Say it is a webapp that needs to maintain the session/state on consecutive visits.

@domenic
Copy link
Collaborator

domenic commented Oct 24, 2024

This is an interesting feature request that makes sense to me. Thumbs-up reactions, or detailed comments explaining how this would benefit specific apps you are building, are appreciated to help prioritize.

I filed #51 as well, which overlaps. #51 is basically more powerful than this feature request, so maybe it is higher priority. But this version is theoretically more performant, since the browser would take care of all the serializing and deserializing behind the scenes.

@hemanth
Copy link
Contributor Author

hemanth commented Oct 25, 2024

Thanks @domenic!

history was the first thing that came to my mind too! Then thought save and restore would be good to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants