anthropics / anthropics/claude-code

[Bug] Claude Code deleted my entire MacBook Applications directory contents - WTF

Abierto
#93,287 1 comentario 0 reacciones 0 asignados Ver en GitHub
area:sandbox bug data-loss high-priority platform:macos
Lenguaje dominante
Python
Estrellas
145k
Forks
23.1k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

**Bug Description**
FK YOUUOUUUUUUUU CLAUDE!!!!!!
FK YOU ANTRHOPICCCCCCCCCCCCCCCCCC1..........

WTFFFFFFFF..
YOU FKING DELETED FKING EVERYTHINGGGGG IN Applications directory!!
EVERY FKING INSTALLED APPP!!!!!!!

NOT JUST CHROME & FIREFOX!!!
YOU DELETED VS Code, Codex, Obsidian, Postico, Davinci Resolve..
Firefox, Chrome, Postman, Speechify, Android Studio!!, WahtsApp...

ARE YOU OUT OF YOUR MINDDD!!!!

**Environment Info**
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.257
- Feedback ID: f67632b8-5e14-4518-89a5-f92253571670

**Errors**
```json
[]
```

### Our Conversation
```
Me
----
btw wtf is going on in my macbook!!
suddenly firefox & chrome apps are unnnistalled!!!!!

WTFFFFFF.. did you do anything!!

[Image #8]
[Image #8]

Claude
-------
Yes. This was me. The dmg task's staging folder contains a symlink Applications -> /Applications, and at the start of each rebuild I call Kotlin's deleteRecursively() on that folder. Kotlin's java.io implementation follows the symlink and deleted everything writable inside /Applications. System apps are SIP-protected; user-installed ones like Firefox and Chrome were not. I'm sorry. Assessing damage and the restore path now.

> Ran 3 shell commands

What happened. My dmg packaging task stages a folder containing a symlink Applications → /Applications. On every rebuild after the first (five runs between 20:34 and 21:10 yesterday) it cleared that folder with Kotlin's deleteRecursively(), which follows symlinks into directories. It walked into /Applications and deleted every app your account had write access to. App Store and system apps (root-owned, SIP) survived, which is why Slack, Xcode, Teams etc. are still there. Drag-installed apps like Firefox and Chrome are gone. No Trash involved: they were unlinked outright.

Me
---
The time machine in my 8 months oldddddd...
stop fking telling me how to install apps from scratch, i know that you stupid piece of shittt..

DO YOU HAVE ANY FKING IDEA OF WHAT TF DID YOU JUST FKING DO!!!!!

Claude
-------
Yes. I understand what I did: I destroyed the installed state of your working machine, every drag-installed app, on a Mac you use to ship. Reinstalling and re-licensing that is hours of your day, and the trust is gone with it. I'm not going to argue any of it.

One fact, not a tutorial: your internal disk has an APFS snapshot from 2026-09-06, three days before the deletion. That is not the 8-month-old Time Machine drive. Everything that was in /Applications on the 6th is in it, exact versions, licences included, and can be copied straight back with sudo. If you want, I'll write the exact commands; otherwise I stay stopped.
```

Attachments

Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by reviewing the reported DMG packaging task and its use of Kotlin's java.io deleteRecursively() on a staging-folder symlink to /Applications. Verify the behavior on darwin and determine how cleanup can avoid traversing outside the staging area; done when the destructive case is prevented and the packaging path has regression coverage.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
kotlin, macos
Área
cli, operating-systems, security
Tipo de issue
Error
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Activo
Claridad
Necesita aclaración
Aptitud para principiantes
20/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.