Skip to content

Cline keeps repeating the same tasks in Jetbrains IDE's with LM Studio #8637

Closed

Description

@hendrikras

Plugin Type

JetBrains Plugin

Cline Version

1.1.20

What happened?

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.

Steps to reproduce

  1. Start a task
  2. The same response is repeated about 4 times.

Provider/Model

No response

System Information

Macbook pro M4 Max

Activity

  1. linear commented on Jan 15, 2026

    @linear
  2. github-actions commented on Jan 15, 2026

    @github-actions
    Contributor

    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:

    1. Output the same text multiple times without properly executing tools
    2. 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.

    2. Check your LM Studio settings
    The LM Studio setup guide recommends:

    • 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:

    1. Which model are you running in LM Studio?
    2. What's your configured context length in LM Studio?
    3. 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.


    Possible Duplicates:

  3. added
    Model QualityIssues caused by model limitations, not Cline bugs
    Needs User InputWaiting for more information from the reporter
    Bot RespondedIssue has received an automated response
    on Jan 15, 2026
  4. github-actions commented on Mar 17, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  5. ClineXDiego commented on Mar 24, 2026

    @ClineXDiego
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot RespondedIssue has received an automated responseJetBrainsIssues specific to JetBrains IDEsModel QualityIssues caused by model limitations, not Cline bugsNeeds User InputWaiting for more information from the reporterstaleAuto-applied to inactive issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions