Skip to content

Commit 9ced540

Browse files
committed
fix(vfs): preserve native content type in copilot SQL projection
1 parent 2041a50 commit 9ced540

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/lib/copilot/vfs/workspace-vfs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,9 +1162,9 @@ export class WorkspaceVFS {
11621162
SELECT jsonb_agg(
11631163
jsonb_build_object(
11641164
'role', m->>'role',
1165-
'content', m->>'content',
1165+
'content', m->'content',
11661166
'contentBlocks', COALESCE((
1167-
SELECT jsonb_agg(jsonb_build_object('type', 'text', 'content', b->>'content'))
1167+
SELECT jsonb_agg(jsonb_build_object('type', 'text', 'content', b->'content'))
11681168
FROM jsonb_array_elements(COALESCE(m->'contentBlocks', '[]'::jsonb)) AS b
11691169
WHERE b->>'type' = 'text'
11701170
), '[]'::jsonb)

0 commit comments

Comments
 (0)