Skip to content

System prompt not sent to local LM Studio models #10781

@shanevcantwell

Description

@shanevcantwell

Before submitting your bug report

Relevant environment info

Continue version: 1.3.32
IDE version: VSCode 1.109.3

Description

Summary

When using a local model served via LM Studio's OpenAI-compatible API, Continue does not appear to send its system prompt to the model. The model instead follows whatever system prompt is configured in LM Studio's UI preset.

Steps to Reproduce

  1. Configure a model in LM Studio with a custom system prompt (e.g., a "Systems Architect" preset that instructs the model to output structured JSON plans)
  2. Connect Continue to the LM Studio endpoint
  3. Ask Continue to generate code (e.g., "write a Python script")

Expected Behavior

The model should receive Continue's system prompt and generate code as instructed.

Actual Behavior

The model follows LM Studio's UI-configured system prompt instead. For example, with a "Systems Architect" preset, the model outputs a SystemPlan JSON with plan_summary, execution_steps, etc. instead of actual code. This output gets written directly to the target file.

Evidence

A file (draw_ascii.py) was created with the model's planning output instead of Python code:

Need to output a SystemPlan JSON. Instruction: Follow plan. The user request: apply suggested edit to original code, keep comments...

The model's LM Studio system prompt was visible in the UI: "You are a world-class Systems Architect. Your job is to take the user's request and produce a high-level technical plan..."

Environment

  • Continue extension in VS Code on Windows 11
  • LM Studio 0.4.4 serving openai/gpt-oss-20b-gguf (mxfp4)
  • OpenAI-compatible API endpoint

Notes

The LM Studio Harmony tokens (<|channel|>, <|constrain|>, <|message|>) appearing in the output are a known LM Studio issue being tracked separately.

To reproduce

No response

Log output

Metadata

Metadata

Assignees

Labels

area:integrationIntegrations (context providers, model providers, etc.)ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions