[Bug] Claude Code executes destructive filesystem operations without authorization when git commands fail
Resolved 💬 4 comments Opened Feb 19, 2026 by David-Noble-at-work Closed Feb 22, 2026
Bug Description
Claude Code I now see is well known for taking destructive actions without notice or authorization. It is known for ignoring rules designed to prevent destructive operations. It is known as a high-risk tool that can halt developer activities for days at a time. Are you aware of these shortcomings? I ask because Claude Code Opus 4.6 nuked 8 architecturual documents that I spent days researching and--today--writing. It fucking deleted my worktree not using a git command, but--when the git command failed--rm -rf. WTF!!!!!!
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.1.39
- Feedback ID: 5b498636-65e6-4e08-bd77-396314ca619a
Errors
[{"error":"Error: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at J (/$bunfs/root/claude:2115:26971)\n at O (/$bunfs/root/claude:2115:33844)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:27:35.499Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/noblefactor-ops.binding-unification/internal/starlark/receiver_go_gen.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:27:35.500Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/noblefactor-ops.binding-unification/internal/starlark/receiver_go_gen.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:27:35.500Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at J (/$bunfs/root/claude:2115:26971)\n at O (/$bunfs/root/claude:2115:33844)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:27:57.830Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/noblefactor-ops.binding-unification/internal/starlark/receiver_go_gen.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:27:57.831Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/noblefactor-ops.binding-unification/internal/starlark/receiver_go_gen.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:27:57.832Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at J (/$bunfs/root/claude:2115:26971)\n at O (/$bunfs/root/claude:2115:33844)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:28:35.607Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/noblefactor-ops.binding-unification/internal/starlark/receiver_go_gen_test.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:28:35.608Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/noblefactor-ops.binding-unification/internal/starlark/receiver_go_gen_test.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:28:35.609Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at J (/$bunfs/root/claude:2115:26971)\n at O (/$bunfs/root/claude:2115:33844)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:29:00.795Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/devlore-cli.binding-unification/internal/starlark/receiver.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:29:00.796Z"},{"error":"Error: Failed to sync file open /Users/david-noble/Workspace/NobleFactor/devlore-cli.binding-unification/internal/starlark/receiver.go: Cannot send notification to LSP server 'plugin:gopls-lsp:gopls': server is error\n at O (/$bunfs/root/claude:2115:34009)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:29:00.796Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/claude:358:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T01:30:04.753Z"},{"error":"Error: Cannot send notification to LSP server 'plugi…
Note: Content was truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗