refactor(agent): optimize ULID id sorting and exclude __CHAT__ placeholder comments

This commit is contained in:
yiling
2026-07-29 14:59:48 +08:00
parent a756f7dc2a
commit 1c7a87488b
4 changed files with 41 additions and 6 deletions
@@ -265,6 +265,7 @@ export class DatabaseSessionStorage implements SessionStorage<DatabaseSessionMet
by: ['replyToId'],
where: {
replyToId: { in: entryIds },
message: { not: '__CHAT__' },
},
})
const commentIdsWithThreads = new Set<string>()