anthropics / anthropics/claude-code

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

Aperta
#93,287 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area:sandbox bug data-loss high-priority platform:macos
Lingua principale
Python
Stelle
145k
Fork
23.1k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

**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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
kotlin, macos
Ambito
cli, operating-systems, security
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Attiva
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.