dsh-workspace-hide: Show or Hide Workspace in DSH Sidebar

Introduction

When keeping multiple workspaces open in DeepSeek Harness (DSH) for extended periods, the sidebar can become increasingly cluttered. The built-in “Delete Workspace” function removes the workspace from the list but does not delete the underlying folders or sessions from the disk. Mentally, this acts as “removing from the list”—to view it again, you must manually re-add the path. A more problematic issue is: if a workspace is simply removed from the list, its sessions often fall into the “Ungrouped” section of the sidebar, becoming a cluster of orphaned entries.

The following section introduces the community plugin dsh-workspace-hide (Maintainer: SUZUNAMI, Category: Client). It utilizes toggle switches in the settings to control “which workspaces appear in the sidebar.” When hidden, the related sessions are archived rather than scattered into “Ungrouped.” The entire process is purely local, reversible, and does not delete any data.

What is this

dsh-workspace-hide is a client-side plugin for DSH, with the current npm version being 0.2.1 (MIT License). In short: it allows you to determine which workspaces are displayed in the sidebar via Settings → Workspace Display. Hidden workspaces sink to the bottom of the list, and their sessions are collapsed into an archive rather than overflowing into “Ungrouped.”

The plugin manifest is persisted in the browser’s localStorage under the key dsh-workspace-hide.hidden.v2 (auto-migrating from v1). If @michengai/dsh-archive-manager is installed locally, the plugin utilizes the host layer’s true archiving and undo capabilities; if not installed, it defaults to a pure display layer and does not perform actual archiving on sessions (the DSH kernel itself lacks reverse operations; see the repository’s DESIGN.md for details).

Core Features

After hiding a workspace:

  • The workspace no longer appears in the sidebar;
  • Its sessions do not become “Ungrouped” entries but instead enter the archive (performing true archiving if the archive-manager is available);
  • When the workspace is shown again, only the sessions archived due to this specific hiding action will return; sessions that were already archived prior to hiding will not be affected by this hide/restore cycle.

Settings Page: “Workspace Display”

After installing and restarting DSH Desktop, Workspace Display will appear on the left side of Settings (positioned after “Archived Sessions”). The navigation tab is relatively short, while the title within the panel is “Workspaces shown in the sidebar.”

  • Each row has a toggle switch on the right: On = Show in sidebar, Off = Hide and archive its sessions;
  • Once turned off, the row automatically sinks to the bottom of the list and displays “Archived N sessions”;
  • Top statistics: “Total N · Showing N · Hidden N”; clicking Show All clears the hidden list and batch restores them in one click (available only when hidden items exist).

Hidden workspaces do not disappear from the settings page—the settings page reads the unfiltered list, which is necessary for undoing actions. When the plugin is newly installed, all toggles default to “On,” meaning all workspaces remain in the sidebar by default; there is no situation where “new workspaces disappear by default.”

Invalid Items and Restoration Prompts

The settings page supports canRestore type prompts, “Remove Record” for invalid items, and “Retry Restoration” following a failed unarchive operation (see behavior notes since version 0.1.2). The README recommends clicking Show All once before uninstalling or clearing the manifest; otherwise, archived sessions may remain stranded in the “Archive” page.

Installation and Activation

Installation via npm is recommended (relies only on registry.npmjs.org):

dsh plugin add dsh-workspace-hide@0.2.1

You can also install via GitHub release tarball (without going through git clone):

dsh plugin add https://codeload.github.com/SUZUNAMI/dsh-workspace-hide/tar.gz/refs/tags/v0.2.1

dsh plugin add will execute dependency installation in the profile directory (~/.dsh/profiles/web) and write the package name into dependencies and dsh.profile.bundles. After installation, restart DSH Desktop and verify that “Workspace Display” appears in the settings.

For manual installation, add dsh-workspace-hide@0.2.1 to both the dependencies and dsh.profile.bundles sections of ~/.dsh/profiles/web/package.json, then execute pnpm install in that directory.

Note: The README notes that dsh plugin add github:SUZUNAMI/dsh-workspace-hide#v0.2.1 might be parsed by pnpm as git+ssh://, which can easily fail on machines without configured GitHub SSH keys; it is recommended to pin the tag (e.g., 0.2.1) for third-party plugins rather than following the upstream main branch.

This plugin has zero npm dependencies and requires no build step; lib/client.js relies on DSH runtime injection of react and UI primitives, so react should not be manually added to the profile’s dependencies.

Typical Usage

  1. Run one of the installation commands above and restart DSH Desktop;
  2. Open Settings and navigate to Workspace Display;
  3. For workspaces that are temporarily unused but where you do not wish to delete data, turn the row’s toggle Off—the sidebar entry is hidden, sessions are archived, and the row sinks to the bottom displaying the archive count;
  4. Turn the toggle back on when needed, or click Show All for a batch restoration.

Use Cases and Notes

Who it is for: DSH Desktop users who have multiple experimental or historical workspaces running locally, wish to keep the sidebar concise, need to retain folders and sessions, and want to ensure that hidden sessions do not pile up in “Ungrouped.”

Permissions and Security: The plugin runs with the permissions of the current DSH process/browser profile, reading and writing to local localStorage and the DSH client API. Before installing, you can review the source code and MIT license at the GitHub repository to decide whether to include it in your profile.

Ecosystem Note: The DSH community plugin directory is hosted on an independent site (e.g., SkillHub Directory Page) and has no official affiliation with DeepSeek or Hunyuan. The installation commands and behavior described here are based on the repository’s README.

Conclusion

dsh-workspace-hide replaces the mental burden of “deleting list items” with “Show/Hide”: the sidebar can be condensed, sessions have an archived home, and the restoration path is centralized in the settings. For further understanding of the design and boundaries, please refer to the repository’s DESIGN.md.

  • Directory Page: https://www.skillhub.cn/plugins/SUZUNAMI/dsh-workspace-hide
  • GitHub: https://github.com/SUZUNAMI/dsh-workspace-hide
羽毛球分组比赛记分
小程序二维码

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

Xiaoye