You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cline keeps repeating the same tasks in Jetbrains IDE's with LM Studio #8637
When starting a task; cline will repeat the same response or do the same task about 4 times, I can see in LM studio the same api requests are sent multiple times. It does progress sometimes but then I again see the same api requests being sent multiple times. This happens to all local modals, when using openrouter with the same model there is no issue.
The behavior you're describing - seeing the same API requests sent multiple times and Cline repeating responses/tasks - is a known pattern that occurs with local models, particularly when running through LM Studio. This is almost certainly model behavior rather than a Cline bug.
What's happening
When local models struggle with Cline's tool-calling format, they can enter repetitive loops where they either:
Output the same text multiple times without properly executing tools
Fail to format tool calls correctly, causing Cline to retry the request
The fact that it works via OpenRouter with the same model suggests the issue may be related to how LM Studio handles streaming responses or tool calls differently, or possibly timeout/context configuration differences.
Things to try
1. Enable Compact Prompts (most impactful)
Go to Cline Settings → Features → "Use Compact Prompt" and toggle it ON. This reduces prompt size by ~90% and helps local models follow the expected format more reliably.
Context Length: Set to the model's maximum (262,144 for Qwen3-Coder-30B)
KV Cache Quantization: Leave unchecked (important for consistent performance)
Flash Attention: Enable if available
3. Model recommendation
For best results with Cline + LM Studio, the docs recommend Qwen3 Coder 30B A3B Instruct. Which model are you currently using?
4. Verify JetBrains plugin version
You're on v1.1.20 - that should be recent. However, there was a confirmed looping regression in v1.1.5 (Cline v3.38.x) that was fixed in later versions. If you're experiencing this with all tasks consistently, it might be worth checking if your internal Cline version aligns with the plugin version.
Clarifying questions
Could you share:
Which model are you running in LM Studio?
What's your configured context length in LM Studio?
Can you see any specific error messages in the LM Studio developer logs when the repetition occurs?
This info would help maintainers determine if there's something specific to the JetBrains + LM Studio combination causing this.
Thanks for reporting this. PR #9933 was just merged — it adds detection for repeated identical tool calls, which should catch the repeating task loop you described. Expect the fix in the next release. Feel free to reopen if you still see it after updating.
Activity
linear commentedon Jan 15, 2026
CLINE-1131
github-actions commentedon Jan 15, 2026
Hey @hendrikras, thanks for reporting this!
The behavior you're describing - seeing the same API requests sent multiple times and Cline repeating responses/tasks - is a known pattern that occurs with local models, particularly when running through LM Studio. This is almost certainly model behavior rather than a Cline bug.
What's happening
When local models struggle with Cline's tool-calling format, they can enter repetitive loops where they either:
The fact that it works via OpenRouter with the same model suggests the issue may be related to how LM Studio handles streaming responses or tool calls differently, or possibly timeout/context configuration differences.
Things to try
1. Enable Compact Prompts (most impactful)
Go to Cline Settings → Features → "Use Compact Prompt" and toggle it ON. This reduces prompt size by ~90% and helps local models follow the expected format more reliably.
2. Check your LM Studio settings
The LM Studio setup guide recommends:
3. Model recommendation
For best results with Cline + LM Studio, the docs recommend Qwen3 Coder 30B A3B Instruct. Which model are you currently using?
4. Verify JetBrains plugin version
You're on v1.1.20 - that should be recent. However, there was a confirmed looping regression in v1.1.5 (Cline v3.38.x) that was fixed in later versions. If you're experiencing this with all tasks consistently, it might be worth checking if your internal Cline version aligns with the plugin version.
Clarifying questions
Could you share:
This info would help maintainers determine if there's something specific to the JetBrains + LM Studio combination causing this.
Possible Duplicates:
github-actions commentedon Mar 17, 2026
This issue is stale because it has been open for 60 days with no activity.
feat: add doom loop detection for repeated identical tool calls
ClineXDiego commentedon Mar 24, 2026
Thanks for reporting this. PR #9933 was just merged — it adds detection for repeated identical tool calls, which should catch the repeating task loop you described. Expect the fix in the next release. Feel free to reopen if you still see it after updating.