We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15255df commit 0de8565Copy full SHA for 0de8565
1 file changed
packages/core/src/services/chatRecordingService.ts
@@ -188,7 +188,11 @@ export async function loadConversationRecord(
188
if (userLine) {
189
try {
190
const record = JSON.parse(userLine) as unknown;
191
- if (hasProperty(record, 'content')) {
+ if (
192
+ hasProperty(record, 'type') &&
193
+ record.type === 'user' &&
194
+ hasProperty(record, 'content')
195
+ ) {
196
const content = record.content;
197
if (Array.isArray(content)) {
198
firstUserMessage = content
0 commit comments