zai-org / zai-org/feedback

[Bug] 修改"数据存储路径"后,非代码库会话(任务)全部丢失

Open
#268 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P1 status: 待评估 type: Bug
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

提交前确认 · Pre-submission checklist
  • 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category

文件 / 项目操作 · File / Project ops

涉及的 Agent 框架 · Agent framework

ZCode Agent(自研)

严重程度 · Severity

影响体验 · Major (功能可用但体验受损 / works but degraded)

复现频率 · Reproducibility

必现 · Always

问题描述 · Description

在设置中把"数据存储路径"改为新目录并重启后,"任务"标签页里的全部会话消失(列表为空)。
这些是非代码库的普通对话会话,此前一直正常显示。

把"数据存储路径"改回原位置、重启后任务立即全部恢复,说明数据本身没有被删除,只是应用在新路径下找不到它们。

复现步骤 · Steps to reproduce
  1. 打开设置,把"数据存储路径"从默认位置改为其他目录(如 D 盘)
  2. 重启 ZCode
  3. 打开"任务"标签页 → 列表为空
  4. 把"数据存储路径"改回原位置,重启后任务全部恢复
期望表现 · Expected behavior

修改"数据存储路径"后,所有本地数据(任务/会话、配置、插件、命令历史等)都应完整迁移到新路径,重启后任务列表与迁移前一致。

实际表现 · Actual behavior

任务列表为空,所有非代码库会话都看不到了;手动把原数据目录下的 .zcode 整个文件夹复制到新路径后,重启依然看不到任何任务,只有把设置改回原路径才能恢复。
推测是应用内部按绝对路径查找任务记录,迁移后记录仍指向旧路径,导致新路径下查询结果为空——仅靠用户手动复制文件无法修复。

ZCode 版本 · ZCode version

3.7.7

设备 / 系统 / 浏览器 · Device / OS / Browser

Windows 11 (10.0.26200)

截图 / 录屏 / 日志 · Screenshots / Recordings / Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Reproduce the Windows 11 steps, then trace the “数据存储路径” setting, local data migration, and task/session lookup, including the .zcode directory behavior. Done means changing the path and restarting preserves tasks, sessions, configuration, plugins, and command history.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.