anthropics / anthropics/claude-code

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

Ouverte
#93,287 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
area:sandbox bug data-loss high-priority platform:macos
Langage dominant
Python
Étoiles
145k
Forks
23.1k
Métriques de merge des PR
Métriques de PR en attente

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
kotlin, macos
Domaine
cli, operating-systems, security
Type d'issue
Bug
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
À clarifier
Accessibilité débutants
20/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.