continue icon indicating copy to clipboard operation
continue copied to clipboard

BUG: Edit mode with gpt-oss-120b inserts reasoning text into file

Open johannesrmer opened this issue 11 months ago • 16 comments

Before submitting your bug report

Relevant environment info

- OS: Windows
- Continue version: 1.2.11(VS-Code) 1.0.55(InteliJ)
- IDE version: VS-Code 1.106.3 and InteliJ 2025.2.2
- Model: gpt-oss-120b (vllm hosted, LiteLLM Proxy)

Description

Description

When using Continue Edit with gpt-oss-120b, the selected code is replaced with the model’s reasoning / chain-of-thought text instead of a clean code edit. Edit mode is basically unusable.

Qwen Coder 30B on the same setup works correctly and only applies the final code changes.

Note: Issue must have been introduced recently, Downgrading to 1.2.8 fixes the problem with the same model + config.

Image

To reproduce

Steps to reproduce

  1. Use Continue 1.2.11 in VS Code with gpt-oss-120b configured for Edit.
  2. Select some code and run Continue: Edit.
  3. Ask for a small change.

Outcome: Reasoning output is inserted into the file. Code is not edited to what it should be.

Working Version 1.2.8, was just a guess, I just tested this one, because I knew that it was working recently.

johannesrmer avatar Dec 03 '25 13:12 johannesrmer

Related issues:

  • #5822 - Reasoning models shows thinking on edit mode after migrating to config yaml (closed)
  • #5418 - under Apply mode: need be filtered (closed)
  • #4165 - DeepSeek-R1 + Groq: inline edit: think tags get written to the editor (closed)
  • #3901 - think tags (open)
  • #3832 - Support <think /> tags from R1 (closed)
  • #5709 - Add Thinking Mode Toggle and Filter <think> (closed)
  • #8588 - cloudflare gpt-oss-120b issue (open)
  • #7429 - Continue MCP Agent with gpt-oss: multi-action sequences fail (open)

continue avatar Dec 03 '25 13:12 continue

I have the same problem and tried to downgrade but still get the Issue #9065

MaluNoPeleke avatar Dec 08 '25 14:12 MaluNoPeleke

Could be related to #8189.

aaronrsiphone avatar Dec 11 '25 02:12 aaronrsiphone

Same issue with others like Qwen-family

magiskboy avatar Dec 18 '25 04:12 magiskboy

same issue with gpt-oss family, and event with FastApply model (https://hub.continue.dev/mdpauley/fast-apply-15b-v10)

kirimaru89 avatar Dec 19 '25 02:12 kirimaru89

I've landed here after searching a bit. Similar thing happens when I try using continue in VSC with a local ollama instance and any model.

I've set up the MCP for Dart / Flutter and it just sputters its nonesense into the files when trying to edit while the response actually shows the edits correctly in the blocks.

It seems to be not related to the OS or the IDE in this case. Not sure it helps, just thought I'd add context

schattenphoenix avatar Jan 26 '26 13:01 schattenphoenix

This is still an issue in version 1.3.32. No local Ollama model works. And I can also confirm that version 1.2.8 works.

dashko avatar Feb 18 '26 07:02 dashko

This is also not windows specific. I have the same issue in Linux Fedora. My version of continue is 1.2.16 using gpt-oss:20b and ollama

Dollique avatar Mar 04 '26 20:03 Dollique

same issue on continue 1.33 prelease. I tried gpt5.4mini and 5.3codex, frustrating

Z2IRIM avatar Mar 18 '26 19:03 Z2IRIM

Did you already have a chance to take a closer look @DRunkpiano114?

MaluNoPeleke avatar Mar 20 '26 05:03 MaluNoPeleke

I fixed it. just do like this to disable reasoning.image

Z2IRIM avatar Mar 20 '26 14:03 Z2IRIM

@Z2IRIM Unfortunately, that does not resolve the problem for gpt‑oss‑120B as one cannot fully disable reasoning in gpt‑oss‑120B. One can only set the reasoning effort to low / medium / high.

VeraKowalczuk avatar Mar 24 '26 16:03 VeraKowalczuk

@Z2IRIM Unfortunately, that does not resolve the problem for gpt‑oss‑120B as one cannot fully disable reasoning in gpt‑oss‑120B. One can only set the reasoning effort to low / medium / high.

Search the api docs of your model and find the params that are relative to the reasoning. I found my one in openai API docs.

Z2IRIM avatar Mar 27 '26 06:03 Z2IRIM

This is still an issue. For some models such as gpt-oss-120b accoding to OpenAI there is NO option to disable thinking via e.g. none. The reasoning effort only accepts the values: low / medium / high.

VKatWork avatar Apr 21 '26 14:04 VKatWork

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Jul 21 '26 02:07 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.

github-actions[bot] avatar Jul 31 '26 02:07 github-actions[bot]