Sessions & Messages
@angela_lwh/dsh-archive-purge
Angela-lwh/dsh-archive-purge · ★ 0
Delete button for archived DeepSeek Harness sessions: removes a Session's log, its Workspace membership and its archive mark — with a deferred mode for Sessions the Host still holds.
Manifest details
安装
dsh plugin --profile web add 'github:Angela-lwh/dsh-archive-purge#0c1802660da946b04023f28008005a4e68740075'GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
For install and environment setup, plus plugin development tutorials, see DSH community docs ↗
README
English | 中文
A real "delete" for archived DeepSeek Harness sessions: removes the session and any subagent sessions it spawned from disk.
Install
# npm
dsh plugin --profile desktop add @angela_lwh/dsh-archive-purge
# GitHub
dsh plugin --profile desktop add https://github.com/Angela-lwh/dsh-archive-purge
Restart DSH afterwards: the Host half loads at startup, and an archived session's ... menu and hover strip then show Delete session.
Limits
- Only archived sessions can be deleted; archive one first.
- Refused while the session, or one of its subagent sessions, has work in progress; a session the Host still holds is staged and finished at the next start or from "Finish pending deletions".
- Deletion is irreversible and there is no trash; attachments (shared across sessions) are untouched. A deleted Session's spill overflow and projection-cache record go with it, and cache records left by earlier deletions are swept too (
sweepCache: falseturns that off). - Subagent sessions are deleted with their parent; leftovers whose parent is already gone are swept at startup or on the next deletion.
- Blank sessions that never sent a message (the sidebar hides them) are removed automatically once they are 24 hours old — on Host start, on a new conversation, or on any deletion (
blankMinAgeMstunes that) — and no longer show up in@; a Session whose composer still holds an unsent draft is never swept (the browser half reports those Session ids to the Host, which persists them).sweepBlanks/filterBlankReferencesswitch each part off. - The browser half carries one workaround: the connection has no heartbeat, so a laptop sleep leaves the WebSocket half-open and the Workspace snapshot frozen (new Sessions look ungrouped, the picker misses a Workspace). After 30 minutes without activity the first interaction reconnects once, so the projection re-baselines.
- Only this machine's
$DSH_HOME/sessionsis touched, and no backup is kept; back it up first if you need a way back.