hkkz9522/dsh-session-manager
dsh-session-manager
Session manager for DeepSeek Harness: delete conversations with confirmation and manage archives.
Install
npx @deepseek-ai/dsh plugin --profile web add dsh-session-managerRestart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/hkkz9522-dsh-session-manager)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from hkkz9522/dsh-session-manager, cleaned of badges and images.
dsh-session-manager — conversation manager (delete + archive)
中文 | English
Adds two capabilities that are missing from DeepSeek Harness Web:
- Delete conversations (with an explicit confirmation dialog): physically deletes a session — stops and disposes its agent, detaches the session store entry (every tab drops the row), removes the JSONL directory from disk, and cleans up workspace accounting and the archive set.
- Archive management: archive (
workspace.archiveSession, built in) and unarchive (missing in rc.6 — this plugin implements it on the host side through the workspace registry's own persistence queue, withhost/archived-sessions-changedframes keeping every client in sync).
Features
- 🗑 Delete sessions: a "Delete session…" button in the conversation header plus a per-row delete in the manager panel — every path requires confirmation.
- 📦 Archive / unarchive: header button + per-row actions in the panel.
- 📋 Session manager panel (sidebar footer entry): filter by All / Active / Archived (archived sessions are invisible in the sidebar — the panel is where you find them again), with per-row Open / Archive / Unarchive / Delete.
- 🏷 Status badges: archived / running / current; relative time and workspace directory.
- ⚠️ The delete dialog shows the session title and an "irreversible" warning; for a running session it warns that deletion will interrupt it immediately.
Where the UI lives
| Location | Content |
|---|---|
| Conversation header (next to the session title) | "Archive / Unarchive" and "Delete session…" (red, confirmation dialog) buttons |
| Sidebar footer | "会话管理" button that opens the full manager panel |
Install
From npm (recommended)
dsh plugin --profile web add dsh-session-manager
Restart the web app to activate (profile bundle auto-assembles; lib/ is the runtime
artifact, no build step).
From GitHub (alternative)
dsh plugin --profile web add github:hkkz9522/dsh-session-manager
Local development / runtime injection
After cloning, inject in a web session that has dsh-super-injector resident (activates immediately, no restart):
dev_inject_plugin {"dir": "<absolute path to the repo>"}
Uninstall
- Installed via
dsh plugin add: remove the entry fromdsh.profile.bundlesanddependenciesin~/.dsh/profiles/web/package.json, then restart. - Installed via runtime injection:
dev_uninject_plugin {"name": "dsh-session-manager"}
Compatibility (DSH upgrades)
…

