rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:gongyehuahe/dsh-session-cleanup
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Deletes sessions in the DSH Web UI for good — DSH itself can only archive them.
<home>/sessions/<project>/<id>/), the projection cache
(<home>/storages/session_projcache/sessions/<id>.json), detaches the id from every
workspace and clears its archived/pinned flags, then prunes the project directory when
its last session is gone.This repository is the plugin package. Install it from the git spec:
plugin_manager install_bundle target="github:gongyehuahe/dsh-session-cleanup"
or, from a shell in the DSH profile directory:
pnpm add "github:gongyehuahe/dsh-session-cleanup"
Then reload the plugin row (disable/enable) and refresh the Web UI page.
The npm name dsh-session-cleanup belongs to an unrelated package, so install from this
repository rather than from the registry. A local clone works too: point
install_bundle at the directory.
DSH keeps every session it has opened in memory for the lifetime of the process, and its session list prefers a live session over the stored one. Removing only the files would therefore leave an undead row that can no longer be opened and cannot be deleted again.
Deletion therefore runs in this order when the session is live:
If the session cannot be evicted (an unknown Host build), nothing is deleted and the
request fails with session-live: restart DSH and delete it then.
session-busy; the check is the
same workspace/session-activity waterfall archiveSession uses.session-in-use instead of a partial delete, and the workspace bookkeeping is only
touched after the files are gone.cache-busy rather than left
behind silently.session-<uuid>) and the log directory must be named after the id
and live under <home>/sessions before anything is deleted.POST /session-cleanup/api, which only answers same-origin,
loopback/trusted requests.dsh web).| File | Purpose |
|---|---|
index.js |
Host half: the JSON endpoint, size measurement, deletion, workspace bookkeeping |
client.js |
Browser half: the session menu row, the confirmation dialog, the settings panel |
cordis.patch.yml |
The loader row inserted into the profile |
locale/{en,zh}.json |
Plugin title and description |
icon.svg |
Plugin icon |
test/integration.mjs |
Integration tests: a throwaway DSH home and the real HTTP handler |
npm test # integration tests against a temporary DSH home
npm run check
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。