anthropics / anthropics/claude-code

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

Offen
#93,287 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:sandbox bug data-loss high-priority platform:macos
Vorherrschende Sprache
Python
Sterne
145k
Forks
23.1k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
kotlin, macos
Bereich
cli, operating-systems, security
Issue-Typ
Bug
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Aktiv
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.