chore: format codebase

This commit is contained in:
yiling
2026-07-11 16:58:37 +08:00
parent 482df3315c
commit bd897b951a
5 changed files with 24 additions and 8 deletions
+4 -1
View File
@@ -100,7 +100,10 @@ export function mapEntryToMessage(
entryRecord: Prisma.AgentSessionEntryGetPayload<Record<string, never>>,
): ChatMessage | null {
const entryObj = entryRecord.entry as unknown as SessionTreeEntry
if (entryObj.type === 'custom_message' && (entryObj as { customType?: string }).customType === 'context') {
if (
entryObj.type === 'custom_message' &&
(entryObj as { customType?: string }).customType === 'context'
) {
return null
}
const pathEntries = [{ ...entryObj, id: entryRecord.id }]