DeepSHPlugins
dsh-session-manager 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-session-manager

會話與訊息JavaScriptMIT

在 DeepSeek Harness Web 中刪除對話(二次確認),並管理歸檔會話(移入/移出歸檔)。

5 Starshkkz9522 更新時間 2026-09-06
訪問 GitHub 倉庫
dsh-session-manager 專案預覽

專案介紹

中文

在 DeepSeek Harness Web 中刪除對話(二次確認),並管理歸檔會話(移入/移出歸檔)。

English

Delete conversations with a confirmation dialog and manage archived sessions (archive/unarchive) in the DeepSeek Harness web UI.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
hkkz9522
倉庫
hkkz9522/dsh-session-manager
GitHub Stars
5
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-09-06
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

70/ 100
維護活躍
97
文件與實用資訊
100
生態關注度
22
安裝便捷訊號
75
專案宣告訊號
100

近 5 天仍在更新;README 含完整安裝與使用說明;關注度尚低(5)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-session-manager

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-session-manager — session manager for DeepSeek Harness

English | 中文

npm version GitHub CI Awesome DSH Plugin

A DeepSeek Harness (DSH) Web plugin for session management: delete sessions, archive sessions, move sessions across workspaces, and migrate a session's Agent preset. Suggestions are welcome on GitHub.

Features

  • Archive / unarchive sessions.
  • Delete sessions with an explicit irreversible-action confirmation.
  • Move to workspace: preserves history, title, archive state, and derived-session relationships, and updates the session's working directory to the target workspace.
  • Migrate Agent preset: change the preset on demand. Typical use case: when the original preset was renamed or removed and the session can no longer resume, you can repair that session.
  • Session manager: browse active and archived sessions in the sidebar, and run Open, Archive / Unarchive, Move, Delete, or Migrate preset on each row.
  • The current session's title area offers Archive / Unarchive, Move to workspace, and a red Delete session button.

Where to find the UI

  • Session title area (right side): archive/unarchive, move to workspace, delete session.
  • Sidebar footer → Session manager: browse all sessions (including archived ones) and operate on each one.

Agent preset migration

Use this when a session can no longer resume because its original preset no longer exists, for example after removing a custom preset such as router-standard.

  1. Open Session manager.
  2. Locate the session and select Migrate preset.
  3. Choose one of the currently available target presets and confirm.

The plugin determines the session's effective preset from its latest agent-preset/selected event when present; otherwise it uses the session header. It safely updates the relevant stored value, releases any live persistence owner, and refreshes the session list. If the migrated session is open, reopen it before continuing the chat.

A preset migration changes session metadata only. It does not alter message history, files, or the selected workspace.

Install

The plugin is listed in dsh-market and awesome-dsh-plugin, and can be installed directly from the Plugin Marketplace inside DSH.

From dsh-market

dsh plugin --profile web add npm:dsh-session-manager

From GitHub

dsh plugin --profile web add github:hkkz9522/dsh-session-manager

Restart DSH Web after installation. If the browser still holds an older client bundle, force refresh with Ctrl+Shift+R.

Local development / runtime injection

dev_inject_plugin {"dir": "<absolute path to this repository>"}

HTTP API

The following local endpoints are used by the Web UI and are also useful for integration and diagnostics:

POST /session-manager/api/delete         { sessionId }
POST /session-manager/api/unarchive      { sessionId }
GET  /session-manager/api/workspaces
POST /session-manager/api/move           { sessionId, targetWorkspaceId }
GET  /session-manager/api/preset-scan?sessionId=<sessionId>
POST /session-manager/api/preset-migrate { sessionId, toPreset }

Example: migrate a session to the standard preset.

curl -s -X POST http://127.0.0.1:3080/session-manager/api/preset-migrate \
  -H 'content-type: application/json' \
  -d '{"sessionId":"session-...","toPreset":"standard"}'

Safety and behavior

  • Deletion is permanent, so the UI always asks for confirmation.
  • Moving a running session first interrupts and closes it, then refreshes the sidebar; reopen the session from the target workspace to continue.
  • Move rewrites the session's stored cwd; subsequent tool calls run in the target workspace.
  • Subagent sessions and transient blank-session placeholders are excluded from delete, move, and preset migration.
  • File rewrites use temporary files and atomic replacement (when supported by the environment) to avoid partially written session artifacts.

Compatibility and development

  • This is a Cordis plugin with peer dependency cordis >=4.0.0-rc <5.
  • lib/index.js is the host-side ESM plugin, lib/client.js is the Web client bundle; no build step is required.
  • Before submitting changes, run:
node --check lib/client.js
node --check lib/index.js
git diff --check
node scripts/smoke-test.mjs
npm pack --dry-run

Release history is in CHANGELOG.md.

Acknowledgments

Thanks to everyone who installs and uses dsh-session-manager, and to the people who file issues and open pull requests to help improve it. This plugin is listed in dsh-market and awesome-dsh-plugin. Suggestions and feedback are welcome.

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案