Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: when use market group, the group sys role was not used (#11739)

Shinji-Liafc76f9c7a56
diff --git a/src/app/[variants]/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx b/src/app/[variants]/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx
index c73be741ce1..83d2482d6fe 100644
--- a/src/app/[variants]/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx
+++ b/src/app/[variants]/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx
@@ -130,7 +130,7 @@ const ForkGroupAndChat = memo<{ mobile?: boolean }>(() => {
forkedFromIdentifier: identifier, // Store the source group identifier
},
// Group content is the supervisor's systemRole (for backward compatibility)
- content: supervisorConfig?.systemRole || config.systemRole,
+ content: config.systemRole || supervisorConfig?.systemRole,
...meta,
};