Your logs trigger errors.
PatchMate opens PRs.
AI-powered auto-debugger that watches production logs, diagnoses errors using coding agents, and automatically opens pull requests with fixes.
error.log
NullPointerException: Cannot read property 'userId' of undefined at UserService.getProfile (user.ts:42) at AuthMiddleware.handle (auth.ts:18) at Router.dispatch (router.ts:156) Severity: HIGH | Service: user-api Detected: 2 min ago
Pull Request #247
fix: add null check in UserService.getProfile Added guard clause to handle undefined user context in auth middleware pipeline. - Added null check at user.ts:42 - Tests passing (12/12) - Confidence: 94% Ready to merge ✓