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

[Request] 将本地聊天记录存储到指定目录 #1547

Closed
zhairuoxun opened this issue Mar 12, 2024 · 18 comments · Fixed by #2556 or #2901
Closed

[Request] 将本地聊天记录存储到指定目录 #1547

zhairuoxun opened this issue Mar 12, 2024 · 18 comments · Fixed by #2556 or #2901
Labels
🌠 Feature Request New feature or request | 特性与建议 released
Milestone

Comments

@zhairuoxun
Copy link

🥰 需求描述

希望能够优化聊天记录的本地存储与备份,实现可以自己指定聊天记录的存储目录

🧐 解决方案

有一次浏览器出了问题,清空了所有Cookies,然后再登陆网站发现之前所有的聊天记录都不见了!这样让我觉得自己的聊天记录非常不安全。如果可以自己指定本地聊天记录文件的存储目录,而非用Cookies存储,数据可能会更加稳定不易丢失。

📝 补充信息

我知道可以用备份功能实现,但比起每次导出备份然后再导入,显然直接存储在指定的,不会被轻易删除的目录更加安全。

@zhairuoxun zhairuoxun added the 🌠 Feature Request New feature or request | 特性与建议 label Mar 12, 2024
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

It is hoped that the local storage and backup of chat records can be optimized, so that you can specify the storage directory of chat records yourself.

🧐 Solution

Once there was a problem with the browser and I cleared all the cookies. Then I logged in to the website and found that all the previous chat records were gone! This makes me feel that my chat history is very unsafe. If you can specify the storage directory for local chat history files instead of using cookies to store them, the data may be more stable and less likely to be lost.

📝 Supplementary information

I know it can be achieved using the backup function, but compared to exporting the backup each time and then importing it again, it is obviously more secure to store it directly in a specified directory that will not be easily deleted.

@lobehubbot
Copy link
Member

👀 @zhairuoxun

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Mar 12, 2024

清空 cookies 不会删除历史记录的

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Clearing cookies will not delete history

@zhairuoxun
Copy link
Author

清空 cookies 不会删除历史记录的

您好!非常感谢您百忙之中的回复!

我确认了一下,确实是我疏忽了,我不仅清空了cookies,还清空了站点数据。所以我的描述并不准确。

不过我仍然认为 ** 可以自己指定聊天记录的存储目录 ** 对于我来说非常实用,因此建议开发组加入这个功能,希望可以考虑采纳,辛苦你们了,感谢你们开发了这么棒的项目!

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Clearing cookies will not delete history

Hello! Thank you very much for your reply despite your busy schedule!

I confirmed it, and it was indeed my negligence. I not only cleared the cookies, but also cleared the site data. So my description is not accurate.

However, I still think that ** being able to specify the storage directory of chat records ** is very practical for me, so I recommend that the development team add this feature, and I hope it can be considered for adoption. Thank you for your hard work, and thank you for developing such a great project!

@arvinxx
Copy link
Contributor

arvinxx commented Mar 12, 2024

不过我仍然认为 ** 可以自己指定聊天记录的存储目录 ** 对于我来说非常实用,因此建议开发组加入这个功能

我们后续会支持同步方案 ( #1525 ) 。但是指定存储目录这个需求在浏览器端实现应该是不太现实的

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


However, I still think that ** being able to specify the storage directory of chat records ** is very practical for me, so I recommend that the development team add this feature

We will support synchronization scheme in the future (#1525). However, it may not be realistic to specify the storage directory on the browser side.

@zhairuoxun
Copy link
Author

不过我仍然认为 ** 可以自己指定聊天记录的存储目录 ** 对于我来说非常实用,因此建议开发组加入这个功能

我们后续会支持同步方案 ( #1525 ) 。但是指定存储目录这个需求在浏览器端实现应该是不太现实的

好的,我了解了,期待同步功能,感谢你们的付出!~

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


However, I still think that ** being able to specify the storage directory of chat records ** is very practical for me, so I recommend that the development team add this feature

We will support synchronization scheme in the future (#1525). However, it may not be realistic to specify the storage directory on the browser side.

Okay, I understand, looking forward to the synchronization function, thank you for your efforts! ~

@ccdanpian
Copy link

请教一下,有的时候反应特别慢,感觉应该主要出现在新建对话和进入历史对话时,和这个存储有关系吗?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I would like to ask, sometimes the response is very slow. It seems that it should mainly appear when creating new conversations and entering historical conversations. Is it related to this storage?

@arvinxx arvinxx added this to the LobeChat 1.0 milestone Apr 3, 2024
@Lockeysama
Copy link

不过我仍然认为 ** 可以自己指定聊天记录的存储目录 ** 对于我来说非常实用,因此建议开发组加入这个功能

我们后续会支持同步方案 ( #1525 ) 。但是指定存储目录这个需求在浏览器端实现应该是不太现实的

我使用的一个开源笔记本软件 Logseq 的 Web 端好像看到过这个实现,如果后续有计划的话,可以参考下这个👍🏻

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


However, I still think that ** being able to specify the storage directory of chat records ** is very practical for me, so I recommend that the development team add this feature

We will support synchronization scheme in the future (#1525). However, it may not be realistic to specify the storage directory on the browser side.

I seem to have seen this implementation on the web side of an open source notebook software Logseq. If you have any plans in the future, you can refer to this 👍🏻

@lobehubbot
Copy link
Member

@zhairuoxun

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@arvinxx
Copy link
Contributor

arvinxx commented Jun 18, 2024

服务端数据库配置指南:https://lobehub.com/zh/docs/self-hosting/advanced/server-database

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Server database configuration guide: https://lobehub.com/zh/docs/self-hosting/advanced/server-database

@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 1.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 released
Projects
None yet
5 participants