Repository navigation
删除 Bot 无二次确认也无恢复路径,instructions 会随删除丢失 #517
patscoffee
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我觉得并不算是Bug,提交在Discussion。
What happened? / 发生了什么?
在 Bot 列表中删除 Bot 后,条目和该 Bot 的 instructions 立即被移除,过程中没有确认弹窗,也没有撤销入口。
删除后
state.json中该 Bot 的条目已不存在,指令文本没有留下任何副本:~/.dsh下没有*.bak或临时文件,会话日志里也不包含 instructions 内容。因此误删后无法从本地恢复。从结果上看这是数据丢失(data loss):界面里的一个普通操作会永久删除用户撰写的内容,而且没有任何恢复路径。对把 Bot 当作 persona 使用的场景,instructions 本身就是主要产出。
Screenshot / 截图
出于隐私考虑不上传界面截图。可用一个只填了测试文本的临时 Bot 复现,不影响真实数据。
Steps to reproduce / 复现步骤
~/.dsh/bot/state.json中该条目消失;该 Bot 对应的会话日志中没有出现 instructions 原文。复现范围:本机已观察到上述结果,未在其他版本上重复验证。
Suggested fix / 建议
按实现成本由小到大,任一项都可避免该问题:
~/.dsh/bot/bots/<id>.md,使其独立于state.json存在。Diagnostics / 诊断信息
Surface: DeepSeek Bot desktop
DS Bot: 0.2.0
OS: Windows 11
应用内更新到 0.2.1 时提示
update to ds-bot@0.2.1 failed: already-installed(见~/.dsh/bot/logs/diagnostics.jsonl)删除后
~/.dsh/bot/state.json只剩主 Bot;~/.dsh下未见任何状态文件备份;系统未启用卷影副本本报告不包含 API key、token 或个人信息。
All reactions