BUG: Edit mode with gpt-oss-120b inserts reasoning text into file
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
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.
To reproduce
Steps to reproduce
- Use Continue 1.2.11 in VS Code with
gpt-oss-120bconfigured for Edit. - Select some code and run Continue: Edit.
- 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.
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)
I have the same problem and tried to downgrade but still get the Issue #9065
Could be related to #8189.
Same issue with others like Qwen-family
same issue with gpt-oss family, and event with FastApply model (https://hub.continue.dev/mdpauley/fast-apply-15b-v10)
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
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.
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
same issue on continue 1.33 prelease. I tried gpt5.4mini and 5.3codex, frustrating
Did you already have a chance to take a closer look @DRunkpiano114?
I fixed it. just do like this to disable reasoning.
@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.
@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.
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.
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.
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.