Cody with Jetbrains Rider is getting stuck with one project. Logs indicate The Pipe is being closed error

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?

Hey @hepphep What OS are you using? And when you say other projects are working, are these projects in Rider too? Does the files you are trying to mention have special characters in the path?

Thank you and sorry for the inconvenience.

OS is Windows 11. Other projects are using Rider too, and they are actually quite a bit bigger the one having issue. Yesterday I managed to get it working for a while (maybe half an hour) before it ended up into same state again. The files don’t have special characters in the path. Only difference I can think of in the other tooling used in the project is that the project that has had those issues is using Bitbucket as repository while others are using GitHub. Don’t know if it could have anything to do with that, but at least it is one difference in the environment itself that there is.

@hepphep Ah, that could be the culprit. BitBucket is not supported currently from our side and Cody uses GitHub for code retrieval internally.

Sorry for the inconvenience.