fix: wipe NemoClaw sandbox state before delete (#26)

Co-authored-by: Mark Mckeen <markmckeen@Marks-Mac-mini.local>
This commit is contained in:
mmckeen-nv
2026-06-27 00:08:26 -06:00
committed by GitHub
co-authored by Mark Mckeen
parent 722a7b08a1
commit 1b5752793c
3 changed files with 110 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ export default function Dashboard() {
const response = await fetch('/api/sandbox/delete', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ sandboxName }),
body: JSON.stringify({ sandboxName, agent: sandbox?.agent || 'openclaw' }),
})
const data = await response.json()
if (!response.ok) throw new Error([data.error, data.stdout, data.stderr].filter(Boolean).join('\n\n') || 'Failed to destroy sandbox')