mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 20:17:45 +00:00
Previously, PUT /api/settings/:profile created a backup on every request regardless of whether the content actually changed. This led to hundreds of identical backup files accumulating in ~/.ccs/backups/. Changes: - Compare existing content with new content before creating backup - Reuse computed newContent for atomic write (DRY) - Make hook injection idempotent by checking content before write Fixes #433