dsh-clear-ungrouped: One-click Archive for "Ungrouped" Chats in the Sidebar

Introduction

Over time in DeepSeek Harness (DSH), the “Ungrouped” section in the sidebar tends to accumulate temporary sessions. The native interface allows you to archive conversations one by one, but it lacks a bulk operation for the entire “Ungrouped” group. If you frequently need to clear unclassified conversations while retaining the ability to undo mistakes, the community plugin dsh-clear-ungrouped provides a one-click archiving solution with confirmation and undo support. The following section describes its purpose, behavior, and installation instructions.

What is this

dsh-clear-ungrouped is a client-side (Web) plugin published by maintainer winniesi. It adds a “Clear ungrouped conversations” entry (broom icon, visible when hovering over the group title) to the left of the “New conversation” button in the “Ungrouped” group of the sidebar. After clicking it and confirming the count, it will archive (not physically delete) all qualifying ungrouped conversations. Since the DSH Host does not provide a session deletion API, archiving is the official method to remove sessions from the sidebar.

The community plugin directory is an independent site and is not officially affiliated with DeepSeek / Hunyuan. Please review the source code and license before installing. The plugin runs in the current dsh process/browser context, with permissions matching the DSH instance being used.

Core features

Interaction and archiving scope

  1. Clicking the broom button triggers a confirmation dialog showing the number of conversations to be processed.
  2. After confirmation, it calls the archive function on qualifying sessions within “Ungrouped”. Archived sessions are hidden from the sidebar but can be recovered and unarchived via View options → All conversations (show archived).
  3. A notification bar with an “Undo” button appears after the operation completes, allowing you to restore all conversations archived in this action within 6 seconds.

Conversations that are preserved and not archived

  • Pinned conversations;
  • Running conversations (including those with running sub-agents).

Relationship with the current session

If the currently open conversation is archived by this action, the main area will return to the new conversation page, consistent with the native sidebar archiving behavior.

Installation and activation

Installation under Desktop configuration:

dsh plugin --profile desktop add github:winniesi/dsh-clear-ungrouped

For Web configuration, replace desktop with web:

dsh plugin --profile web add github:winniesi/dsh-clear-ungrouped

After installation, restart dsh or refresh the page to activate the plugin.

For local development, you can use a local path instead of the GitHub address (example):

dsh plugin --profile desktop add link:/path/to/dsh-clear-ungrouped

Typical usage

  1. After installation and restart/refresh, locate the Ungrouped group in the sidebar.
  2. Hover over the ungrouped title area; the broom button should appear to the left of “New conversation”.
  3. Click the button, verify the count in the confirmation dialog, and confirm the archive action.
  4. If you want to reverse it, click Undo before the notification bar disappears (within 6 seconds); otherwise, manually unarchive via “All conversations (show archived)”.

Implementation details (for developers)

The plugin is a pure browser-side implementation (client.js), with index.js serving only as an empty shell required by the Loader. Since the group title has no slot, the plugin registers a permanent shell.overlay and uses MutationObserver to insert a host node before the new conversation button in the ungrouped row ([data-row-key="workspace:"]), then renders the button via a React portal. The calculation of ungrouped members is consistent with ui-workspace (sessions not belonging to any workspace, excluding sub-agent sessions, blank sessions, and archived sessions). Archiving uses uiWorkspace.archiveSession (with a fallback to workspaces.archiveSession if unavailable), and undoing uses workspaces.unarchiveSession.

Use cases and notes

Suitable for: Users who use DSH locally or via the Web long-term, have many ungrouped conversations, and want bulk archiving with a safety window for mistakes.

Notes:

  • Archiving is not equivalent to deletion; the recovery path relies on DSH’s built-in “show archived” view.
  • Pinned and running sessions will not be cleared. If “it doesn’t clear everything,” check these two items first.
  • The plugin depends on the DSH 0.2.x RC version range; verify peerDependencies before upgrading major versions.
  • Read the repository README and client.js before installing third-party plugins to confirm the behavior matches expectations.

Conclusion

dsh-clear-ungrouped fills the gap in bulk organization of “Ungrouped” conversations with a small button: it confirms the count, hides via archiving, allows undo within six seconds, and aligns with DSH’s native archiving semantics. If needed, you can access the documentation via the SkillHub directory page or view the source code and updates on the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye