dsh-ws-recency 0.11.6 → 0.11.7
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/README.md +2 -2
- package/index.js +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ DSH 原生的置顶只把会话顶到**它所属工作区分组的第一行**,
|
|
|
56
56
|
|
|
57
57
|
1. 先停掉它正在跑的工作;
|
|
58
58
|
2. 摘掉归档标记与置顶;
|
|
59
|
-
3.
|
|
59
|
+
3. 从每个工作区的记账里 detach(按 `workspace.json` 的原始记录判断,避免过滤视图漏删);
|
|
60
60
|
4. 删掉投影缓存记录;
|
|
61
61
|
5. 把日志目录移动到 `~/.hypers-work/.trash/ws-recency/<sessionId>-<时间戳>/`;
|
|
62
62
|
6. 广播 `api-session/removed`,浏览器立即移除该行。
|
|
@@ -130,7 +130,7 @@ dsh plugin --profile <profile> add github:chyxhtc/dsh-ws-recency
|
|
|
130
130
|
或固定版本的预构建包:
|
|
131
131
|
|
|
132
132
|
```powershell
|
|
133
|
-
dsh plugin --profile <profile> add https://github.com/chyxhtc/dsh-ws-recency/releases/download/v0.11.
|
|
133
|
+
dsh plugin --profile <profile> add https://github.com/chyxhtc/dsh-ws-recency/releases/download/v0.11.7/dsh-ws-recency-0.11.7.tgz
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
装完把 `dsh-ws-recency` 加进 `~/.hypers-work/profiles/<profile>/package.json` 的 `dsh.profile.bundles`,重启应用。
|
package/index.js
CHANGED
|
@@ -178,8 +178,15 @@ export async function trashSession(ctx, sessionId) {
|
|
|
178
178
|
try { await ctx.workspaceRegistry.unarchiveSession(sessionId); } catch { /* not archived */ }
|
|
179
179
|
try { await ctx.workspaceRegistry.unpinSession(sessionId); } catch { /* not pinned */ }
|
|
180
180
|
|
|
181
|
+
/* Same filtered-view trap as the move: the workspace's own sessionIds may
|
|
182
|
+
already hide the id while the stored record still lists it. */
|
|
183
|
+
const rawMembers = await rawWorkspaceMembership();
|
|
181
184
|
for (const workspace of ctx.workspaceRegistry.list()) {
|
|
182
|
-
|
|
185
|
+
const record = rawMembers === null ? undefined : rawMembers.get(workspace.id);
|
|
186
|
+
const listed = record !== undefined
|
|
187
|
+
? record.sessionIds.includes(sessionId)
|
|
188
|
+
: Array.isArray(workspace.sessionIds) && workspace.sessionIds.includes(sessionId);
|
|
189
|
+
if (!listed) continue;
|
|
183
190
|
try { await workspace.detachSession(sessionId); } catch { /* keep going */ }
|
|
184
191
|
}
|
|
185
192
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ws-recency",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.7",
|
|
4
4
|
"description": "Sidebar session management for DeepSeek Harness: workspace groups sorted by latest activity, stale history folded, a global pinned section, follow-up marks, session delete into a recoverable trash, per-session token statistics split by tool, and moving a session to another workspace.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "chyxhtc",
|