M-CHAT-A3 P1 | 新对话按钮对非 global scope 不创建新会话 #57
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
发现
工具栏"+"按钮调用
createNewSession()→createSession(ctx:)→ open-or-create API。对于 knowledge_base/material/knowledge_item scope,open-or-create 返回已有会话。用户点击"+"期望新对话,却回到旧会话。
修复方案
forceCreate: true参数跳过 open-or-create涉及文件
修复
后端: createSession 新增 forceCreate 参数,true 时跳过 open-or-create 查找。
iOS: CreateSessionRequest 加 forceCreate,createNewSession 传 forceCreate: true。
涉及: rag-chat.service.ts + APIModels.swift + APIService.swift + AIChatViewModel.swift