liangmianya/dsh-synapse
liangmianya/dsh-synapseDeepSeek Harness 的可视化非线性对话工作区:把会话、追问与分支变成可浏览、可拖拽的对话地图。
为 DeepSeek Harness 工作区侧栏增加会话一键永久删除:行悬停垃圾桶按钮、菜单项、确认框、运行中保护、派生会话级联,并清理会话日志目录、投影缓存与工作区记账。
A DeepSeek Harness (DSH) plugin that adds one-click permanent Session deletion to the Workspace sidebar, plus a lightweight confirmation dialog.
DSH ships archive-only Session management: the persistence layer has no delete API, and the Session list is a core surface that does not expose permanent removal. This plugin adds that operation through the official extension slots — no DOM injection, no patching of shipped UI.
... menu, after the shipped Session-ID row.parentSession), the first attempt is refused with their count. The confirmation dialog then offers one more explicit step — "Delete all N sessions" — and the subtree is removed children-first. A live descendant refuses the whole operation.<DSH_HOME>/sessions/--<cwd>--/<sessionId>/ (every format generation). The canonical log files are renamed to *.deleted-<timestamp> first — the single atomic commit point; a Session without a canonical log is immediately invisible to list/stat/open — then the directory is removed best-effort;session_projcache storage domain, through the domain write chain so memory and disk stay consistent;# from GitHub (works today)
dsh plugin --profile <your-profile> add github:LINJJ749/dsh-one-click-session-delete
# or from npm, once published
dsh plugin --profile <your-profile> add dsh-one-click-session-delete
Replace <your-profile> with your profile name (for example desktop or web), and LINJJ749/dsh-one-click-session-delete with this repository. The package declares the dsh.bundle manifest, so dsh plugin add installs and mounts it without any manual patch edit.
Hover a Session row in the Workspace sidebar and click the trash button, or open the row's ... menu and choose Delete session. Confirm in the dialog. The row disappears; the Session's local records are gone permanently.
To merely hide a Session and keep its records, use the shipped Archive session action instead.
sessionPersistence service, falling back to the launcher-provided home path; nothing is hard-coded.POST /session-delete/api/delete) protected by the Host's connection trust fence; the Client half adds slot registrations only.0.2.1-rc.2 (tested). Uses webServer, connection, sessionPersistence, storageDomain, workspaceRegistry, sessionQuery, agents, sessions Host services and the sidebar.workspaces.session.row.action / sidebar.workspaces.session.menu.item / shell.overlay Client slots.DSH(DeepSeek Harness)工作区侧栏增强插件:给侧栏会话行增加一键永久删除,并附带一次轻量确认。DSH 官方只支持归档;持久化层没有删除接口。本插件通过官方扩展 Slot 实现该操作,不注入 DOM、不改官方 UI。
... 菜单项:与按钮同一操作,位于官方「复制会话 ID」之后。parentSession 的分叉)时,首次删除被拒绝并返回数量;确认框再给出「一并删除 N 个会话」,按先子后父删除整棵子树;子树内有运行中会话则整体拒绝。<DSH_HOME>/sessions/--<cwd>--/<sessionId>/ 下该会话自己的日志目录(全部格式代际):先把 canonical 日志改名为 *.deleted-<时间戳>(唯一原子提交点,此后该会话对 list/stat/open 立即不可见),再尽力删除目录;session_projcache 存储域中该会话的投影缓存记录(走领域写链,内存与磁盘一致);sessionIds、归档集合与置顶集合中摘除。dsh plugin --profile <profile 名> add github:LINJJ749/dsh-one-click-session-delete
包内声明了 dsh.bundle 清单,dsh plugin add 会自动写入 profile 的 bundle 层,无需手工改 cordis.patch.yml。
在左侧工作区侧栏把鼠标悬停到会话行上,点击垃圾桶按钮;或打开该行的 ... 菜单选择「删除会话」,在确认框中确认。该行会消失,本地记录永久删除。
只想从侧栏收起、保留记录时,请使用官方「归档会话」。
sessionPersistence 服务,回退到启动器提供的 home 路径,不硬编码。POST /session-delete/api/delete),由 Host 的 connection 信任栅栏保护;Client 半只做 Slot 注册。0.2.1-rc.2(已实测)。使用 webServer、connection、sessionPersistence、storageDomain、workspaceRegistry、sessionQuery、agents、sessions 等 Host 服务与 sidebar.workspaces.session.row.action / sidebar.workspaces.session.menu.item / shell.overlay 三个 Client Slot。MIT