diff --git a/front/lib/api/assistant/configuration.ts b/front/lib/api/assistant/configuration.ts index 9070bf9055fc..dc08e1912039 100644 --- a/front/lib/api/assistant/configuration.ts +++ b/front/lib/api/assistant/configuration.ts @@ -185,9 +185,11 @@ export async function getAgentConfigurations({ return Promise.resolve([]); } return AgentConfiguration.findAll({ - ...baseAgentsSequelizeQuery, where: { - ...baseAgentsSequelizeQuery.where, + workspaceId: owner.id, + ...(agentPrefix + ? { name: { [Op.iLike]: `${agentPrefix}%` } } + : {}), sId: agentsGetView.agentId, }, });