Coding agent wipes dev database after cached config bypassed test DB setup
cwmyt · reddit · 2026-12-07
A Reddit user shares how their AI coding agent wiped a dev database. The agent's own postmortem: a cached bootstrap/cache/config.php made the test ignore phpunit.xml and connect to the live MySQL DB instead of the SQLite test file, and the test's reset routine recreated all tables with zero sales, products, and users.
The agent flagged the only available backup (an Oct 5 zip), suggested restoring from a MySQL dump if one exists, and proposed running php artisan config:clear to prevent recurrence. The author notes it was just a dev DB this time and warns anyone running agents in production to be careful.
More from coding & agent
- Charakuru v2.0: AI agents build 3D characters in ~1.5 hours via Tripo MCP — bdsqlsz · 2026-12-07
- Open-source AI video editor Scarlet ships multi-PC editing, 9 workflows, auto HDR — MatthewBerman · 2026-12-07
- 9 must-have developer skills for 2027: agents, MCP, agentic CI/CD — Pavan_Belagatti · 2026-12-07
- The models are fine — what's missing is context: how to structure your personal AI context — dSebastien · 2026-12-07
- Claude Code ships 3 Roblox games in 6 days via MCP — chasing a million Robux — Builder_0101 · 2026-12-07
- Archil launches checkpoint diffing: git-style snapshots for multi-agent file systems — madhavsinghal_ · 2026-12-07