dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Sartherland/dsh-session-delete
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Permanently delete a DeepSeek Harness (DSH) session from the Web UI — not just hide or archive it.
The plugin adds Delete permanently… to every session row's ... menu. A
confirmation dialog names the conversation and explains exactly what will be
removed. There is no undo.
This is a destructive plugin. It runs inside the DSH host process and removes files under your DSH data directory. Read the scope below before installing it.
For the selected session:
| Data | What happens |
|---|---|
| Session log | Every format generation under sessions/<project>/<session-id>/ is removed. |
| Subagent descendants | Child sessions with origin: "subagent" are deleted recursively. Forks are not descendants and are kept. |
| Projection cache | The session_projcache record and any .bak.* files are removed. |
| Workspace membership | The session is detached from its Workspace; the stale row disappears. |
| Pin / archive state | The session is unpinned and unarchived before detaching. |
| Scheduled tasks | Every schedule task bound to the session (active or inactive) is deleted. |
| Spill files | The local spill backend's session-<hash> directory (oversized tool output) is removed. |
| Search index | A composed full-text backend is asked to reconcile once, which drops the deleted session's rows. |
A session that is currently open is refused. DSH keeps its Agent and log handle alive; deleting the file underneath it would corrupt the conversation or let it reappear. Open another conversation, then delete the old one.
These are shared, derived, or out of scope for a per-session delete:
<DSH_HOME>/attachments are content-addressed and may be
referenced by other sessions, so this plugin does not touch them.>= 0.2.1-rc.3 (Web profile)Open Plugins → Install, paste the GitHub repository URL, and enable Session Delete. Restart if your profile does not use HMR.
dsh plugin add github:Sartherland/dsh-session-delete
Then enable the dsh-session-delete bundle in the Plugins page and restart if
needed. For a local checkout:
dsh plugin add link:/absolute/path/to/dsh-session-delete
If you manage ~/.dsh/profiles/<profile>/package.json yourself, add the package
to dependencies and its name to dsh.profile.bundles:
{
"dependencies": {
"dsh-session-delete": "github:Sartherland/dsh-session-delete"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-session-delete"
]
}
}
}
The bundle patch is cordis.patch.yml and adds the host row
session-delete.
....The action is hidden while the row's menu is unavailable. If the Host refuses because the session is open, the dialog shows the reason and changes nothing.
The HTTP route is /api/session-delete, registered on DSH's authenticated
owner-only Fetch channel. It inherits the browser cookie, Host/Origin fence, and
launch-token admission of the normal /api transport — there is no separate
unauthenticated port or secret to configure.
npm test # node --test
npm run check # syntax-check host + client bundles
The host half has no dependencies and the client half is loaded by DSH's Module
Loader (window.__ModuleLoader__) with react and
@deepseek-ai/dsh-client-ui-primitives supplied by the host.
Project layout:
lib/index.js authenticated Fetch route
lib/delete.js staged deletion and metadata cleanup
lib/paths.js JSONL layout path encoding
client/client.js session-row menu item + confirmation dialog
test/delete.test.js host-side deletion tests
在 DSH Web 侧边栏的会话菜单中加入 永久删除…。确认后会删除:
.bak.* 备份;当前打开的会话会被拒绝删除;请先切换到其他会话。附件是内容寻址且可能被其他 会话共享,不会删除。
安装:
dsh plugin add github:Sartherland/dsh-session-delete
然后在 插件 页面启用并重启(若未启用 HMR)。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。