The ssh-agent service is enabled for the user and is running without errors. (status is active).
But when I try to use ssh, I get the error Could not open a connection to your authentication agent.. I don't understand why this is happening. Earlier ssh used to work right away and I could connect to the server via my key, but now I wanted to connect and I get the error Permission denied (public key), then I tried to add it via ssh-add and I get this.

I googled how to fix it, and found a solution eval $(ssh-agent -s), but it only works for bash, and I'm using fish, and there I googled that you have to set environment variables manually, and then you have to do it every time, it used to work. I googled how to get it to run on its own, and googled that I need to enable the ssh-agent daemon, but I already enabled it and it works, but the error is still there, even if I run bash, same error.
System: Arch linux