Skip to content

[DeepSeek DeepInfra] write tool repeatedly passes empty "content" #26913

@NameIsHiki

Description

@NameIsHiki

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

  1. Start a new OpenCode session with DeepSeek V4 Flash via Deepinfra provider.
  2. Ask the agent to create or modify a Svelte component (e.g. testComponent.svelte with a <script> tag).
  3. Observe that simple "hello world" writes succeed.
  4. When writing actual component code, the model starts generating tool calls with empty content.

Operating System

Windows 10

Terminal

Windows Terminal (cmd)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions