Skip to content

Releases: dream12347/dsh-session-manager

v0.2.0

Choose a tag to compare

@dream12347 dream12347 released this 18 Aug 16:50

v0.2.0

修复

  • 插件 UI 改为跟随 DSH 当前应用语言并实时响应语言切换,不再受浏览器语言或 <html lang> 影响。
  • 移除批量删除结果中的硬编码中文。

优化

  • 对话顶部按钮与 Session log 的官方样式保持一致。
  • 设置页常规操作统一使用官方 Button 组件,并保留禁止换行和防收缩布局。
  • 抽屉与设置页统计统一改为居中弹窗,完整显示会话名、轮次、用户/助手消息、全部工具调用和活动窗口。
  • 统计弹窗支持关闭按钮、点击遮罩和 Esc 关闭。

修复:#5#6#7

安装

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

安装完成后重启 dsh web

致谢

  • 感谢 EugeneVl 提交 Issue #5,并提供详细的根因分析、本地修复思路与验证结果。

v0.1.9

Choose a tag to compare

@dream12347 dream12347 released this 18 Aug 14:53

v0.1.9 (2026-08-18)

修复

  • 串行化删除、恢复、彻底删除与压缩阈值保存操作,避免多个浏览器页面同时操作时使用旧状态互相覆盖
  • 删除过程中移动文件或保存回收站记录失败时,自动恢复会话文件与归档状态,避免会话从列表消失但未进入回收站
  • 保存回收站条目时保留已配置的上下文压缩阈值,避免其他会话操作意外清除该设置

文档

  • 将安装说明移动到功能介绍之后、截图之前,方便用户在查看功能后直接安装

Fixed (EN)

  • Serialized delete, restore, purge, and compaction-threshold mutations so concurrent browser tabs cannot overwrite each other with stale state
  • Rolled back the session artifact and archive state when moving files or persisting the trash entry fails during deletion
  • Preserved the configured context-compaction threshold when saving trash entries

Documentation (EN)

  • Moved the installation instructions above the screenshots, directly after the feature overview

v0.1.8

Choose a tag to compare

@dream12347 dream12347 released this 18 Aug 10:45

v0.1.8 (2026-08-18)

新增

  • 会话管理面板支持批量删除:每行前增加勾选框(运行中 / 当前会话禁用勾选),面板顶部出现「全选」与「批量删除」操作条,一次确认后逐个调用删除接口,汇总成功 / 失败数量,失败时列出失败会话标题;删除后刷新回收站与官方列表
  • 工作区级全选:每个工作区标题旁新增勾选框,一键选中该工作区下的全部可选会话;支持半选(indeterminate)状态,与「全选」按钮和每行勾选联动
  • 抽屉「更多」菜单增加「删除」:会话行三点菜单新增红色「删除」项,运行中的会话禁用,与行内删除按钮一致(移入回收站)

优化

  • 移除对话头部冗余的「回收站」按钮(「对话管理」按钮已能打开抽屉并定位回收站)

致谢

  • 感谢 DoggyHU 的贡献:批量删除、工作区级全选、更多菜单删除项与头部按钮清理(PR #4

Added (EN)

  • Batch delete in the Session Manager panel: per-row checkboxes (disabled for running / current sessions), a Select-all + Delete-selected bar, one confirmation, per-session delete calls with a success/failure summary (failed titles listed), then trash and official list refresh
  • Workspace-level select-all: a checkbox on each workspace label selects every selectable session in that workspace, with indeterminate state kept in sync with Select-all and per-row checkboxes
  • A red Delete item in the drawer "More" menu (same trash flow as the row button, disabled while running)

Changed (EN)

  • Removed the redundant "Trash" conversation-header button (the "Session Manager" button already opens the drawer and can target the trash)

Credits

  • Thanks to DoggyHU for batch delete, workspace select-all, the More-menu delete item and the header cleanup (PR #4)

v0.1.7

Choose a tag to compare

@dream12347 dream12347 released this 18 Aug 04:19

v0.1.7 (2026-08-18)

修复

  • 子代理会话可删除:放开子代理会话删除限制,非运行中的子代理会话(包括主会话已删除后遗留的「孤儿子代理」)均可删除;运行中的会话仍受保护不可删除
  • 修复 invalid-session-id 报错:官方会话 id 有三种形态(session-<uuid> / session-<数字> / 子代理纯 UUID),此前路由只接受第一种,导致子代理会话删除与打开文件夹失败,现已全部支持
  • 修复正则回归:上一版修复的字符集漏掉了 session- 前缀,导致所有普通会话删除失败,已修正为同时接受三种 id 形态
  • 修复删除子代理后父会话「正在加载子代理」卡死:删除/恢复/彻底删除后强制刷新官方会话列表,让已删会话离开客户端摘要,官方子代理目录不再残留 loading

Fixed (EN)

  • Subagent sessions can now be deleted (when not running), including orphaned ones left behind after their parent session was deleted; running sessions stay protected
  • Fixed invalid-session-id errors: official session ids come in three shapes (session-<uuid> / session-<n> / bare uuid for subagent children), and all are now accepted by the routes
  • Fixed a regex regression where the charset dropped the session- prefix, rejecting normal sessions; all three id shapes are accepted now
  • Fixed the parent session's subagent catalog getting stuck on "loading subagents" after a child was deleted: delete/restore/purge now force-refresh the official session list so removed sessions leave the client mirror

v0.1.6

Choose a tag to compare

@dream12347 dream12347 released this 16 Aug 16:02

v0.1.6 (2026-08-16)

新增

  • 未读 / 已读标记(共享 \dsh.session-unread.v1\ 格式):会话行旁状态点——手动未读=蓝、官方等待输入=琥珀、官方完成提醒=绿、运行=转圈;点击官方状态点就地已读(不跳转)、点蓝点清除未读、打开会话自动已读;官方侧边栏对应会话行旁同步显示蓝色未读点
  • 新聊天中继续:每个会话一键 fork 子会话(官方 sessions.fork)并打开
  • 抽屉「更多」菜单:统计 / 文件夹 / 新聊天中继续收进悬浮菜单
  • 压缩阈值全局生效:设置对所有 Agent 预设的会话统一生效(保存即时 + 持久化 + 重启自动应用)

修复

  • 修复插件加载崩溃(ctx.effect 回调中的 TDZ 时序问题)

New (EN)

  • Unread/read markers (shared dsh.session-unread.v1): blue manual dot, official amber/green sync, in-place dismiss without navigation, auto-read on open, blue dot on official sidebar rows
  • Continue in new chat: fork any session (official sessions.fork)
  • Drawer 'More' menu (stats / folder / fork)
  • Compaction threshold now applies to ALL agent presets (immediate, persisted, re-applied on restart)
  • Fixed a plugin-load crash (TDZ in ctx.effect callbacks)

v0.1.5

Choose a tag to compare

@dream12347 dream12347 released this 16 Aug 14:41

v0.1.5 (2026-08-16)

新增

  • 上下文压缩阈值(通用设置):设置对话上下文用到模型窗口(100 万 token)的多少比例时自动压缩(17%–90%)。每次压缩保留最近 16% 原文、其余折叠为摘要;保存后立即生效(含已打开的会话),并持久化到 Agent 预设,重启后依然有效;滑块两端与中间显示刻度(17% / 53% / 90%)

修复

  • 会话管理面板行操作按钮(继续会话 / 暂停 / 统计 / 文件夹等)补齐边框样式
  • 「删除」「彻底删除」按钮改为红色标识

变更

  • 仓库与插件更名为 dsh-session-manager(原 dsh-delete-session),于 2026-08-16 改名,与插件当前定位(会话管理 + 工作区管理 + 压缩阈值)一致;路由前缀、日志标识等内部命名同步更新

New (EN)

  • Context compaction threshold in General settings (17%–90% of the 1M-token window, keeps the newest 16% verbatim; applies immediately on save, persists to the agent preset; slider scale shows 17% / 53% / 90%)
  • Row action buttons now show a visible border; Delete / Purge are red
  • Repo & plugin renamed to dsh-session-manager (was dsh-delete-session) on 2026-08-16

v0.1.4

Choose a tag to compare

@dream12347 dream12347 released this 16 Aug 11:59

v0.1.4 (2026-08-16)

新增

  • 工作区分组:会话按工作区分组展示,组内按最后使用时间排序,可切换「最新在前 / 最旧在前」
  • 拖拽调整工作区顺序:拖动工作区标题即可排序——插入到某工作区前/后、拖到标题上交换位置、拖到末尾即移到最底部
  • 工作区操作按钮:悬停标题显示「置于顶部 / 重命名 / 删除」;删除按官方定义(仅移出列表,文件夹与会话记录保留,会话归入「未分组」),红色按钮 + 二次确认

变更

  • 「未分类」更名为「未分组」,与 DSH 官方命名一致

Workspace management (EN)

  • Group sessions by workspace, sort by last use (newest/oldest toggle)
  • Drag workspace titles to reorder: insert / swap / append
  • Hover actions: move to top / rename / delete (official semantics, confirmed)

v0.1.3

Choose a tag to compare

@dream12347 dream12347 released this 15 Aug 15:37

v0.1.3 (2026-08-15)

新增

  • 统计:每个会话可展开查看近期活动统计(轮次 / 用户消息 / 助手消息 / 工具调用 Top5 / 活动窗口)
  • 继续会话:一键打开会话并关闭面板,直接进入对话(运行中的会话禁用)
  • 暂停:停止正在运行会话的当前回合(仅运行中的会话显示该按钮)
  • 文件夹:在系统文件管理器中打开会话的日志目录
  • 删除本对话:对话头部右侧新增红色删除按钮(Session log 左侧),一键删除当前对话
  • 对话管理 / 回收站:对话头部新增两个入口,打开自绘右侧抽屉(会话列表 + 已归档 + 回收站),支持图钉固定常驻、点击外部自动收起
  • 已归档会话支持恢复:一键取消归档,回到会话列表
  • 回收站条目显示删除时的会话名(不再显示会话 id 长串)
  • 会话标题与路径悬停显示完整内容

变更

  • 删除限制调整:仅禁止删除「正在思考」的会话;当前打开的会话(空闲)可以删除

v0.1.2

Choose a tag to compare

@dream12347 dream12347 released this 15 Aug 14:03

v0.1.2 (2026-08-15)

新增

  • 回收站:删除会话改为移入回收站(保留最近 10 条,超出后自动彻底清除最早一条),可在回收站中恢复彻底删除
  • 回收站条目显示删除时间,支持中英文

v0.1.1

Choose a tag to compare

@dream12347 dream12347 released this 15 Aug 12:23

v0.1.1 (2026-08-14)

  • 修复:会话计数只显示活跃行数,不再显示包含归档/已删除会话的总数(如「2 个会话」代替「2 / 6 个会话」)
  • 优化:删除成功/失败提示在 3.5 秒后自动消失