功能建议:为 IM(企业微信)会话支持配置/切换工作目录到自定义路径
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 匿名
**客户端版本**: 0.1.26
---
## 使用场景
通过 IM 通道(如企业微信)发起的会话,其工作目录被固定分配在 C 盘的系统路径下,例如:
```
C:\Users\<用户名>\AppData\Roaming\Cindy\owners\\im-working-dir\wecom-<会话ID>
```
该工作目录由 IM 通道自动分配,**无法在应用内切换/配置到自定义路径**。
用户在桌面端 Cindy 中通过「打开文件夹」选择 D 盘工程目录(如 `D:\WorkSpaces\CindySpace\CindyBOT`)后,桌面会话工作目录会正常切换到该路径;但**企业微信会话的工作目录仍然固定在 C 盘 im-working-dir,不会跟随**。
对于希望通过 IM 远程使用 Cindy、又想把生成文件(代码、文档、构建产物等)落盘到 D 盘大容量磁盘的用户,会造成:
1. 会话产生/可写的文件持续占用 C 盘空间,无法落到自定义目录;
2. 当前会话沙箱限制为只能写入 C 盘工作目录,即使 agent 尝试用绝对路径写 D 盘也会被拦截;
3. 用户希望避免 C 盘空间膨胀,但没有入口配置。
## 诉求
建议为 IM(企业微信等)会话提供可配置工作目录的能力。
## 建议方案
- 在设置或会话属性中,为 IM 会话指定默认/指定工作目录(如 D 盘工程文件夹);
- 新建 IM 会话时允许选择工作目录;
- 或让 IM 会话工作目录跟随应用当前打开的工程文件夹。
这样该会话生成的所有文件即可统一落盘到用户指定的目录。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN
Contributor guide
Research direction
No implementation files or tests are named in the report. Start by locating how IM sessions allocate their working directories and how the desktop “Open folder” selection is handled, then determine which configuration behavior is supported. Done means an IM session can use a user-selected custom path and generated files are written there rather than to the default C: drive directory.
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
- Mostly clear
- Newbie friendliness
- 35/100