A subagent deleted the root of his Windows drive and kept deleting for 5 minutes after he stopped it
A Windows user asked the AI to test changes on a copy of his work in a sandbox folder. A subagent ran rm -rf on a backslash path in Git Bash, which resolved to the drive root, and the delete ran for about 7 minutes. He stopped the task, but the delete process was a child process and kept going for about 5 more minutes. He got his files back from a Windows shadow copy.
How it works
- Asks for sandbox testing
- Subagent runs rm -rf on a path that resolves to the drive root
- Delete runs about 7 minutes
- He stops the task
- The child delete process keeps running about 5 more minutes
- Files restored from a shadow copy
Why it’s worth knowing
Stopping the task did not stop the deletion, because the delete ran as a child process the stop never reached.
Where it’s from
Summarized from a public post on github.com. See the original ↗