[Stream Error] DeepSeek v4.1 Flash drops mid-stream after ~3.5 min: {"type":"server_error","message":"Network connection lost."}
メンテナーはふだん 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
- Start a coding session generating a complex response or multi-turn tool execution with
deepseek/deepseek-v4.1-flash. - Keep the stream connection open while the model reasons/generates tokens.
- 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommandCodeAI/command-code のほかの issue
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatibleオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
CommandCodeAI/command-code#1085 ·
メンテナーはふだん 1 日以内に返信
-
Feature request: auto-reconnect remote control (/rc) after restart対応中かも @aliarain が 20 日前に担当しました。 オープンp2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
CommandCodeAI/command-code#992 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/command-code#933 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/command-code#855 ·
メンテナーはふだん 1 日以内に返信
-
grep tool passes empty file type to ripgrep対応中かも @ahmadbilaldev が 19 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/command-code#655 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
CommandCodeAI/command-code の issue をすべて見る
似ている issue
-
nb stats: the high-error-rate anomaly and the error-causes line give different cause splits for the same errors対応中かも @jeanibarz が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
jeanibarz/agent-notebook#418 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: graphify query loads every language extractor just for _file_stem (about 34 ms per call)対応中かも @rohit-jsfreaky が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Graphify-Labs/graphify#5160 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
WenyuChiou/agent-board#1345 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
wavetermdev/waveterm#3587 ·
メンテナーはふだん 1 日以内に返信