josephrocca / OpenCharacters

Simple little web interface for creating characters and chatting with them. It's basically a single HTML file - no server. Share characters using a link (character data is stored within the URL itself). All chat data is stored in your browser using IndexedDB. Currently supports OpenAI APIs and ~any Hugging Face model.
https://josephrocca.github.io/OpenCharacters
MIT License
364 stars 60 forks source link

Everything just disappeared #61

Open sakatakin opened 1 year ago

sakatakin commented 1 year ago

Like three or two days ago, when I switch back tab to OpenCharacters (opening it from Samsung Tablet using google chrome), it refreshed then all data was lost. Thankfully, I had an export from a month ago and did not do much this month so not a lot lost. But after importing it back, within two minutes it refreshed again and everything disappeared.

Then it happened again just now. I imported one conversation one day ago just to see, and everything was erased again. Did nothing different than days and weeks before, but these happened thrice in a row, so I'm curious. And is it possible to retrieve the data from the browser's local storage and how if possible?

sakatakin commented 1 year ago

Screenshot_20230709-215836_Chrome And just selecting the available ones gives me this text.

josephrocca commented 1 year ago

Sorry about this!

But after importing it back, within two minutes it refreshed again and everything disappeared.

This sounds like there's an error during load that's preventing the threads/characters from being rendered, rather than actually data loss (I should improve the UX here by making sure an error message is always shown when the data doesn't load).

And just selecting the available ones gives me this text.

What do you mean by "just selecting the available ones"? What does "ones" refer to here? And "selecting"?

Is it only with the Samsung tablet that you're having this problem? If you click the trash icon to delete everything, and then re-import that backup file, what do you see? No threads? No error message during import? If you can record a video of the whole process that would be helpful. I just fixed a bug which could be related to this, but it's unlikely, since you would have seen an error message popup during import (check that you're not blocking popup/alerts).

If you know how to open up Chrome DevTools with your tablet, please do that and look for errors. Otherwise, I think I'll need you to share a thread/backup file that reproduces this (assuming that it can be reproduced on Chrome Desktop or Chrome Android on a phone, since I don't have a tablet).

And is it possible to retrieve the data from the browser's local storage and how if possible?

If the export button isn't working, and you can access DevTools, then you can execute this in your console:

https://github.com/josephrocca/OpenCharacters/issues/23#issuecomment-1493469184

But we should be able to get to the bottom of why the export button isn't working if you can provide a .json file that reproduces this issue.