diff --git a/client/src/components/SidePanel/Agents/AgentMarketplace.tsx b/client/src/components/SidePanel/Agents/AgentMarketplace.tsx index 3557a01197..1731708681 100644 --- a/client/src/components/SidePanel/Agents/AgentMarketplace.tsx +++ b/client/src/components/SidePanel/Agents/AgentMarketplace.tsx @@ -173,8 +173,19 @@ const AgentMarketplace: React.FC = ({ className = '' }) = permissionType: PermissionTypes.MARKETPLACE, permission: Permissions.USE, }); + useEffect(() => { + let timeoutId: ReturnType; + if (!hasAccessToMarketplace) { + timeoutId = setTimeout(() => { + navigate('/c/new'); + }, 1000); + } + return () => { + clearTimeout(timeoutId); + }; + }, [hasAccessToMarketplace, navigate]); + if (!hasAccessToMarketplace) { - navigate('/not-found', { replace: true }); return null; } return ( diff --git a/client/src/locales/en/translation.json b/client/src/locales/en/translation.json index 6de9121fa6..cb8bb95f5a 100644 --- a/client/src/locales/en/translation.json +++ b/client/src/locales/en/translation.json @@ -23,7 +23,7 @@ "com_agents_mcp_trust_subtext": "Custom connectors are not verified by LibreChat", "com_agents_mcps_disabled": "You need to create an agent before adding MCPs.", "com_agents_missing_provider_model": "Please select a provider and model before creating an agent.", - "com_agents_name_placeholder": "Optional: The name of the agent", + "com_agents_name_placeholder": "The name of the agent", "com_agents_no_access": "You don't have access to edit this agent.", "com_agents_no_agent_id_error": "No agent ID found. Please ensure the agent is created first.", "com_agents_not_available": "Agent Not Available", @@ -1204,4 +1204,4 @@ "com_agents_marketplace_subtitle": "Discover and use powerful AI agents to enhance your workflows and productivity", "com_ui_agent_name_is_required": "Agent name is required", "com_agents_missing_name": "Please type in a name before creating an agent." -} \ No newline at end of file +}