dsh-recall-plugin 2.2.0 → 2.2.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  本文件格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循语义化版本。
4
4
 
5
+ ## [2.2.1] - 2026-08-30
6
+
7
+ 快照管理消息内容显示修复(patch)。单测 283 → 285 例全绿,`verify:host` 装配门禁、`check:dsh` 巡检全绿。
8
+
9
+ ### 修复
10
+
11
+ - **冷会话快照只显示消息 ID(1.5.0 引入)**:manage list 的去重补全分支把 live 未命中的 `null` 写进 `messageText` 属性,client 凭「属性存在」判定「已查过」而跳过 messages 端点冷读——冷会话(已关闭、不在 live 注册表)的快照永远显示消息 ID 截断而非消息内容(同会话标题因 titles 链按 falsy 重查而不受影响)。改为 live 命中才写字段,与首次入库分支的既有纪律对齐;修复后冷会话快照的消息内容经 messages 端点冷读渐进补齐(同会话多条共享一次 readSession,确认无文本的缓存 null 不重复解压)。
12
+
5
13
  ## [2.2.0] - 2026-08-30
6
14
 
7
15
  性能优化批次([plan-performance.md](docs/plans/completed/plan-performance.md) PF-1〜PF-9 全项,2026-08-29 实施,同日实弹冒烟 9/9 通过)。API 形状与用户可见语义基本不变(PF-6 删除以「所见为准」、PF-1 校验更严两处行为变化见下);单测 227 → 283 例全绿,`verify:host` 装配门禁、`check:dsh` 巡检、client 产物新鲜度全绿;合成基准同口径对比:快照管理首开 -70%、对话中二次打开免等待、同进程二次 init ≈0、单条删除 -21%、每条消息快照 -14%。
@@ -61,7 +61,9 @@ export function createRoutesManage(deps) {
61
61
  // 与 collectAllSnapshotRecords 同款补全:磁盘先占位、内存后补全 root
62
62
  if (!old.root && root) { old.root = root; old.workspace = root.replace(/[\\/]+$/, '').split(/[\\/]/).pop() || null }
63
63
  if (!old.sessionId && sessionId) { old.sessionId = sessionId; old.sessionTitle = liveTitleFast(sessionId) }
64
- if (!old.messageText && id) { old.messageText = liveMessageTextFast(sessionId, id) }
64
+ // !old 分支同规(live 命中才写字段):null 落进属性会让 client
65
+ // 误判「已查过」而跳过 messages 冷读——冷会话快照永远只显示消息 ID
66
+ if (!old.messageText && id) { const t = liveMessageTextFast(sessionId, id); if (t) old.messageText = t }
65
67
  if (!old.time && time) old.time = time
66
68
  }
67
69
  for (const [dir, info] of dump) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-recall-plugin",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "DSH 消息撤回插件:在用户消息气泡旁加「撤回」按钮,把项目文件(独立影子 git 仓库快照)与对话历史(官方 fork)一并回退到该消息发送之前。",
5
5
  "type": "module",
6
6
  "repository": {