Files
leopost-full/backend/app
Michele e77705d33b fix: SQLAlchemy JSON mutation detection for saved ideas and approved examples
SQLAlchemy doesn't detect in-place mutations on JSON columns (same object
reference). Fixed all JSON write operations to create new list/dict objects:
- save_idea: [new_idea] + old_ideas instead of ideas.insert()
- delete_idea: new filtered list
- mark_idea_used: new list with copied dicts
- approve_post: dict(examples) for content_rules

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 02:13:23 +02:00
..