Skip to content

[Bug] Standalone plugin into race condition when setPluginMessage send the aiMessage=true #47

Description

@sonisourabh

💻 系统环境 | Operating System

macOS

🌐 浏览器 | Browser

Chrome

🐛 问题描述 | Bug Description

I have created a simple standalone plugin following the template example. I am sending the second argument of setPluginMessage as true. The second argument is meant for aIMessage.

If a LLM conversation have loaded the standalone iframe couple of times; it go into race condition where multiple repetition of the same conversation happening and eventually whole conversation become unusable as its keep on repeating.

Can you help me what's the correct way to use or, rectify the problem?

🚦 期望结果 | Expected Behavior

LLM conversation should not go into infinite loop.

📷 复现步骤 | Recurrence Steps

  • Build a standalone plugin with any iframe
  • Use setPluginMessage(msg, true) with true option

📝 补充信息 | Additional Information

I am use true for AIMessage so that after my iframe, LLM continue with conversation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InactiveNo response in 30 days | 超过 30 天未活跃🐛 BugSomething isn't working | 缺陷

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions