Coconut oil isn't great for cookies, as it doesn't get as solid as butter! If you're looking for a vegan pistachio cookie, try using plant-based butter instead. However, if all you have is coconut oil, try adding just a bit less at first, adding more coconut oil until you're happy with the texture.