@dsh-external/dsh-plugin-session-delete
August 16, 2026 · View on GitHub
为 dsh Web GUI 增加「删除会话」能力的插件 bundle:会话头部出现垃圾桶按钮,二次确认后永久删除该会话(停止并摘除在线会话、清除 ~/.dsh/sessions/ 下的全部日志),删除后列表自动刷新。
功能
- 会话头部(标题栏右侧)垃圾桶按钮,点击二次确认后删除
- 永久删除:停止并摘除在线会话、删除该会话全部磁盘日志
- 删除后自动刷新会话列表;删除当前打开的会话时界面回到空态
- 中英双语,跟随 dsh 的 locale 服务
安装
# 从 GitHub 安装(推荐固定 commit,防止后续推送改变安装的代码)
dsh plugin --profile web add github:Yee1357/dsh-plugin-session-delete#44f1012
# 或直接用最新版
dsh plugin --profile web add github:Yee1357/dsh-plugin-session-delete
# 或本地目录调试
dsh plugin --profile web add ./dsh-plugin-session-delete
安装后重启 dsh web 生效。
⚠️ 注意:不要在多个 dsh 实例(例如另开端口的
dsh web)共用同一份~/.dsh时删除会话——另一个实例可能正在写该会话的日志,删除会把它损坏(报corrupt session log,历史无法加载)。
卸载
dsh plugin --profile web remove @dsh-external/dsh-plugin-session-delete
重启后按钮与路由一并消失。