Skip to content

dsh-session-cleaner v0.1.0

Choose a tag to compare

@fountunt fountunt released this 14 Aug 03:37
· 6 commits to main since this release

What's inside

Delete DeepSeek Harness sessions from a running web runtime — no restart needed:

  • Live store detach — removes the session from the in-memory SessionStore (fixes ghost sessions that linger in the sidebar after their files are gone)
  • Workspace records — detaches the session from every workspace
  • On-disk artifacts — deletes the session directory under $DSH_HOME/sessions

Safety: sessions with an attached agent (running or idle) are refused — the current conversation can never be deleted.

Install

\\sh

from npm

dsh plugin --profile web add dsh-session-cleaner

from git

dsh plugin --profile web add github:fountunt/dsh-session-cleaner
\\

Then restart \dsh web.

Usage

\\js
await fetch(/api-ext/session.delete, {
method: POST,
headers: { content-type: application/json },
body: JSON.stringify({ sessionId: session-xxxx }),
}).then(r => r.json());
// -> { ok: true, value: { detached: true, workspaces: 1, files: 1 } }
\\

Changelog

  • 0.1.0 — initial release (verified end-to-end against a running web profile; 3/3 unit tests)