feat(server): allow fork session to other doc (#13199)

fix AI-365
This commit is contained in:
DarkSky
2025-07-14 18:33:59 +08:00
committed by GitHub
parent 8627560fd5
commit bcf6bd1dfc
2 changed files with 23 additions and 16 deletions

View File

@@ -507,6 +507,8 @@ export class ChatSessionService {
return await this.models.copilotSession.fork({
...session,
userId: options.userId,
// docId can be changed in fork
docId: options.docId,
sessionId: randomUUID(),
parentSessionId: options.sessionId,
messages,