Using ssh-agent

I’ve been using Ion as my daily driver in Linux for a good while now. My one outstanding issue is integrating ssh-agent properly. In my ~/.config/ion/initrc file I have eval $(ssh-agent), but it always says ion: supplied eval expression was not terminated. I can manually start the agent and then manually export the pid, and I imagine I could script this somehow, but looking at the output I don’t really see why Ion says that the eval expression wasn’t terminated.