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
Using the latest opencode with Qwen3.5-122B-a10b model on latest LM Studio, I have the same issue any time I run /compact. After that I can't use the session any more, I get the error message below.
"Error rendering prompt with jinja template: "No user query found in messages.".\n\nThis is usually an issue with the model's prompt template. If you are using a popular model, you can try to search the model under lmstudio-community, which will have fixed prompt templates. If you cannot find one, you are welcome to post this issue to our discord or issue tracker on GitHub. Alternatively, if you know how to write jinja templates, you can override the prompt template in My Models > model settings > Prompt Template."
Activity
github-actions commentedon Feb 20, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from these, please clarify what makes it different.
Nindaleth commentedon Feb 27, 2026
Do you use LiteLLM by any chance?
buildgreatthings commentedon Feb 27, 2026
Sometimes, yes!
obamor commentedon Mar 3, 2026
This happens to me every time compaction happens (automatically by reaching limit or manually).
Only using LiteLLM
Nindaleth commentedon Mar 4, 2026
I don't think that
_nooptool call is healthy for the context data and this tool is injected only for LiteLLM-like providers.DenisBY commentedon Mar 22, 2026
this plugin is really life-saver for such cases https://github.com/Opencode-DCP/opencode-dynamic-context-pruning
0x80O0oOverfl0w commentedon Apr 25, 2026
Using the latest opencode with Qwen3.5-122B-a10b model on latest LM Studio, I have the same issue any time I run /compact. After that I can't use the session any more, I get the error message below.
"Error rendering prompt with jinja template: "No user query found in messages.".\n\nThis is usually an issue with the model's prompt template. If you are using a popular model, you can try to search the model under lmstudio-community, which will have fixed prompt templates. If you cannot find one, you are welcome to post this issue to our discord or issue tracker on GitHub. Alternatively, if you know how to write jinja templates, you can override the prompt template in My Models > model settings > Prompt Template."