Chat enters infinite loop with a simple request (Jetbrains, Cody pro)

I asked Cody to improve the documentation of a simple function. It got stuck in a loop, repeating the same two lines until I killed the request.

Jetbrains, v6.0.3 of the Cody plugin.

Thanks @mdhender I’ll send this to the JB team.

1 Like

Hey @mdhender

“Was unable to replicate on IDEA CE 2024.1.3, Cody 6.0.3-nightly.”

What is your JB IDE?

GoLand 2024.1.3
Build #GO-241.17890.21, built on June 6, 2024

Runtime version: 17.0.11+1-b1207.24 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.5
GC: G1 Young Generation, G1 Old Generation
Memory: 16000M
Cores: 10
Metal Rendering is ON
Non-Bundled Plugins:
org.asciidoctor.intellij.asciidoc (0.41.14)
com.sourcegraph.jetbrains (6.0.3)
com.intellij.tailwindcss (241.17890.21)

FWIW, this happened just the one time, but that’s one time too many.

1 Like

@jdorfman , I had something similar happen but with autocomplete. This time the suggestion went into an infinite loop.

If you look at the bottom of the dialog, you should be able to see it just looping between “press return to insert” and “press ^.” Hitting escape doesn’t dismiss the dialog. I have to click outside it. And every time I try to edit that line, the same thing happens.

If I disable the Cody plugin, restart GoLand, I don’t get the loop when I edit the line.

Enabling the plugin and editing that line causes the loop again.

If I enable the plugin but disable Autocomplete for Go, I don’t get the loop. Reenable, get the loop.

This is still v6.0.3 of the plugin. I repeated with the plugin’s debug log turned on, but I don’t see any way to fetch just the Cody part of the logs to attach here. I have a 9mb idea.log from the session saved off if needed.

@mdhender Thanks for this video and your patience.

cc @taylorsperry for visibility

@jdorfman @taylorsperry this is still happening with v6.0.8 from the nightly build. It worries me because it’s not clear that this isn’t eating up daily quotas. I like Cody and I don’t want to lose it because of something like this.

One thing that may not be important, but I tried recreating after a system reboot. I couldn’t get this to repeat with the new plugin until after the first time that Ctrl + Shift to Edit popup appeared.