ShiraGawaAnri/dsh-session-cleanup
ShiraGawaAnri★ 0JavaScriptLast synced: 2026-08-16
DSH 会话/归档清理插件:在 **设置** 面板里新增两个页面,用来查看并清理 DSH 的残留会话与归档会话。
README excerpt
中文 English dsh-session-cleanup A DSH profile bundle that adds two Settings pages for inspecting and cleaning up residual (persisted but not open) sessions and archived sessions. Features Settings → Sessions清理 - 刷新Sessions button - 当前Sessions : live in-memory sessions (display only, no action buttons) with session ID / date / summary (title + first user message excerpt) - 残留Sessions : persisted but not currently open sessions, each with a delete button Settings → 归档清理 - 刷新归档 button - 所有归档 : all archived sessions with ID / summary / date - Per-row delete button plus delete-all - Live sessions show a "运行中" badge and cannot be deleted Every deletion requires double confirmation (arm → confirm, with cancel). What deletion does 1. Refuses live (running) sessions 2. Removes the persisted session log file/directory (paths come from sessionPersistence.locate() ; the client only ever submits session ids) 3. Detaches the session from its workspace account (durable write) 4. Removes the id from the global archive set if present (durable write + registry cache sync so later archive operations cannot resurrect it) Deletion is not recoverable . Installation Prerequisites: a working DSH installati…
View full README on GitHub →