fix(server): nullable value for parent id (#10725)

This commit is contained in:
darkskygit
2025-03-12 03:53:32 +00:00
parent 1b62b4b625
commit 10605b3793
6 changed files with 13 additions and 14 deletions

View File

@@ -146,7 +146,11 @@ export class CopilotContextRootResolver {
if (!lock) {
return new TooManyRequest('Server is busy');
}
await this.checkChatSession(user, sessionId, copilot.workspaceId);
await this.checkChatSession(
user,
sessionId,
copilot.workspaceId || undefined
);
if (contextId) {
const context = await this.context.get(contextId);