Claude AI Opens Merged PR for Magic-Link Bug While Developer Sleeps
Reddit user u/crazedbunny shared a production incident where Claude, running in an agentic setup, automatically fixed a broken magic-link sign-in on their SaaS pastecollage.com at 4:46 AM. By morning coffee, a merged PR was ready.
The Bug
Trailing whitespace from mobile keyboards caused the email validation regex anchor [^\s@]+$ to fail, breaking sign-ins. The fix: moving the trim/lowercase step to before validation. The PR was +13/-1 lines with a sensible commit message — exactly what the dev would have written manually.
Setup
The developer runs a project called auralog that ingests logs, Claude analyzes them, and if the model believes it knows the fix, it opens a PR against the repo. This is part of an agentic CI pipeline with direct merge authority.
Key Takeaways
- Agentic Claude can fix small, predictable bugs overnight without human intervention
- The PR was merged without any modifications — the output was production-ready
- This pattern works best for well-scoped issues with clear reproduction (email validation edge case)
The full writeup with screenshots of the actual PR is available on the developer's blog: https://auralog.ai/blog/the-magic-link-bug-that-fixed-itself/
📖 Read the full source: r/ClaudeAI
👀 See Also

Microsoft Ends Revenue Sharing with OpenAI, Impact on AI Agents Unclear
Microsoft will stop sharing revenue with OpenAI, its main AI partner, according to a Bloomberg report. The move could affect how developers integrate AI agents via Azure OpenAI services.

Polaroid's Anti-AI Campaign Targets Digital Fatigue with Analog Print Ads
Polaroid's new Flip camera campaign uses print ads with copy like 'AI can't generate sand between your toes' to contrast analog with digital/AI culture.
Discovered Materials: AI Agents Discover 500+ New Materials, But Only 1 Has a Plausible Synthesis Route
Discovered Materials (YC P26) used frontier LLMs to computationally discover 500+ new semiconductor materials. Only 1 has a plausible synthesis route, highlighting the lab-to-fab gap.

OpenClaw 2026.3.28: Breaking Changes for MiniMax Users, Config Auto-Repair Removed
OpenClaw 2026.3.28 removes auto-repair for deprecated config keys and eliminates several MiniMax models. Users must update configs before upgrading to avoid gateway startup failures.