diff --git a/client/web/plugins/com.msgbyte.ai-assistant/src/popover.tsx b/client/web/plugins/com.msgbyte.ai-assistant/src/popover.tsx index 2152d50d..885ae6f9 100644 --- a/client/web/plugins/com.msgbyte.ai-assistant/src/popover.tsx +++ b/client/web/plugins/com.msgbyte.ai-assistant/src/popover.tsx @@ -144,7 +144,8 @@ export const AssistantPopover: React.FC<{ onClick={async () => { const plainMessages = ( await Promise.all( - messages + [...messages] + .filter((item) => !item.hasRecall) // filter recalled message .slice(messages.length - 30, messages.length) // get last 30 message, too much will throw error .map( async (item) =>