支持自定义数据存储路径(会话、缓存、聊天记录),允许迁移到非系统盘
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 狗子
**客户端版本**: 0.1.38
---
## 使用场景
Windows 用户通常 C 盘空间有限,Cindy 的会话记录、缓存文件、聊天历史等数据默认存储在 C 盘(如 `AppData\Roaming\Cindy` 目录下),随着使用时间增长会占用大量空间。用户希望将这些数据迁移到 D 盘或其他空间充裕的磁盘。
## 诉求
提供一个设置入口,允许用户自定义以下数据的存储路径:
- 会话数据(对话记录 `dialogues`)
- 缓存文件
- 聊天历史 / 消息数据库
- 其他用户数据(如插件、配置等)
或者至少提供一个「数据目录」的统一设置项,将所有用户数据整体迁移到指定路径。
## 建议方案
1. 在「设置」中增加「数据存储路径」配置项
2. 支持用户选择或输入自定义目录路径
3. 首次更改时可选择自动迁移已有数据到新路径
4. 后续新数据直接写入新路径,不再依赖 C 盘默认位置
---
**版本区域**: CN
**OS**: win32 x64 (10.0.19045)
**界面语言**: zh-CN
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating the settings UI and the code that initializes session, cache, chat-history, plugin, and configuration storage, then determine whether a unified data directory is feasible. Done means users can choose a non-system path, existing data can be migrated, and subsequent data uses the selected location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100