What's New
Dashboard Server Management
Added server management capabilities directly in the Dashboard UI, enabling administrators to monitor, update, and restart the server without CLI access.
Backend API (/api/server/)
GET /status- Server status (version, uptime, PID, platform, Python version)GET /version/check- Check for updates via git (commits behind origin/main)POST /update- Pull latest code, pip install, and auto-restartPOST /restart- Graceful server restart with delayed process replacement
Frontend UI (Settings Modal)
- Real-time server status display (PID, platform, uptime)
- One-click update check with commit count indicator
- Update & Restart / Restart Only action buttons
- Restart overlay with countdown timer and auto-reconnect polling
Security
- All management endpoints require admin OAuth scope
- Audit logging for restart/update operations
- XSS-safe rendering (textContent instead of innerHTML)
- Constant-time API key comparison
Code Quality
- Shared
_run_command()helper (DRY subprocess handling) pathlib.Pathtraversal for git root detection- Named constants for timeouts and delays
- Cross-platform restart (Windows: CREATE_NEW_PROCESS_GROUP, Linux: os.execv)
Full Changelog: v10.5.1...v10.6.0