Since a few days ago, cursor inserts {! !} into the code randomly when using the chat

Since a few days, when using the chat, cursor injects {!! !!} randomly into the code which obviously causes issues.

Please fix this issue, it’s extremely annoying.

Hey, which model are you using? Also, let me know if you’re using any specific rules for AI?

Hello, I am using claude-3-5-sonnet-2024-10-22. Also I have the following rules for AI in the settings:
Never remove commented code. Never use the words (except in code etc.): Transform, compelling, ensure, comprehensive, maintain.

Hey, does this still happen in a new Composer session?

While it’s possible the LLM is mistakenly injecting those symbols into your code, a fresh session should stop this from happening any further!