UpstreetAI / upstreet-core

Build and deploy AI Agents, fast.
https://upstreet.ai
6 stars 3 forks source link

[Bug]: Discord Integration "Two children with the same key" when bot in 2 servers #689

Open AbdurrehmanSubhani opened 4 hours ago

AbdurrehmanSubhani commented 4 hours ago

Product

USDK (Upstreet Agents SDK)

What happened?

Bot worked fine when in a single server. Added the Bot to a new server and it threw exceptions.

Version

0.0.93

What is your environment?

No response

Link to original discussion

No response

Relevant log output

discord connect 4
discord connect 5
Encountered two children with the same key, `discord:dm:343797252914937856`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    at ConversationInstance (/Users/abdurrehmansubhani/Desktop/agents/discordAgent/packages/upstreet-agent/packages/react-agents/components.tsx:167:5)
    at Conversation (/Users/abdurrehmansubhani/Desktop/agents/discordAgent/packages/upstreet-agent/packages/react-agents/components.tsx:208:17)
    at SocialMediaActions
    at DefaultActions
    at DefaultAgentComponents
    at agent
    at eval (/Users/abdurrehmansubhani/Desktop/agents/discordAgent/packages/upstreet-agent/packages/react-agents/components.tsx:91:3)
    at MyAgent
    at ErrorBoundary (/Users/abdurrehmansubhani/Desktop/agents/discordAgent/packages/upstreet-agent/packages/react-agents/classes/agent-renderer.tsx:50:5)
    at AppComponent (/Users/abdurrehmansubhani/Desktop/agents/discordAgent/packages/upstreet-agent/packages/react-agents/classes/agent-renderer.tsx:80:3)
AbdurrehmanSubhani commented 1 hour ago

Fixed in: