dsh-sessions-manager 3.5.3 → 3.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-sessions-manager",
3
3
  "description": "DSH 设置面板会话管理器:归档 / 恢复 / 彻底删除 / 移动到其他工作区,带工作区标签与会话日期;统一「会话管理」面板。Session manager for the DeepSeek Harness settings panel — archive / restore / permanently delete / move sessions across workspaces, with workspace tags & session dates in one unified panel.",
4
- "version": "3.5.3",
4
+ "version": "3.5.4",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
package/src/index.js CHANGED
@@ -554,7 +554,9 @@ export function apply(ctx) {
554
554
  const entry = store.items.find((t) => String(t.sessionId) === sid)
555
555
  let originalPath = entry && typeof entry.originalPath === 'string' ? entry.originalPath : null
556
556
  if (!originalPath && header) {
557
- const loc = persistence.locate(header)
557
+ // handle 时代官方收走了 locate,用守卫式推导(root → 目录结构 → id 归属)
558
+ // 代替:推导成功且文件在盘 = 真核验通过,而不是标注 unverified 放行。
559
+ const loc = await persistence.locateVerified(header).catch(() => null)
558
560
  if (loc && typeof loc.path === 'string') originalPath = loc.path
559
561
  }
560
562
  if (originalPath) {