cherry-studio/src
Zhaokun a2004082af fix: topic branch incomplete copy - split ID mapping into two passes (#10900)
Fix the bug where topic branching would not copy all message relationships completely.The issue was that askId mapping lookup happened in the same loop as ID generation, causing later messages' askIds to fail mapping when they referenced messages that hadn't been processed yet.

Solution: Split into two passes:
 1. First pass: Generate new IDs for all messages and build complete mapping
 2. Second pass: Clone messages and blocks using the complete ID mapping

This ensures all message relationships (especially assistant message askId references)are properly maintained in the new topic.

(cherry picked from commit 35c15cd02c)
2025-10-24 18:33:30 +08:00
..
main feat: support germen (#10879) 2025-10-22 16:09:21 +08:00
preload feat: new build-in OCR provider -> intel OV(NPU) OCR (#10737) 2025-10-18 23:04:58 +08:00
renderer fix: topic branch incomplete copy - split ID mapping into two passes (#10900) 2025-10-24 18:33:30 +08:00