Longevity with one PI is more likely to result in greater responsibility, eventually your own project, and a solid LOR. But if you don't have a good relationship with the current PI and you seem to be getting nowhere with a pointless project, a summer experience elsewhere could be a good exit strategy.