feat: track cloned_from_snapshot_id for cloned chats

This commit is contained in:
CREDO23 2026-01-30 17:08:07 +02:00
parent 2ec7050603
commit bc0fb3cb68
3 changed files with 36 additions and 28 deletions

View file

@ -523,6 +523,7 @@ async def clone_from_snapshot(
search_space_id=target_search_space_id,
created_by_id=user.id,
cloned_from_thread_id=snapshot.thread_id,
cloned_from_snapshot_id=snapshot.id,
cloned_at=datetime.now(UTC),
needs_history_bootstrap=True,
)