[Stream Error] DeepSeek v4.1 Flash drops mid-stream after ~3.5 min: {"type":"server_error","message":"Network connection lost."}

オープン
#1,124 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
44/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cli
領域
cli, networking

調査の方向性

Start by tracing the /alpha/generate streaming path and how it handles long-lived connections to the DeepSeek backend; the issue does not name specific files or tests. Check whether the connection has heartbeat or keep-alive handling and how upstream disconnects are reported. Done means reproducing the roughly 209-second failure and confirming that a drop is recovered or surfaced with retryable metadata.

索引モデルが issue の本文から書いたものです。

説明

Summary

When using deepseek/deepseek-v4.1-flash on the /alpha/generate streaming endpoint, long-running requests (e.g. multi-turn tool calling with reasoning) can hang for ~3.5 minutes (208,974 ms) and then abruptly terminate with a mid-stream error event:

{"type":"error","error":{"type":"server_error","message":"Network connection lost."}}
Steps to Reproduce
  1. Start a coding session generating a complex response or multi-turn tool execution with deepseek/deepseek-v4.1-flash.
  2. Keep the stream connection open while the model reasons/generates tokens.
  3. After ~3.5 minutes (observed at ~209s), the stream receives:
    {"type":"error","error":{"type":"server_error","message":"Network connection lost."}}
    
Observed Log Trace
[18:11:55] POST .../alpha/generate -> stream started
[18:15:24] ✗ ERROR: [CommandCode error: {"type":"server_error","message":"Network connection lost."}] (duration: 208974ms)
Expected Behavior
  • The upstream connection between CommandCode's gateway and the DeepSeek backend cluster should maintain keep-alive/heartbeat or handle transient drops gracefully instead of terminating with server_error: Network connection lost. after 3.5 minutes.
  • If an upstream drop occurs, provide retryable metadata or connection recovery.
Environment
  • CLI / Wire Protocol: 1.88.5
  • Model: deepseek/deepseek-v4.1-flash
  • OS: Linux x64
主要言語
言語のデータがありません
スター
4.2k
フォーク
377
平均マージ
1日 17分
マージ済み PR(30日)
7

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommandCodeAI/command-code のほかの issue

CommandCodeAI/command-code の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。