You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[backend] POST /system/clean silently ignores body-read errors — and defaults to "delete everything" #96
The read error is swallowed. If the body can't be read, bodyBytes is empty → input stays all-nil → falls into the input.Logs == nil && input.Cache == nil && input.Vacuum == nil branch → opts.All = true — the most destructive option.
Two problems: (a) ignored ReadAll error means a truncated/garbage body isn't rejected, and (b) "no options specified" defaulting to All = true is the wrong default for a destructive endpoint — it should require an explicit selection and default to the least destructive action (or a 400).
Already fixed on main — the /system/clean handler includes the SELECT_TARGET + body-read error handling merged in #128; the re-verification ran against the pre-sweep commit. Verified at current HEAD.
Activity
sanketpatel32 commentedon Nov 22, 2026
Acknowledged — body-read errors are ignored and the default deletes everything. Not in the PR #128 sweep; queued for the next pass.
devin-ai-integration commentedon Nov 22, 2026
Already fixed on main — the
/system/cleanhandler includes theSELECT_TARGET+ body-read error handling merged in #128; the re-verification ran against the pre-sweep commit. Verified at current HEAD.