问题背景:
本地使用DeepSeek Harness时先使用Github仓库中使用npm直接运行
然后在源码构建时遇到类似的问题
Error: failed to apply loader entry session-projection-cache (@deepseek-ai/dsh-session-projection-cache): domain 'session_projcache': stored record '2883ccb0-a78f-40d6-b1dc-4fc19d66b43a' in table 'sessions' does not match its schema
需要清理harness本地数据即可解决
dsh本地数据默认保存在~/.dsh目录下
解决方案:
-
清理所有数据(谨慎操作!)
删除
~/.dsh目录即可移除所有配置、会话、密钥等数据,相当于重置harness,如有重要的历史记录需要提前保存所以根据以下步骤最安全
# step1 使用ctrl c停止当前运行的harness # step2 保存备份 cp -r ~/.dsh ~/.dsh_bak # step3 清理ds harness本地数据 rm -rf ~/.dsh -
只清理会话记录
如果想保留配置、只删除聊天记录,可以只删除
sessions文件夹。rm -rf ~/.dsh/sessions -
清理特定缓存:
部分缓存数据可能存储在
~/.dsh/storages/目录下,可以手动清理其中的文件。