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

dsh-session-delete-plugin

在侧边栏右键菜单添加删除会话功能 适合需要快速、彻底清理DSH历史会话及缓存数据的用户。

包名
dsh-session-delete-plugin
兼容性
待验证
版本
1.0.0
许可证
MIT
最近更新
2026年9月30日

安装

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

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