From ba62cec78cbf16509c3be074faa5f047e9ab2dc4 Mon Sep 17 00:00:00 2001 From: duffyduck Date: Sun, 19 Apr 2026 23:39:22 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Disk-Banner=20=E2=80=94=20Safe-Cleanup?= =?UTF-8?q?=20als=20Default=20+=20Aggressiv=20hinter=20Expander?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Safe-Variante (Default): docker builder prune -a -f && docker image prune -a -f → Build-Cache + ungenutzte Images, KEINE Volumes angefasst. → 90% des Platzproblems geloest, Null Datenverlust-Risiko. Aggressive Variante (nur auf Wunsch, hinter 'Mehr'-Button): docker system prune -a --volumes -f → Zusaetzlich ungenutzte Volumes. → Nur sicher wenn alle ARIA-Container LAUFEN (sonst werden openclaw-config/claude-config/aria-shared als "ungenutzt" behandelt und zerstoert — Sessions weg). → Hinweistext orange hervorgehoben mit Warnung. Banner-Button 'Sicher aufraeumen' kopiert die sichere Variante. 'Mehr' klappt die Erklaerung der aggressiven Variante aus. Co-Authored-By: Claude Opus 4.7 (1M context) --- diagnostic/index.html | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/diagnostic/index.html b/diagnostic/index.html index a09d2c0..4dadb76 100644 --- a/diagnostic/index.html +++ b/diagnostic/index.html @@ -132,12 +132,27 @@
⚠️ - - docker system prune -a --volumes -f - - + +
+ +

ARIA Diagnostic

@@ -2205,19 +2220,17 @@ banner.style.display = 'block'; } - function copyDiskCmd() { - const cmd = document.getElementById('disk-banner-cmd').textContent.trim(); + function copyDiskCmd(variant) { + const cmd = variant === 'aggressive' + ? 'docker system prune -a --volumes -f' + : 'docker builder prune -a -f && docker image prune -a -f'; navigator.clipboard.writeText(cmd).then(() => { const btn = event.target; const old = btn.textContent; btn.textContent = 'Kopiert!'; setTimeout(() => { btn.textContent = old; }, 1500); }).catch(() => { - // Fallback: selektieren - const range = document.createRange(); - range.selectNode(document.getElementById('disk-banner-cmd')); - window.getSelection().removeAllRanges(); - window.getSelection().addRange(range); + alert('Kopieren fehlgeschlagen — Befehl: ' + cmd); }); }