Skip to content

Commit 3417332

Browse files
committed
fix logs resource thinking bug"
1 parent 2640956 commit 3417332

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/sim/lib/copilot/chat/post.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const FileAttachmentSchema = z.object({
5252
})
5353

5454
const ResourceAttachmentSchema = z.object({
55-
type: z.enum(['workflow', 'table', 'file', 'knowledgebase', 'folder']),
55+
type: z.enum(['workflow', 'table', 'file', 'knowledgebase', 'folder', 'task', 'log', 'generic']),
5656
id: z.string().min(1),
5757
title: z.string().optional(),
5858
active: z.boolean().optional(),
@@ -64,6 +64,9 @@ const GENERIC_RESOURCE_TITLE: Record<z.infer<typeof ResourceAttachmentSchema>['t
6464
file: 'File',
6565
knowledgebase: 'Knowledge Base',
6666
folder: 'Folder',
67+
task: 'Task',
68+
log: 'Log',
69+
generic: 'Resource',
6770
}
6871

6972
const ChatContextSchema = z.object({

0 commit comments

Comments
 (0)