dsh-workspace-archive-all
Manifest validDSH Web plugin: Archive-All action on every workspace folder menu in the sidebar (Ungrouped included). Running / open / blank / subagent sessions are skipped.
dsh-workspace-archive-all
A DeepSeek Harness web plugin that adds an Archive All action to every workspace folder menu in the sidebar (the Ungrouped bucket included) — archiving all unarchived sessions under that folder in one go.
- Confirm dialog → sequential archive with progress → result summary
- Automatically skipped: running sessions, the session you are currently viewing, blank provisional "New Session" rows, subagent sessions, and anything already archived
- English and Chinese copy, following the UI language
How it works
The sidebar comes from the official @deepseek-ai/dsh-client-ui-workspace package, whose
client bundle is served by the client module system from the prefix route
/plugins/<id>/client.js. This plugin's host half registers an exact route for that path
(the webserver matches exact routes before prefixes), serving a patched copy of the bundle:
GET /plugins/@deepseek-ai/dsh-client-ui-workspace/client.js
→ this plugin's lib/workspace-client.patched.js
- No runtime interception, no dependence on script evaluation order
- Uninstalling the plugin removes the route and the stock bundle is served again — the official file on disk is never modified
- Response headers mirror the stock bundle server (
text/javascript; charset=utf-8,no-cache)
Install
One command with the official CLI (installs the package into the profile and mounts it via
the bundled cordis.patch.yml — no manual file edits):
dsh plugin --profile web add dsh-workspace-archive-all # from npm (once published)
dsh plugin --profile web add <tarball-url-or-path> # e.g. the GitHub release .tgz
Or as a local bundle without the CLI:
- Put this folder anywhere (e.g.
~/dsh-workspace-archive-all) - Link it into the profile:
ln -s ~/dsh-workspace-archive-all ~/.dsh/profiles/web/node_modules/dsh-workspace-archive-all - Append
"dsh-workspace-archive-all"todsh.profile.bundlesin~/.dsh/profiles/web/package.json - Restart
dsh web(the bundle list is read at boot)
The bundle's
cordis.patch.ymlcarries a double-mount guard: a manualdsh.profile.bundlesentry makes the package's own insert row stand down, so the two channels do not collide — but pick one of them.
Once listed on the dshmarket marketplace, it can also be installed with one click from the settings UI.
Uninstall
dsh plugin --profile web remove dsh-workspace-archive-all
Or, for a manual local-bundle install: remove the entry from dsh.profile.bundles and
restart; the dependencies entry and the symlink can be removed too. Nothing to clean up
inside DSH itself.
Upgrading DSH
Re-derive the patched bundle from the new stock file:
node tools/build-patch.mjs
The stock client path is auto-detected (nvm / Homebrew / /usr/local / PNPM_HOME / PATH);
override with DSH_STOCK_CLIENT or node tools/build-patch.mjs <stock-client.js> [out-file].
The 11 find/replace patches each must match exactly once — a clear error means the official
bundle drifted and the pairs need re-deriving.
Files
| File | Purpose |
|---|---|
lib/index.js | Host half: registers the exact override route |
lib/workspace-client.patched.js | The patched official workspace client (build artifact) |
cordis.patch.yml | Bundle patch: mounts the plugin (with double-mount guard) |
tools/build-patch.mjs | Rebuilds the patched bundle from the stock one |
License
MIT
Comments
Loading…
Similar plugins
by WindFromKadath
DSH plugin: archive the sessions of a workspace whose folder disappears, and bring them back (grouping included) when the folder returns.
★ 0
MIT
JavaScript
Nov 3, 2026
dsh plugin --profile web add dsh-plugin-workspace-archiveby kira905
DSH web plugin that browses, previews, restores and deletes archived sessions that were moved out of the sessions directory.
★ 2
AGPL-3.0
JavaScript
Nov 9, 2026
dsh plugin --profile web add @kira905/dsh-butler-archiveby ChineseRyan
往工作区行「…」菜单添加「归档工作区」:归档该工作区下全部会话并从侧边栏隐藏,可随时恢复。
★ 1
MIT
JavaScript
Nov 5, 2026
dsh plugin --profile web add dsh-plugin-workspace-archiveby Yiklek
dsh plugin: view and restore archived sessions from a dedicated page in the web Settings.
★ 0
MIT
JavaScript
Aug 20, 2026
dsh plugin --profile web add dsh-archived-listby MS666666
Archive manager for DSH Web: list archived sessions in the Settings page and delete them for real, including their log, archive marker, and projection cache.
★ 2
↓ 124/wk
MIT
JavaScript
Nov 5, 2026
dsh plugin --profile web add dsh-archive-manager-plusby SZMY-haruhi
Sidebar archive directory for DSH Web: restore a session to its original workspace slot, delete the session log, or edit-and-branch a user message into a new conversation.
★ 2
↓ 140/wk
MIT
TypeScript
Oct 12, 2026
dsh plugin --profile web add dsh-session-plus