# RPA Service Changelog
## v2.0 - 2026-02-21
### New Features
- Natural language RPA with custom AI model (rpa-json)
- Video recording of automation sessions
- Screenshot capture at each step
- Error screenshots on failure
- Session auto-cleanup (hourly, >24h old)
- Mouse drag and scroll operations
- Retry logic per workflow step
- App name mapping (calculator → gnome-calculator)
### Improvements
- JSON repair for malformed AI responses
- DISPLAY environment set in all controllers
- Better error messages (file not found, missing params)
- Null checks to prevent crashes
- Consistent error handling across all endpoints
### Bug Fixes
- Fixed DISPLAY not set in AutomationController
- Fixed DISPLAY not set in ScreenshotController
- Fixed DISPLAY not set in OcrController
- Fixed DISPLAY not set in BrowserController
- Fixed FileController error handling
- Fixed NaturalController null pointer risks
### Technical Details
- Custom Ollama model: rpa-json (397MB)
- Based on qwen2.5:0.5b
- 12x smaller than qwen2.5-coder:7b
- 100% valid JSON output
- 10 bean classes total
- Running on port 9100
### API Endpoints
- Natural Language: POST /natural/execute
- Workflow: POST /workflow/execute
- Automation: /auto/* (click, type, key, windows, focus, close)
- Files: /file/* (read, write, list, delete)
- Browser: /browser/* (open, chrome, firefox)
- Screenshot: GET /screenshot
- OCR: /ocr/* (screen, file)
- Cleanup: POST /cleanup/now
### Known Limitations
- Vision AI needs more work (llava integration)
- Wayland display has some restrictions
- Window management limited on Wayland