Skip to content

DeepSeek CLI v1.1.1 — Robust Thinking Mode & Stability Refinements

Choose a tag to compare

@sluisr sluisr released this 01 May 20:14
· 468 commits to main since this release

Release Notes - DeepSeek CLI v1.1.1

Bug Fixes

  • Thinking Mode Stabilization (reasoning_content):
    • Issue: In "Thinking" (reasoning) mode, the DeepSeek V4 API requires that all assistant turns include the reasoning_content field, even when the model chooses not to emit reasoning tokens for a specific turn. Previously, if the reasoning was empty, the CLI omitted it, causing the API to reject the request with an HTTP 400 error (Bad Request - The reasoning_content in the thinking mode must be passed back to the API).
    • Solution: Session state tracking logic has been implemented. Once a conversation activates reasoning mode, the CLI ensures that the reasoning_content field is always present in outgoing payloads. If a particular turn lacks reasoning from the model, an empty string ("") is safely injected as reasoning_content. This ensures strict compliance with the DeepSeek v4 API contract and prevents the chat history from being corrupted and abruptly cutting off the work of multi-tool agents.

Under the Hood

  • Robust Intermediate Chunk Handling: Improvements to processStreamResponse to prevent premature discarding of hidden (smuggled) reasoning blocks when interleaved with tool calls and mixed content.
  • Synchronized Versioning: Full update to v1.1.1 across core and cli packages, as well as the main manifest.

Developed to maintain the stability of autonomous agents during long programming tasks.