mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-06-16 21:03:54 +08:00
Modified the backupConfigFile function to automatically clean up old backups, keeping only the 3 most recent backup files. This prevents the config directory from accumulating excessive backup files over time. The implementation: - Creates timestamped backups as before - After each new backup, scans for existing backups - Sorts backups by timestamp (newest first) - Deletes all but the 3 most recent backups - Gracefully handles cleanup errors with warnings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>