feat(chat): add AgentSessionType enum and filter chatbot history sessions

This commit is contained in:
yiling
2026-07-11 20:14:40 +08:00
parent 94a3ec0b9b
commit b5d52a4e56
10 changed files with 151 additions and 6 deletions
+2
View File
@@ -278,6 +278,7 @@ export class ChatService {
userId: user.id,
cwd: process.cwd(),
assetId: asset.id,
type: 'chat',
},
})
activeSessionId = newSession.id
@@ -319,6 +320,7 @@ export class ChatService {
): Promise<PaginatedData<ChatSessionInfo[]>> {
const where: Prisma.AgentSessionWhereInput = {
userId,
type: 'chat',
}
return await paginateQuery(