fix: skip user custom instructions to avoid showing unsupported content

closes #269
This commit is contained in:
Pionxzh
2024-12-03 01:40:44 +08:00
parent b3418e5316
commit b0b99165bd

View File

@@ -129,6 +129,10 @@ export interface ConversationNodeMessage {
} | {
content_type: 'execution_output'
text: string
} | {
content_type: 'user_editable_context'
user_profile: string
user_instructions: string
} | {
content_type: 'tether_quote'
domain?: string
@@ -580,6 +584,8 @@ function extractConversationResult(conversationMapping: Record<string, Conversat
node.message?.author.role !== 'system'
// Skip model memory context
&& node.message?.content.content_type !== 'model_editable_context'
// Skip user custom instructions
&& node.message?.content.content_type !== 'user_editable_context'
) {
result.unshift(node)
}