Introduction¶
When working with agents or long-running tasks in DSH (DeepSeek Harness), the sidebar conversation list grows longer and longer. Archiving changes the conversation state and goes through core RPC; if you simply want to “make it out of sight” without touching history, disk data, or Workspace ownership, you need a solution that only affects the display layer. Below is the community plugin dsh-hidden-session (maintained by xthreehao), which hides specified conversations from the sidebar and can restore them at any time from the settings page. The plugin is categorized as a client plugin; its contract and implementation were verified against the DSH 0.2.0-rc.2 build. It is delivered as build-free, zero-npm-runtime-dependency lib/*.js.
What is this¶
dsh-hidden-session is a dual-half plugin for DSH: the Cordis host half provides REST and persistence, while the Module Loader browser half injects the menu, CSS hiding, and the settings page. Hiding only affects the sidebar (and optionally search result display); it does not modify the conversation itself, history records, disk data, or Workspace ownership. License: MIT (see the GitHub repository).
Core Features¶
Entry Points and Operations¶
- Hide Conversation in the conversation row’s “⋯” menu (slot
sidebar.workspaces.session.menu.item,order: 500). - Hover button at the end of the conversation row (slot
sidebar.workspaces.session.row.action,order: 300).
After hiding, the row disappears from the sidebar immediately and a bottom toast appears. Restore path: Settings → Hidden Conversations (top-level settings navigation), where you can restore individually or all at once.
Persistence and Optional Behavior¶
The hidden set is written on the host side:
~/.dsh/storages/dsh-hidden-session.json
It remains valid after restarting DSH or switching browsers. The settings page provides a toggle for “Also suppress hidden conversations in search results” (enabled by default, with the state stored in the current browser).
How the Browser Half Hides Rows¶
The sidebar conversation row’s root element carries a stable attribute data-row-key="session:<sessionId>" (from @deepseek-ai/dsh-client-ui-workspace). The plugin injects CSS rules by id to hide the corresponding rows, and marks known hidden rows with [data-dsh-hidden-row] to handle the edge case where cloneNode during exit animations strips data-row-key. The sessionId is validated against a whitelist (^[A-Za-z0-9._-]{1,128}$) to prevent CSS injection.
Host REST API¶
GET /api/dsh-hidden-session/state → { version, hidden: [id…], updatedAt }
POST /api/dsh-hidden-session/hide body { sessionId } | { sessionIds: [] }
POST /api/dsh-hidden-session/show body { sessionId } | { sessionIds: [] }
POST /api/dsh-hidden-session/show-all
Write operations are persisted to disk after passing loopback and same-origin checks (atomic write, permissions 0600). The host half only declares the webServer dependency and does not touch workspaceRegistry or conversation storage files.
Installation and Activation¶
First, confirm the actual profile via the process command line (the desktop version is usually desktop, the CLI Web version is usually web). On Windows, you can inspect the DeepSeek Harness process’s CommandLine, which will contain ~/.dsh/profiles/<profile>.
Choose only one of the two activation paths — do not both write the package into dsh.profile.bundles and insert the same plugin in cordis.patch.yml, otherwise it may be instantiated twice and trigger duplicate routes (the host half has idempotent skipping, but you should still keep only one method).
Path A: bundle (recommended for distribution)¶
The package’s bundled cordis.patch.yml inserts Cordis lines via dsh.profile.bundles; this takes effect after restart.
Path B: profile patch layer (common for development)¶
Append to the end of ~/.dsh/profiles/<profile>/cordis.patch.yml:
- insert:
- id: hidden-session
name: 'dsh-hidden-session'
After saving, it hot-reloads without restart (the author tested this on the 0.2.0-rc.2 desktop version).
Regardless of the path, the Loader must be able to resolve the package name dsh-hidden-session to a directory. It is recommended to link the local repository via the CLI (which writes dependencies and reconciles bundles):
dsh plugin --profile <profile> add -w "link:<absolute path to this repository>"
If you only use Path B and do not register the package in bundles, you can manually create a junction/copy to:
~/.dsh/profiles/<profile>/node_modules/dsh-hidden-session
A common deployment form: "dsh-hidden-session": "link:<path>" in dependencies, do not add the package to bundles, and activate it only via cordis.patch.yml’s insert.
To temporarily disable: change the insert line to disabled: true. Uninstall example (Web profile):
dsh plugin --profile web remove dsh-hidden-session
Confirm that dsh.profile.bundles no longer contains the line, then restart DSH. Deleting ~/.dsh/storages/dsh-hidden-session.json is equivalent to clearing the hidden list.
Typical Usage¶
- Find the conversation to collapse in the sidebar, click “⋯” → Hide Conversation (or the hover button at the end of the row).
- Confirm that the row has disappeared from the list; if you are currently chatting in that conversation, it will not be automatically closed (different from archiving behavior).
- When needed, go to Settings → Hidden Conversations and click “Restore” or “Restore All”.
- If you want these conversations not to appear in the search panel either, keep “Also suppress hidden conversations in search results” enabled.
Developers can run a manifest self-check from the repository root (no need to install into DSH):
npm run check
When the plugin is already running, you can test the host API (default http://127.0.0.1:3080; for the desktop version, see the GUI address bar, e.g., 19387):
node scripts/smoke.mjs
node scripts/smoke.mjs 19387
The menu, CSS, and settings page still need to be manually clicked through according to the steps above.
Use Cases and Notes¶
Who it’s for: DSH users and plugin authors who have many sidebar conversations and want to visually organize the list without archiving or deleting data (the slot/DOM conventions in the README can serve as a reference for extending conversation row actions).
Runtime and trust: The plugin runs with the permissions of the current DSH process; before installing, please read the GitHub source and the MIT license, and judge whether it meets your environment requirements. package.json declares the engine dsh >= 0.1.1-rc.1; the author’s end-to-end verification in the documentation targets 0.2.0-rc.2 desktop.
Known limitations (summary):
- Search suppression relies on exact text matching between result row titles and hidden conversation titles; it may fail to match when summaries are not loaded (preferring not to hide).
- Group header conversation counts still include hidden rows; hiding the current conversation does not close the chat.
- Relies on the
data-row-keyDOM contract; upstream changes require synchronizing the plugin. - After switching the UI language, some strings may require a page refresh to update.
The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-hidden-session injects the “Hide” action via the official list slot, maintains the hidden set through CSS and host JSON persistence, and does not touch conversation data. For installation details, REST contract, and limitation lists, refer to the repository README.