Improve image upload in debug drawer

This commit is contained in:
Xin Wang
2026-08-05 21:28:51 +08:00
parent e36ca308b8
commit 0c0a51da95
6 changed files with 37 additions and 7 deletions

View File

@@ -235,6 +235,9 @@ class ConversationRecorder:
},
)
)
# Flush before artifact insert: db.get() below autoflushes and
# can otherwise write conversation_artifacts first (FK violation).
await db.flush()
db.add(
ConversationArtifact(
id=artifact_id,