Preface¶
DeepSeek Harness (DSH) allows archiving conversations in the sidebar, but the host persistence layer does not expose a “delete” primitive, and the Workspace registry deliberately retains every session log. For daily development, when you mistakenly create a conversation, test-run a subagent, or simply want to clear a sidebar entry, the lack of a reversible deletion path means the list just keeps accumulating.
dsh-conversation-trash, published by community maintainer wusoudiaowei, is categorized as a “Memory” plugin on SkillHub. It does not modify the host binary or rewrite log formats; instead, it combines existing host operations to create a “Move to Trash → Undo within 8 seconds → Restore or Permanently Delete later” workflow. The following sections cover installation, usage, implementation highlights, and limitations.
What is this¶
In one sentence: A DSH conversation trash can—move conversations from the sidebar to the trash, undo within 8 seconds after confirmation, and later restore or permanently clear them from the trash panel.
- Repository: wusoudiaowei/dsh-conversation-trash
- Directory Page: SkillHub Plugin Page
- License: MIT (Consistent in README and package.json)
- Current package version: 0.2.0; Requires Node
>=20, DSH>=0.2.0-rc.2
Core Functionality¶
The following capabilities are derived from the project README and are provided by the plugin to the UI and local HTTP routes upon installation.
- Sidebar Delete Entry: In the conversation row
…menu, a danger-styled “Delete conversation” option is provided below Archive. - 8-Second Undo: After confirmation, the row disappears from the list, and a toast provides an Undo option; it is not a silent, irreversible deletion.
- Preview before Deletion: The dialog displays the title and the number of subagent conversations that will be moved along with the parent conversation.
- Subagent Cascading: Subagent sessions owned by the deleted conversation enter the trash together; forks are independent conversations and are not affected.
- Stop then Hide: Uses the host’s
archiveSessionwithstopActivity: trueto stop ongoing work before hiding the row. - Trash Panel: The button at the bottom of the sidebar features a count badge, allowing for single restore, single permanent deletion, or emptying the trash.
- Data Persistence: The trash directory is
~/.dsh/session-trash/, and the index isindex.jsonin the same directory (atomic write).
Installation and Enablement¶
Official installation command (desktop profile):
dsh plugin --profile desktop add github:wusoudiaowei/dsh-conversation-trash
On Windows, you can also copy the plugin directory to %USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-conversation-trash, register it in the profile’s dsh.profile.bundles, and restart DSH; the repository provides an idempotent install.ps1 to complete these two steps.
The plugin reads and writes sessions and the trash directory under ~/.dsh with the permissions of the current DSH process. Before installation, it is recommended to read the source code and MIT license on GitHub, and confirm that the local DSH version meets the engines requirements.
Typical Usage¶
- Hover over a conversation in the sidebar and open the
…menu. - Select Delete conversation.
- Confirm the title and subagent count in the dialog.
- After confirmation, the list removes the row; if it was a mistake, click Undo in the toast within 8 seconds.
- To handle it later, open the trash button at the bottom of the sidebar: restore the entry, or permanently delete / empty the trash (some thorough deletion capabilities are noted in the README as currently lacking a settings UI and can be operated via HTTP routes, see the next section).
Implementation Highlights (For Troubleshooting)¶
The deletion flow is summarized in three steps in the README:
| Step | Behavior |
|---|---|
| 1 | workspaceRegistry.archiveSession(id, { stopActivity: true }) |
| 2 | Move session directory from ~/.dsh/sessions/<workspace>/<session-id>/ to ~/.dsh/session-trash/<session-id>/ |
| 3 | Write entry to ~/.dsh/session-trash/index.json |
Restoration moves the directory back and unarchives; purge permanently deletes. On Windows, log files may still be in use, so moving involves backoff retries; failures are recorded as moved: false and are cleaned up by a sweep at startup.
Local-only, same-origin JSON interfaces (excerpt):
| Method | Path | Purpose |
|---|---|---|
| GET | /dsh-conversation-trash/list |
List and total size |
| POST | /dsh-conversation-trash/preview |
{sessionId} → title and subagent ids |
| POST | /dsh-conversation-trash/delete |
{sessionId, displayTitle} |
| POST | /dsh-conversation-trash/restore |
{sessionId} |
| POST | /dsh-conversation-trash/purge |
{sessionId} |
| POST | /dsh-conversation-trash/purge-all |
{} |
Applicable Scenarios and Known Limitations¶
Suitable for: Developers who need to clean up conversations in the DSH desktop sidebar but want a brief undo window and an independent trash can; when needing to organize parent conversations along with subagent sessions.
Notes (README Known limits):
- After deletion, the conversation may still appear in “All conversations (show archived)” until the next restart—at which point it is archived and the log directory has been moved.
- Deleting the currently viewed conversation does not automatically navigate away.
- Relies on host internal slots,
archiveSession, and log directory layout; future DSH versions may be incompatible, but failures should be visible and non-destructive. - If the upstream provides a true
session/deletein the future, the author suggests retiring this plugin.
The DSH ecosystem emphasizes “Everything is a plugin”; SkillHub is a community directory site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-conversation-trash fills the missing deletion experience in the DSH sidebar using archiving plus directory moving: 8-second undo, trash restoration or purge, without touching the host binary or log formats. For further details on the design and rejected proposals, please refer to docs/design.md in the repository.
- Directory Page: https://www.skillhub.cn/plugins/wusoudiaowei/dsh-conversation-trash
- GitHub: https://github.com/wusoudiaowei/dsh-conversation-trash