Skip to content

The fix for the local LLM in the latest version now causes an infinite loop during the conversation with your model. #494

Description

@Ema-prowler

Short description

The new fix introduces a bug in the inference.

What happened?

Right after I applied the fix—meaning I downloaded the new version—and used it for a few hours during my session, the infinite model loop started occurring; this is something I had never experienced with any previous version of the plugin.
I know this issue affects various models and that the problem might seem to lie with OpenCode, but that isn't the case.
In the year I’ve been using DeepSeek, I had never encountered this problem until now.
I’ve already tried clearing the cache,
closing OpenCode,
restarting my PC,
deleting old files,
forcing Dreamer,
and reinstalling the plugin.
Even so, the CPU issue is still noticeable at times.

Why do I say this is a Magic Context issue rather than an OpenCode issue—even though there could be two different root causes or they might be compounding each other?
Because I used to use other models without Magic Context and never had the infinite loop problem.
But once I started using Magic Context, the issue began appearing across several models.
I don't have a way to test it other than toggling the plugin on and off,
but this version introduces the problem when using DeepSeek v4.1 Flash.

Diagnostics

Plugin version

No response

OpenCode version

No response

Platform

No response

Client

OpenCode Desktop

Log output (optional)

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions