DeepSeek CLI v1.1.1 — Robust Thinking Mode & Stability Refinements
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_contentfield, 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_contentfield is always present in outgoing payloads. If a particular turn lacks reasoning from the model, an empty string ("") is safely injected asreasoning_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.
- Issue: In "Thinking" (reasoning) mode, the DeepSeek V4 API requires that all assistant turns include the
Under the Hood
- Robust Intermediate Chunk Handling: Improvements to
processStreamResponseto 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
coreandclipackages, as well as the main manifest.
Developed to maintain the stability of autonomous agents during long programming tasks.