Theworld7/dsh-session-delete-plugin ↗★ 0

dsh-session-delete-plugin

Adds a permanent "Delete session" action to the DeepSeek Harness session context menu. 适合需要快速、彻底清理DSH历史会话及缓存数据的用户。

パッケージ
dsh-session-delete-plugin
互換性
未検証
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/09/30

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Theworld7/dsh-session-delete-plugin

ドキュメント

README 全文を読む ↗

Configuration

Every knob lives in the plugin's Config, so a user's override survives Harness upgrades. Override the row id session-delete from the profile's cordis.patch.yml, or from a --patch overlay:

keydefaultmeaning
sessionsRoot''Session log root. Empty derives $DSH_HOME, then ~/.dsh.
storagesRoot''Storage root holding the projection cache. Empty derives the same way.
blockActivetrueRefuse to delete a session that is open in this Harness.
stopActivitytrueStop an open session's work first, through the Harness's own workspace/session-stop hook.
cleanWorkspaceRegistrytrueDrop the id from the archived and pinned sets.
cleanProjectionCachetrueRemove the cached projection.

A patch row replaces the whole config value, so restate every key you still want:

- id: session-delete
  name: 'dsh-session-delete-plugin'
  config:
    sessionsRoot: ''
    storagesRoot: ''
    blockActive: true
    stopActivity: true
    cleanWorkspaceRegistry: true
    cleanProjectionCache: false   # keep projections, delete only logs