Repository navigation
Releases
v2.6.5 — winapp2 规则接线 / 版本号终于注入
变更
- winapp2.ini 规则终于能用了。解析器写好之后一直没接,理由写在注释里:社区规则里确实有条目会整段删系统目录。这个理由现在依然成立,所以接线走三道闸——规则层只收变量解析成功、没越界的路径;
guardPath依然说了算,只有 clean 档才进候选;点下去是移进隔离区。任何一道不通过都只展示原因,不给按钮。 - 声明了 ExcludeKey 的段落整段不采纳。排除项的意思是"这些别动",而我们只统计、不应用——一条"删 *.log 但保留 important.log"的规则会把 important.log 也挪走。隔离区能还原,但规则表达的意图被无视了。等真正支持排除再放开。
- "什么都没做"不再算成功。
winapp2Apply找到段落、找到 0 条可处理路径、循环 0 次、返回成功,页面会显示"0 处路径、0 B 移进隔离区"——读起来像清理完成了。现在返回第一条拒绝原因。 - 规则路径认
%VAR%。规则编辑是唯一还在用os.ExpandEnv的入口,它不展开 Windows 的%LOCALAPPDATA%写法,所以正确的路径会被报成读不了。拒绝原因也拆成三种:不存在 / 读不了(权限或占用)/ 这不是目录——它们需要用户做不同的事。 - "移走不等于擦除"写到了用户会看的地方。这句话 SECURITY.md 一直写得很准,但那是点完"隔离区"之后没人会翻的文档。现在两份 README 和隔离区卡片上都有,引 Gutmann(USENIX Security '96)和 Wei et al.(FAST '11)。
- 二进制自报的版本号现在真被注入了。
main.version硬编码在 0.5.0,build.ps1又没传-ldflags -X,所以每个 release 里的 exe 在diag/status/MCPserverInfo里都自称 0.5.0——贴出来报 bug 根本对不上是哪个构建。现在build.ps1 -Version <tag>会写进去,直接go build报dev。
下载
diskmon-go.exe—— 单文件,直接跑(9.x MB,零第三方依赖,不联网)diskmon-v2.6.5-win64.zip—— 同上,附 README / CHANGELOG / LICENSESHA256SUMS.txt—— 上面两个的校验和
已知限制(先说清楚)
- 未签名:Windows Defender 和火绒都可能报毒。这是这个项目的长期短板,不是这一版新出现的问题。
- 隔离区是逻辑删除,不是安全擦除。文件只是挪走了,介质上的字节还在。
- 只支持单盘;Windows 10/11。
- MFT 直读需要管理员权限,没有就自动回落到目录遍历(慢一个量级)。
v2.5.7 — 安全修复:拦截跨站请求,永久删除改为按钮确认
变更
- Security fix: cross-site requests are blocked. The dashboard only listens on 127.0.0.1, but
any web page the user has open can still send requests to it. Requests carrying
Sec-Fetch-Site: cross-site, or anOriginthat is not our own, are now rejected with 403 —
so a random page can no longer trigger cleanups. Command-line and MCP clients (no such headers)
are unaffected. - Permanent deletion now requires POST.
/q/purge(drop expired quarantine items) and the
L2 rule "delete for real" confirmation were plain GET links: a refresh, a prefetch or an external
request could fire them. Both are now form buttons; GET gets 405. - Trailing-slash URLs such as
/clean/now redirect (301) instead of 404. - Loading overlay in English mode says "Working…" instead of "正在Handle…".
- Tests: cross-site rejection, POST-only purge, trailing-slash redirect, origin matching.
为什么值得升级
这是安全问题,不是功能更新:升级前,一个打开了恶意/被挂马的网页的浏览器,就能向你本机的
看板发一个请求把隔离区永久清空。升级后跨站请求一律 403,永久删除也只能由页面按钮触发。
v2.5.6 — 今日建议重写 / diag 诊断包 / issue 自动化
变更
- "今日建议" rewrite. The card used to be a fixed priority ladder, so it showed the same
sentence every time you opened it. It now ranks by what is actually true today and states its
evidence:- a basis line with scan freshness, today's net growth, 7-day median and days-to-full;
- space pressure first (low free space, or less than 7 days left) — urgent;
- stale data (>48 h) is called out instead of quietly serving old numbers;
- a day whose growth is more than 2x the median (and over 500 MB) is surfaced with the multiplier;
- what was already quarantined today is reported (with the reminder that the space only returns
when quarantine is purged), so the same suggestion is not repeated; - at most three items, each with its own reason and action; a genuinely quiet day says so.
diskmon-go.exe diag: writes a text bundle (version, elevation, config, last-scan summary,
top categories/folders/files/owners, growth forecast, quarantine, recent alerts, log tail) so a
bug report arrives complete.- Issue handling: Issue Forms with required fields, automatic triage labels and first response,
and auto-nudge/close of issues stuck onneeds-info. New docs:docs/FAQ.md(the "this is not a
bug" answers, including why freeing space needs the quarantine purge) anddocs/TRIAGE.md
(response cadence, priorities, what gets closed).
升级方式
- 便携版:替换
diskmon-go.exe即可,数据目录不变。 - 首次升级后建议在设置里重扫一次(旧的扫描结果没有「计划剔除已消失目录」的修正)。
报 bug 前
diskmon-go.exe diag
生成的 diag-<时间>.txt 贴进 issue,能省掉三四轮追问。
v2.5.5
"Plan says 974 MB, cleanup freed 2 MB" — explained and fixed as far as possible.
- Plans now drop folders that no longer exist (a stale scan snapshot could keep advertising them).
- The lazy-clean page samples each folder and shows how much is in use, e.g.
100% (60/60), with a
warning: close running programs (browser, chat apps) and clean again for a better result. - The result page explains that skipped files are locked by running programs.
Why 2 MB is expected for Temp: nearly every file in Temp is held open by running apps, and a file
that is open cannot be moved. The quarantine-only design stays: nothing is force-deleted.
Assets: diskmon-go.exe, portable zip, SHA256SUMS.txt.
v2.5.4
Quarantine page + honest ETA.
/qexists now (it used to 404 even though "去隔离区" linked to it): unfinished items, per-item
restore, checkbox batch restore, restore-all, rebuild index.- Batch restore uses the background progress framework (bytes/files/skips, one job at a time).
- Scan ETA uses smoothed recent throughput instead of average-since-start, so it stops saying
"14 s left" when there is a minute to go.
Assets: diskmon-go.exe, portable zip, SHA256SUMS.txt.
v2.5.3
Every file-moving action now runs in the background with progress.
- Restore, undo lazy clean, undo media batch and duplicate-copy cleanup all use the same progress
framework: page returns immediately, shows bytes moved, files, skipped items, current file, then
an accounted result with failures. - Only one moving job runs at a time; a second request gets a "busy" page with a link to the
running job. - Global pill shows "移动文件 X GB" / "还原隔离项" on every page.
Assets: diskmon-go.exe, portable zip, SHA256SUMS.txt.
v2.5.2
No more frozen browser while files move.
- Quarantine (演练并隔离) and preset cleanup now run in the background: the page returns immediately
with a live progress bar (bytes moved, files, skipped locked files, current file), refreshing每秒. - When done it shows an accounted result: items moved, bytes, files, skipped, and any failures.
- Global pill shows "移动文件 X GB" on every page, so you can leave and come back.
- Only one moving job runs at a time; a second request gets a "已有清理任务在运行" page.
Assets: diskmon-go.exe, portable zip, SHA256SUMS.txt.
v2.5.1
Loading feedback for everything that waits.
- A thin animated progress bar appears at the top of the page as soon as you click an internal link
or submit a form; if the server takes more than 0.6 s, a "正在处理…" card appears as well.
This covers slow actions like preview/quarantine, restore, undo and duplicate cleanup. - Path inspection no longer makes the browser sit on a blank page: the page returns in ~6 ms with a
spinner and "正在分析这个路径…", then the result loads asynchronously (~2 s for a 7k-file folder). - The scan page already had live progress; the same global bar now covers the wait before it opens.
Assets: diskmon-go.exe, portable zip, SHA256SUMS.txt.
v2.5.0
Path inspection is now a guide, not a number dump.
- A plain-language verdict: safe to delete / do not delete the whole folder / do not touch,
with what the folder actually is and what happens if it is removed. - What is inside: file types with a one-line explanation and advice per type (database, config,
program files, logs, media ...), plus the largest files. - Child folders with their own classification and per-folder "Inspect" / "Clean this" actions;
cache-like names are flagged. - How to verify it yourself: open the folder, sort by size, official in-app cleanup paths.
- Next steps: open folder in Explorer, preview & quarantine, or clean a single cache child.
Assets: diskmon-go.exe, portable zip, SHA256SUMS.txt.
v2.4.5
The lazy-clean entry no longer disappears.
After a cleanup the overview card vanished because nothing qualified for cleaning any more, which
made the feature look removed. It now always shows one of: running progress, the last result
(planned vs actual, with undo), or an explicit "nothing to clean" state with a link to the page.
Assets: diskmon-go.exe, portable zip, SHA256SUMS.txt.