dream12347/dsh-session-manager 预览 preview

dream12347/dsh-session-manager

DSH会话管理插件:删除(回收站恢复/彻底清除)、统计、继续/暂停、打开日志目录、对话顶部抽屉、工作区分组与排序、上下文压缩阈值设置。

Project Overview项目介绍

This is a native DeepSeek Harness plugin that adds comprehensive session management capabilities to DSH's web interface. It can be installed via the DSH CLI command from three sources: a tagged GitHub release, a local development directory, or a packed tarball generated via pnpm pack. After installation completes, you need to restart the dsh web process to load the plugin's host and client bundle. It adds a dedicated session management section to the DSH settings page, as well as quick-access buttons at the top of every conversation page for fast common actions.

The core workflow for most users starts with opening the DSH settings sidebar, then navigating to the dedicated Session Management section. From there you can view all active sessions, expand the folded archived section to restore old sessions, or delete unwanted sessions which are then moved to a recycle bin that holds the 10 most recent deleted entries. You can also sort sessions within each workspace group, drag to reorder workspaces, and set a global context compression threshold that applies to all agent presets immediately and persists across restarts.

This plugin is released under the open-source MIT license, and it has a few documented limitations to note before first use. It will not allow you to delete sessions that are currently running, to avoid unexpected errors during the agent's processing. It also keeps permanently deleted session IDs in browser localStorage to prevent them from reappearing after a page refresh. The plugin currently is built to work with DSH version 0.1.1-rc.1, so future DSH API changes may require plugin updates to keep working.

这是一款专为 DeepSeek Harness 开发的原生会话管理插件,可通过 DSH CLI 从 GitHub、本地目录或压缩包安装,安装后重启 dsh web 即可启用。它在 DSH 设置页新增独立的「会话管理」分栏,同时在每个对话页顶部提供快捷入口,支持管理所有会话包括已归档会话,删除的会话会进入回收站,可恢复也可彻底清除,全程不修改 DSH 核心代码,还能自动适配界面语言。

它为用户提供了丰富的会话管理功能,支持查看单会话近期活动统计、继续或暂停正在运行的会话、标记未读已读状态、在新聊天中继续原会话(fork 子会话)、直接打开会话日志目录等。用户还可以按工作区分组管理会话,拖拽调整工作区排序,设置全局上下文压缩阈值,配置对所有代理预设统一生效,即使主会话删除后的孤儿子代理会话也可以清理。

该插件遵循 MIT 许可协议开源,目前仅支持删除非运行状态的会话,当前打开的空闲会话可以删除,彻底删除的会话 ID 会保留在浏览器本地存储防止刷新后复现,侧边栏未读标记按标题匹配,重复标题会话会共享未读点,插件当前适配 DSH 0.1.1-rc.1 版本,依赖特定的插槽和服务,DSH 版本升级后可能需要适配。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add 'github:dream12347/dsh-session-manager#v0.2.2'

把 dream12347/dsh-session-manager 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-session-manager

English | 中文

这可能是目前功能最全的 DSH 会话管理插件:在 DeepSeek Harness Web 界面中全面管理会话,设置页与对话顶部均提供入口——删除(回收站可恢复或彻底清除)、恢复已归档会话、近期活动统计、继续/暂停会话、打开日志目录、未读/已读标记、新聊天中继续(fork)、工作区分组与排序管理、上下文压缩阈值设置,不修改 DSH 核心代码。

本项目由 dsh + Deepseek-V4-Flash0731 独立完成

如果觉得有用,欢迎点个 ⭐ Star,谢谢支持!

功能

  • 设置页新增独立的「会话管理」分栏(与 Notifications 同级的设置分区)
  • 面板列出全部会话(标题 / 工作目录),底部折叠区单独展示已归档会话,支持一键恢复回到会话列表
  • 回收站:删除的会话移入回收站(保留最近 10 条,超出自动清除最早一条),可恢复或彻底删除
  • 统计:每个会话可在居中弹窗中查看完整近期活动统计(轮次 / 用户消息 / 助手消息 / 全部工具调用 / 活动窗口)
  • 继续会话:一键打开会话并关闭面板;暂停:停止正在运行会话的当前回合
  • 未读 / 已读:会话行标题旁显示状态点——手动未读为蓝色、官方等待输入为琥珀、官方完成提醒为绿色、运行中为转圈;点击官方状态点就地已读(不跳转),点击蓝色点清除未读,打开会话自动已读;官方侧边栏的对应会话行旁同步显示蓝色未读点
  • 新聊天中继续:每个会话一键 fork 子会话(官方 sessions.fork)并打开
  • 文件夹:在系统文件管理器中打开会话日志目录
  • 删除本对话:对话顶部右侧红色按钮,一键删除当前对话(Session log 左侧)
  • 对话管理 / 回收站:对话顶部入口,打开自绘右侧抽屉(图钉固定常驻、点击外部自动收起),行内「更多」悬浮菜单收纳统计 / 文件夹 / 新聊天中继续
  • 工作区管理:会话按工作区分组展示,组内按最后使用时间排序(可切换最新/最旧);拖拽工作区标题即可调整顺序(插入 / 交换 / 拖到末尾);悬停标题出现置于顶部 / 重命名 / 删除按钮(删除按官方定义:仅移出列表,文件夹与会话记录保留,会话归入「未分组」)
  • 上下文压缩阈值(通用设置):设置对话上下文用到模型窗口(100 万 token)的多少比例时自动压缩(17%–90%),每次压缩保留最近 16% 原文;对所有 Agent 预设的会话统一生效(保存即时 + 持久化 + 重启自动应用)
  • 删除限制:仅禁止删除「正在思考」的会话;当前打开的会话(空闲)可删除
  • 子代理(subagent)会话支持删除(非运行中):即使主会话已删除、子代理成为「孤儿」,也能在会话管理中直接清理
  • 中英文界面自适应(跟随页面语言)

安装

从 GitHub

dsh plugin --profile web add 'github:dream12347/dsh-session-manager#v0.2.2'
# CMD
dsh plugin --profile web add github:dream12347/dsh-session-manager#v0.2.2

从本地目录

dsh plugin --profile web add /absolute/path/to/dsh-session-manager

从 tarball

pnpm pack
dsh plugin --profile web add /absolute/path/to/dsh-session-manager-0.2.2.tgz

安装完成后重启 dsh web(host 插件与客户端 bundle 需要重启加载)。

截图

设置页「会话管理」分栏(工作区分组、行操作与回收站):

设置页会话管理

对话顶部快捷入口(对话管理 / 回收站 / 删除本对话):

对话顶部快捷入口

会话管理抽屉(工作区分组、图钉固定、点击外部收起):

会话管理抽屉

通用设置「上下文压缩阈值」(17%–90%,滑块刻度):

上下文压缩阈值

使用

设置页会话管理

  1. 打开侧边栏底部 设置(齿轮图标)
  2. 设置页面左侧导航出现独立的 会话管理 分栏,点击进入
  3. 主列表为未归档会话;底部「已归档会话」折叠区可展开查看、恢复或删除归档会话
  4. 删除会话 → 进入底部「回收站」折叠区(保留最近 10 条)
  5. 回收站内可 恢复(回到会话列表)或 彻底删除(永久清除,不可恢复)
  6. 每行操作:继续会话(打开并进入对话)、暂停(停止正在运行的回合)、统计(展开近期活动)、文件夹(打开日志目录)、删除
  7. 工作区标题右侧(悬停显示):置于顶部(挪到最前)、重命名、删除(红色,二次确认)
  8. 拖拽工作区标题可调整顺序:放到某个工作区上方/下方插入,放到标题上交换位置,拖到最下方即移到末尾
  9. 排序按钮(最新在前 / 最旧在前)切换组内会话的排列顺序

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-fund-research 下一个 Next dsh-ui-usage-billing →