fuzz1og/dsh-archive-manager ↗★ 0
dsh-archive-manager
WebUI plugin: view archived sessions and restore (unarchive) them from the sidebar footer
AI Analysis
核心用途是补齐官方未提供的取消归档功能。适合需要管理历史归档、随时可能重新激活旧会话的用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗dsh-archive-manager
DeepSeek Harness Web UI 插件:归档会话管理——在侧栏底部查看已归档会话,并一键恢复(unarchive)回原工作区。
背景
DSH 工作区注册表只暴露 archiveSession()(只增),产品 API 面没有 unarchive RPC。本插件注册一条同源 HTTP 路由,通过注册表自身的操作队列和状态写入把会话 id 从全局 archivedSessionIds 集合中移除——保证持久域状态、内存注册表缓存、以及 api-proxy 的 host/archived-sessions-changed 推送三方一致。客户端(Web UI)自动感知变化,会话重新出现在其原始工作区槽位(归档从不触碰会话日志或工作区记账)。
安装
dsh plugin --profile web add github:fuzz1og/dsh-archive-manager
然后在 cordis.patch.yml(profile patch 层)插入:
- insert:
- id: archive-manager
name: 'dsh-archive-manager'
重启 DSH 后生效。
工作原理
| 环节 | 说明 |
|---|---|
| 宿主半区 | POST /archive-manager/unarchive —— 从注册表全局归档集合移除会话 id(走操作队列与状态写入,保持一致) |
| 客户端半区 | sidebar.footer.action 槽位注册入口 + 归档会话面板 |
| 依赖 | webServer + workspaceRegistry,零运行时依赖 |
License
MIT