Skip to content

Commit 4131fe2

Browse files
committed
Persist rid
1 parent c2ac24f commit 4131fe2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function mapStoredMessage(msg: TaskStoredMessage): ChatMessage {
142142
id: msg.id,
143143
role: msg.role,
144144
content: msg.content,
145+
...(msg.requestId ? { requestId: msg.requestId } : {}),
145146
}
146147

147148
const hasContentBlocks = Array.isArray(msg.contentBlocks) && msg.contentBlocks.length > 0

apps/sim/hooks/queries/tasks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface TaskStoredMessage {
5454
id: string
5555
role: 'user' | 'assistant'
5656
content: string
57+
requestId?: string
5758
toolCalls?: TaskStoredToolCall[]
5859
contentBlocks?: TaskStoredContentBlock[]
5960
fileAttachments?: TaskStoredFileAttachment[]

0 commit comments

Comments
 (0)