[BUG] Data Loss Due to Claude Code Error
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude executed DROP TABLE poc_staging on a production database without asking for user
confirmation. This permanently deleted 1,508 records (3 weeks of POC finder work). Only
118 records (7.8%) were recoverable from agent logs.
What Should Happen?
Claude should NEVER execute destructive SQL commands (DROP TABLE, DELETE FROM, TRUNCATE)
without explicit user confirmation.
Error Messages/Logs
No error - Claude executed the command successfully. The problem is it shouldn't have executed it without permission.
Steps to Reproduce
- Have a database table with important data
- Ask Claude to "merge" or "clean up" tables
- Claude may execute DROP TABLE without warning
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.12
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
After deleting the data, Claude launched 5 parallel background agents to rebuild the
data WITHOUT asking permission. This consumed all API credits, leaving user unable to
work until rate limit reset (3am). The agents accomplished nothing.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗