• Joined on 2026-05-02
wangdl closed issue wangdl/api-server#87 2026-06-06 17:05:02 +08:00
CHAT-303 P0 | material 会话检索范围:只检索当前资料
wangdl closed issue wangdl/api-server#88 2026-06-06 17:05:02 +08:00
CHAT-304 P0 | knowledge_base 会话检索范围:检索整个知识库
wangdl commented on issue wangdl/api-server#84 2026-06-06 17:04:37 +08:00
CHAT-203 P1 | ChatSession 自动标题生成规则

完成情况

交付物

Service 层 — 提取 autoTitle + generateTitle 方法:

private async autoTitle(session, content: string) {
  if (!session.title 
wangdl commented on issue wangdl/api-server#84 2026-06-06 17:04:18 +08:00
CHAT-203 P1 | ChatSession 自动标题生成规则

test

wangdl commented on issue wangdl/api-server#84 2026-06-06 17:04:11 +08:00
CHAT-203 P1 | ChatSession 自动标题生成规则

完成情况

交付物

Service 层 — 提取 autoTitle + generateTitle 方法 (rag-chat.service.ts):

private async autoTitle(session, content: string) {
  //…
wangdl closed issue wangdl/api-server#84 2026-06-06 17:03:59 +08:00
CHAT-203 P1 | ChatSession 自动标题生成规则
wangdl closed issue wangdl/api-server#83 2026-06-06 17:03:20 +08:00
CHAT-002 P0 | 定义 ChatScope API Contract 前后端接口协议
wangdl closed issue wangdl/api-server#97 2026-06-06 17:03:20 +08:00
CHAT-000 P0 | ChatScope 里程碑总设计文档
wangdl closed issue wangdl/api-server#82 2026-06-06 17:03:19 +08:00
CHAT-001 P0 | 定义 ChatScope 设计文档 docs/chat-scope-design.md
wangdl commented on issue wangdl/api-server#76 2026-06-06 16:59:37 +08:00
M7-08 P0 | open-or-create 会话逻辑(同一 scope 继续/新建)

完成情况

交付物

Service 层createSession 加入 open-or-create 逻辑:

async createSession(userId: string, params: CreateSessionParams): Promise<CreateSess
wangdl commented on issue wangdl/api-server#85 2026-06-06 16:59:37 +08:00
CHAT-204 P0 | ChatSession scope 字段创建后不可修改

完成情况

交付物

Service 层updateSession 方法:

async updateSession(sessionId: string, dto: {
  title?: string;
  isPinned?: boolean;
  isArchived?:
wangdl closed issue wangdl/api-server#76 2026-06-06 16:58:05 +08:00
M7-08 P0 | open-or-create 会话逻辑(同一 scope 继续/新建)
wangdl closed issue wangdl/api-server#85 2026-06-06 16:58:05 +08:00
CHAT-204 P0 | ChatSession scope 字段创建后不可修改
wangdl commented on issue wangdl/api-server#80 2026-06-06 16:55:26 +08:00
M7-02 P1 | Prisma ChatSession 新增 createdFrom isArchived isPinned isDeleted

关闭原因

本 issue 是合并 issue,已拆分为两个更细粒度的子 issue:

wangdl commented on issue wangdl/api-server#77 2026-06-06 16:55:26 +08:00
M7-09 P2 | ChatSession 数据库索引优化

关闭原因

本 issue 是合并 issue,已拆分为三个更细粒度的子 issue:

wangdl commented on issue wangdl/api-server#81 2026-06-06 16:52:55 +08:00
M7-05 P0 | createSession 接受 ChatScope 参数 scopeType scopeId parentKnowledgeBaseId

完成情况

交付物

Service 层createSession 重构:

interface CreateSessionParams {
  scopeType: string;
  scopeId?: string 
wangdl commented on issue wangdl/api-server#75 2026-06-06 16:52:55 +08:00
M7-07 P0 | listSessions 支持 scopeType + scopeId 过滤

完成情况

交付物

Service 层listSessions 重构:

async listSessions(userId: string, opts?: {
  scopeType?: string;
  scopeId?: string;
  parentKnowledgeBase
wangdl commented on issue wangdl/api-server#74 2026-06-06 16:52:55 +08:00
M7-06 P0 | loadContext 根据 ChatScope 决定检索范围

完成情况

交付物

Service 层loadContextByScope 方法:

private async loadContextByScope(session: ChatSession): Promise<ContextResult>

检索策略

wangdl commented on issue wangdl/api-server#94 2026-06-06 16:52:36 +08:00
M7-09a P0 | ChatSession scope 核心查询索引(open-or-create)

完成情况

交付物

核心查询索引 (prisma/schema.prisma):

@@index([userId, scopeType, scopeId])

覆盖的查询场景

-- open-or-create:…
wangdl commented on issue wangdl/api-server#95 2026-06-06 16:52:36 +08:00
M7-09b P1 | ChatSession 知识库会话列表索引

完成情况

交付物

知识库会话列表索引 (prisma/schema.prisma):

@@index([userId, parentKnowledgeBaseId])

覆盖的查询场景

-- 知识库下…