🐛 fix: slove group member plugin is lost & not use the plugins (#11802)

fix: slove group member plugin is lost & not use the plugins
This commit is contained in:
Shinji-Li
2026-01-25 16:02:51 +08:00
committed by GitHub
parent 5ab6f44852
commit e4ebd402ee
2 changed files with 10 additions and 1 deletions

View File

@@ -104,9 +104,11 @@ const ForkGroupAndChat = memo<{ mobile?: boolean }>(() => {
const rawConfig = {
avatar: currentVersion.avatar,
backgroundColor: currentVersion.backgroundColor,
chatConfig: currentVersion.config?.chatConfig || currentVersion.chatConfig,
description: currentVersion.description,
model: currentVersion.config?.model || currentVersion.model,
params: currentVersion.config?.params || currentVersion.params,
plugins: currentVersion.config?.plugins || currentVersion.plugins,
provider: currentVersion.config?.provider || currentVersion.provider,
systemRole:
currentVersion.config?.systemRole ||
@@ -149,9 +151,10 @@ const ForkGroupAndChat = memo<{ mobile?: boolean }>(() => {
return {
avatar: currentVersion.avatar,
backgroundColor: currentVersion.backgroundColor,
chatConfig: currentVersion.config?.chatConfig || currentVersion.chatConfig,
description: currentVersion.description,
model: currentVersion.config?.model || currentVersion.model,
plugins: currentVersion.plugins,
plugins: currentVersion.config?.plugins || currentVersion.plugins,
provider: currentVersion.config?.provider || currentVersion.provider,
systemRole:
currentVersion.config?.systemRole ||

View File

@@ -113,6 +113,12 @@ export const useMarketGroupPublish = ({ action, onSuccess }: UseMarketGroupPubli
model: agent.model,
params: agent.params,
systemRole: agent.systemRole,
// Include plugins if they exist
...(agent.plugins && agent.plugins.length > 0 ? { plugins: agent.plugins } : {}),
// Include provider if it exists
...(agent.provider ? { provider: agent.provider } : {}),
// Include chatConfig if it exists
...(agent.chatConfig ? { chatConfig: agent.chatConfig } : {}),
},
// Market requires at least 1 character for description
description: agent.description || 'No description provided',