Skip to content

Commit b5a4d05

Browse files
committed
refactor: use userInfo consistently in synthetic part creation
1 parent 7304f0a commit b5a4d05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/messages/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const createSyntheticTextPart = (baseMessage: WithParts, content: string)
7474
return {
7575
id: partId,
7676
sessionID: userInfo.sessionID,
77-
messageID: baseMessage.info.id,
77+
messageID: userInfo.id,
7878
type: "text" as const,
7979
text: content,
8080
}
@@ -99,7 +99,7 @@ export const createSyntheticToolPart = (
9999
return {
100100
id: partId,
101101
sessionID: userInfo.sessionID,
102-
messageID: baseMessage.info.id,
102+
messageID: userInfo.id,
103103
type: "tool" as const,
104104
callID: callId,
105105
tool: "context_info",

0 commit comments

Comments
 (0)