feat: filter out session create request for root doc (#10187)

This commit is contained in:
darkskygit
2025-02-14 11:14:56 +00:00
parent d111f8ac88
commit 42e0563d2e
4 changed files with 34 additions and 2 deletions

View File

@@ -590,6 +590,11 @@ export const USER_FRIENDLY_ERRORS = {
type: 'action_forbidden',
message: `Action has been taken, no more messages allowed.`,
},
copilot_doc_not_found: {
type: 'resource_not_found',
args: { docId: 'string' },
message: ({ docId }) => `Doc ${docId} not found.`,
},
copilot_message_not_found: {
type: 'resource_not_found',
args: { messageId: 'string' },