Skip to content

Releases

v1.6.14 - stop double-clean races, tell why entries were skipped, refresh capacity cards

Choose a tag to compare

@stallenlu stallenlu released this 23 Nov 01:19

1.6.14 — stop double-clean races, tell why entries were skipped, refresh capacity cards

Two bugs that both looked like "the clean didn't work":

  • Double-clean race. A double-clicked confirmation, or two clean entry points fired in the same tick, used to launch two full scans of the same folders, racing to unlink the same files. One run deleted a file, the other then hit ENOENT; the skip counter exploded to ~68k. A synchronous in-flight lock now makes the second call a no-op.
  • Skips now explain themselves. Failed entries carry an errno breakdown (gone / locked-or-denied / other), so the result banner says why entries were skipped instead of showing a bare number.
  • Capacity cards refresh. The drive cards no longer stay frozen at the first reading. They re-read live statfs numbers on every scan and every panel mount, so after a clean they show the freed space immediately.

node smoke.mjs: 129 passed, 0 failed.

v1.6.13 - 全选 reaches folded groups

Choose a tag to compare

@stallenlu stallenlu released this 17 Nov 21:41

"Select all" now selects every rebuildable target even when its group is folded, so the clean buttons never silently refuse a click. A click with nothing selected shows a clear hint instead of doing nothing. No change to what gets measured or deleted.

v1.6.12 - volume gauges drawn like dsh-cost-meter

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 13:32

The volume gauges now use the shape dsh-cost-meter uses for its balance card: one hairline card per drive, label and percentage on one line, a 6px track on layer-3, a blue fill, and free space under the bar.

Warn (>=80%) and critical (>=92%) tint the card edge and the percentage, not just the fill.

No change to what gets measured or deleted.

v1.6.11 - a finished clean lands back on the same screen

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 12:14

A finished clean lands back on the same screen.

Cleaning never reloaded the page, but three things after the last byte made it look like it did:

what happened why it read as a restart
The rescan that follows a clean flipped the busy flag cleaning → scanning → idle every button changed label and disabled state twice
Each section that had just been emptied hit 0 B, and a 0 B section auto-folds rows disappeared and the list lost half its height
The panel is its own scroll container the shortened list clamped the viewport back to the top

The rescan is now quiet (it no longer touches the busy flag), the groups that were open are
pinned across it, and the scroll offset is restored afterwards — you land on the same
screen you were on.

Also in this release: the harness's own updater folder
(%LOCALAPPDATA%\@deepseek-ai\dsh-desktop-updater) is treated as host-owned, so the
app-updaters target can no longer delete the payload that updates the running app. 1.6.10
only covered the host's Chromium profile.

Four regression assertions cover the quiet rescan, the pinned groups, the restored scroll
offset and the updater exclusion. node smoke.mjs → 120 passed, 0 failed.

v1.6.10 - cleaning no longer restarts the harness

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 11:26

The harness was cleaning its own caches.

app-caches listed %APPDATA%\@deepseek-ai\dsh-desktop — the Chromium profile of the process
drawing the panel. Emptying Cache, Code Cache, GPUCache and GrShaderCache made Chromium
rebuild them at once and reload the renderer, so a finished clean looked like the plugin
hot-restarting instead of returning to its own screen.

  • Those four folders are dropped from the target.
  • resolveTargets() now refuses any path inside the host's data folder, so a later target
    definition cannot add them back.
  • The rest of app-caches (WPS, FTNN, Qoder, Trae, WeChat devtools, appGallery) is unchanged.

Two regression assertions cover both halves: the path is absent from the catalog, and the guard
that would catch it lives in resolveTargets. node smoke.mjs → 116 passed, 0 failed.

No other behaviour change.

v1.6.9 - the confirmation follows the panel theme

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 10:52

What changed

The one white box left in a dark panel is gone.

The confirmation used to be window.confirm, which the browser draws outside the document: it cannot see color-scheme, the dsh-design-baseline tokens or the host's dark theme, so a dark panel got a light rectangle in the middle of it.

It is now a dialog the panel draws itself:

  • the same information — how many targets, how much in total, every target with its size, and anything irreversible called out separately
  • painted with --dsb-*, so it follows light and dark exactly like the rest of the panel
  • dismissible with Escape, a click on the overlay, or Cancel
  • the destructive button deliberately holds no focus, so a stray Enter cannot delete anything
  • the plan-step confirmation goes through the same component, so a plan step and the main button ask the same question the same way

No behaviour change beyond the painting: the same ids, the same ages, the same guards.

Verification

  • node smoke.mjs — 114 assertions, 0 failed
  • A render probe drives the real component tree through scan → select → click → cancel → confirm, asserting the dialog appears, lists the targets, shows the irreversible line, sends nothing on cancel, and sends exactly one clean with confirm: true on confirm
  • dsh-design-baseline check.mjs: PASS (no hardcoded neutral, no private accent, no unknown --dsb- token)
  • Origin gate re-checked: all 11 cases pass, including the localhost origin that 1.6.7 got wrong

Install

dsh plugin --profile <profile> add dsh-disk-cleaner

Or the prebuilt tarball attached below, which skips DSH's build-approval step.

v1.6.8 — the panel gate is judged by the connection

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 10:26

v1.6.8 — the panel gate is judged by the connection

1.6.7 fixed half of the lockout. The other half was still there: the panel kept answering
origin rejected on Evaluate.

What was wrong

The route compared Origin against http:// + Host literally. The desktop window can send
Origin: http://localhost:<port> while the request itself arrives on 127.0.0.1, and then the
two strings differ even though both name the same machine — so the plugin refused its own panel.

The fix

The gate now decides on req.socket.remoteAddress, the peer address of the connection,
which a remote page cannot influence. Only after that is Origin inspected:

Connection Origin Result
loopback socket dsh-app://app 200
loopback socket absent / null 200
loopback socket http://localhost:<any port> 200
loopback socket http://127.0.0.1:<any port> 200
loopback socket https://evil.example 403
non-loopback socket anything 403

::1 and ::ffff:127.0.0.1 are treated as loopback too.

The three assessment error paths (evaluate, reveal, run-a-plan-step) now go through the same
describeError path as the rest of the panel, so a Chinese user reads 「请求来源不被接受」 instead
of the raw origin rejected string.

Verification

  • node smoke.mjs — 110 assertions, 0 failures.
  • An 11-case behavioural gate check drives the real route handler with fake sockets: every case
    above passes, including the exact combination 1.6.7 got wrong.
  • node check.mjs — the panel still carries dsh-design-baseline, no host token outside the block.

Installing from this release skips DSH's build-approval step:

dsh plugin --profile <profile> add https://github.com/stallenlu/dsh-disk-cleaner/releases/download/v1.6.8/dsh-disk-cleaner-1.6.8.tgz

v1.6.7 — the panel can reach its own API again

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 10:13

v1.6.7 — the panel can reach its own API again

Regression fix. 1.6.6 tightened the route's origin gate until it also refused the plugin's
own panel: the desktop window posts from dsh-app://app, which no http://127.0.0.1:<port>
comparison can ever match, and the desktop forwarder can strip the Origin header entirely.
Users saw "请求来源不被接受:请从面板里操作" on the first scan.

The gate now accepts both of those, but only when the request already arrived on a loopback
address. A web page cannot reach a loopback port without sending an Origin, so the protection
the change was for is untouched.

No other behaviour changed — this release is the origin gate and the documentation that
describes it.

Verify

node --check lib/index.js && node smoke.mjs   # 110 passed, 0 failed
request before 1.6.7 1.6.7
Origin: dsh-app://app, loopback Host (the real panel) 403 200
no Origin header, loopback Host (forwarded panel) 403 200
Origin: https://evil.example, loopback Host 403 403
no Origin, non-loopback Host 403 403
dsh plugin --profile <profile> add https://github.com/stallenlu/dsh-disk-cleaner/releases/download/v1.6.7/dsh-disk-cleaner-1.6.7.tgz

v1.6.6 — show what was already measured

Choose a tag to compare

@stallenlu stallenlu released this 13 Nov 09:27

1.6.6 — show what was already measured

Nothing new is measured; the results now reach the screen.

  • Dry run next to Clean: the same request without confirm, so "what would this free" is answerable before anything is deleted. It never asks for confirmation, because it deletes nothing.
  • The clean banner survives the rescan that follows it. It used to be erased one line later, so the result was effectively invisible.
  • Plan steps name targets in words (Temp, pnpm store) instead of printing npm-cache, chrome-cache, pip-cache.
  • An empty plan says "nothing worth doing right now" instead of rendering a blank.
  • Route errors carry a stable code; the panel translates it. A Chinese user never reads origin rejected or unknown target: x.
  • Clean history: every real clean appends one line to $DSH_HOME/dsh-disk-cleaner/history.jsonl; a panel reads it back and copies it out as CSV.

Under the hood: scan walks four targets at a time instead of all 32 at once, the Windows targets follow SystemRoot instead of a hardcoded C:, a request without an Origin header is refused, and a refused directory removal is counted separately from a legitimately full one.

node smoke.mjs → 110 assertions, 0 failed. Baseline check: PASS: every host token exists, every reference has a fallback, no hardcoded neutral, no private accent, no unknown --dsb- token.

v1.6.5 - documentation only (install links match what they name)

Choose a tag to compare

@stallenlu stallenlu released this 10 Nov 10:18

Documentation-only release.

  • The prebuilt-tarball link in the install section said v1.6.3 while resolving to the v1.6.4 tag; it now says v1.6.5 and resolves to v1.6.5.
  • The catalog paragraph said the awesome-dsh-plugin entry (PR #12970) was pending review; it merged on 2026-11-07, so the docs now say merged.

No code changes. 98 smoke assertions still pass.