Thanks. That indeed doesn't show the duplicate command. A few more questions for you so I can investigate further.
What OS are you on? Which version of KStars? How is your mount connected to INDI? Via a serial cable or via TCP/IP?
I am on macOS with KStars 3.6.5 stable build 2023-06-01T21:31:40Z and connect via TCP/IP. I install KStars via homebrew so I will remove that and will install KStars 3.6.7 which I am downloading from the KDE website right now.
With KStars 3.6.7 I see 2 more duplicate GR commands before I try a GOTO. And I checked with SkySafari and AstroPlanner. With SkySafari I don't see any duplicate commands but with AstroPlanner I see two duplicate GR commands as well. Not sure anymore if this is related with my setup or not. In any case, it is working now with all three software so I am happy.
Thanks again for questioning my protocol implementation. It turns out that it indeed wasn't correct. I sent replies ending in "#" where I shouldn't have and that messed up INDI. Now I have implemented it correctly and INDI is behaving as expected.