Description
When using DeepSeek V4 Flash via DeepInfra, both the write and edit tools repeatedly receive empty strings in the critical fields (content, newString).
The model can successfully write simple plain text ("hello world"), but fails as soon as it tries to write or edit content that contains HTML-like tags (<script>, </script>, etc.). This causes the agent to get stuck in a loop of failed tool calls.
Additional Observations
- The model is aware of the problem in its thinking trace and keeps trying again with the same empty fields.
- It sometimes leaks DSML fragments (
|DSML|tool_calls>) in its output.
- Simple plain text works reliably. Any content with angle brackets (
< / >) triggers the issue.
Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
- Start a new OpenCode session with DeepSeek V4 Flash via Deepinfra provider.
- Ask the agent to create or modify a Svelte component (e.g. testComponent.svelte with a <script> tag).
- Observe that simple "hello world" writes succeed.
- When writing actual component code, the model starts generating tool calls with empty content.
Operating System
Windows 10
Terminal
Windows Terminal (cmd)
Description
When using DeepSeek V4 Flash via DeepInfra, both the
writeandedittools repeatedly receive empty strings in the critical fields (content,newString).The model can successfully write simple plain text ("hello world"), but fails as soon as it tries to write or edit content that contains HTML-like tags (
<script>,</script>, etc.). This causes the agent to get stuck in a loop of failed tool calls.Additional Observations
|DSML|tool_calls>) in its output.</>) triggers the issue.Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
Operating System
Windows 10
Terminal
Windows Terminal (cmd)