Hi,
I’ve been using Cody for last couple of months and it is becoming quite a great tool. However, just couple of days ago I started to have issues with one of my projects (where I’ve used Cody most). It is Unity project, which I still have quite small code base, but for which I’ve generated most of it to try more AI oriented development style. However, lately the Cody has become quite broken for it. It seems to work only sporadic. Most often it fails to find any files when clicking starting to tag file there. In addition the history of chat windows disappear and it just keeps on trying to load those. When I restart Rider and open the solution, I can see the history of old chat windows there until I try to start finding file from context again and then things get messed up again. In that state, I cannot send any chat messages either. I noticed that there are some errors from Cody in idea.log, of which most common is following:
WARN - #com.sourcegraph.cody.agent.CodyAgent - Graceful shutdown of Cody agent server failed
org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: The pipe is being closed
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:72)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.request(RemoteEndpoint.java:171)
at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:91)
at jdk.proxy10/jdk.proxy10.$Proxy208.shutdown(Unknown Source)
at com.sourcegraph.cody.agent.CodyAgent.shutdown(CodyAgent.kt:45)
at com.sourcegraph.cody.agent.CodyAgentService.stopAgent(CodyAgentService.kt:141)
at com.sourcegraph.cody.agent.CodyAgentService.dispose(CodyAgentService.kt:183)
Just to make it clear, Cody seems to still work perfectly fine with other project I’ve been using with it. Rider version is 2025.1.3 and Cody version is latest from stable channel.
Any idea of what could be wrong here and as it seems to be solution specific, are there some temporary files or such that could be removed or such to try to get it working properly again as a workaround?