fix: wipe NemoClaw sandbox state before delete (#26)
Co-authored-by: Mark Mckeen <markmckeen@Marks-Mac-mini.local>
This commit is contained in:
co-authored by
Mark Mckeen
parent
722a7b08a1
commit
1b5752793c
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user