DeepSeek model stuck when writing code files. #7428

Open
opened 2026-02-16 18:07:08 -05:00 by yindo · 1 comment
Owner

Originally created by @17-qxm on GitHub (Jan 24, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

DeepSeek model stuck when writing code files.

By the time I choose deepseek chat or reasoner, the deepseek will be stuck when writing code files, but the files are truly been written in, but opencode just stuck on this writng step and can't go next.

system infomation:
win 11 home China (lenovo laptop)
25H2 26200.7623
AMD R9 8945HX
5060 laptop
1 TB with 16GB RAM

node js v24.13.0
opencode 1.1.34 (use npm to install)

Plugins

None

OpenCode version

1.1.34 (use npm to install)

Steps to reproduce

1.open opencode

2.use /models to change model to deepseek, using deepseek api

3.choose reasoner

4.make a agent, build mode, my task is 给我写一个基于python的违禁词检测器,输入一个str,检测器最后返回一个int(1-100),数字越大违禁程度越高

5.It give me 4 step, by the time it run to the step 3, it will stucked

(after stucked, if you esc it and type to opencode that "if no problem please continue", it will be go next and then been stucked)

Screenshot and/or share link

It is not the same example, but it is the same problem, it just fully stucked in the fucking writing files

Image

Operating System

win 11 home China (lenovo laptop) 25H2 26200.7623

Terminal

Windows Terminal

Originally created by @17-qxm on GitHub (Jan 24, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description # DeepSeek model stuck when writing code files. By the time I choose deepseek chat or reasoner, the deepseek will be stuck when writing code files, but the files are truly been written in, but opencode just stuck on this writng step and can't go next. system infomation: win 11 home China (lenovo laptop) 25H2 26200.7623 AMD R9 8945HX 5060 laptop 1 TB with 16GB RAM node js v24.13.0 opencode 1.1.34 (use npm to install) ### Plugins None ### OpenCode version 1.1.34 (use npm to install) ### Steps to reproduce 1.open opencode 2.use `/models` to change model to deepseek, using deepseek api 3.choose reasoner 4.make a agent, build mode, my task is `给我写一个基于python的违禁词检测器,输入一个str,检测器最后返回一个int(1-100),数字越大违禁程度越高` 5.It give me 4 step, by the time it run to the step 3, it will stucked (after stucked, if you esc it and type to opencode that "if no problem please continue", it will be go next and then been stucked) ### Screenshot and/or share link # It is not the same example, but it is the same problem, it just fully stucked in the fucking writing files <img width="1734" height="1047" alt="Image" src="https://github.com/user-attachments/assets/e1c9541f-3744-4a50-8957-0f30483f19dc" /> ### Operating System win 11 home China (lenovo laptop) 25H2 26200.7623 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 18:07:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 24, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8934: The problem with deepseek-reasoner in OpenCode - similar reasoning mode issues
  • #9383: The output includes tool invocations - DeepSeek tool-related problems
  • #9397: Deepseek-chat:options:thinking:type:enabled thinking tools bug - DeepSeek thinking mode tool failures
  • #6281: Can't use Claude Opus 4.5 on opencode using Github Copilot - writing tool getting stuck on Windows with similar JSON parsing issues
  • #5890: Incomplete JSON when writing out files - similar incomplete JSON during write operations

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 24, 2026): This issue might be a duplicate of existing issues. Please check: - #8934: The problem with deepseek-reasoner in OpenCode - similar reasoning mode issues - #9383: The output includes tool invocations - DeepSeek tool-related problems - #9397: Deepseek-chat:options:thinking:type:enabled thinking tools bug - DeepSeek thinking mode tool failures - #6281: Can't use Claude Opus 4.5 on opencode using Github Copilot - writing tool getting stuck on Windows with similar JSON parsing issues - #5890: Incomplete JSON when writing out files - similar incomplete JSON during write operations Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7428