anthropics / anthropics/claude-code
[Bug] Claude Code deleted my entire MacBook Applications directory contents - WTF
- 主要言語
- Python
- スター
- 145k
- フォーク
- 23.1k
- PR マージ指標
- PR 指標を取得中
説明
**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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- kotlin, macos
- 領域
- cli, operating-systems, security
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 活発
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100